Description Usage Arguments Value Examples
Due to the Force Generator Force-Velocity characteristic, it velocity produces breaking or viscous force.
fgen_get_viscous_force
is a function that represents the viscous force at current_velocity
1 | fgen_get_viscous_force(current_velocity, max_force = 3000, max_velocity = 4)
|
current_velocity |
Numeric vector |
max_force |
Numeric value. Default is 3000 Newtons |
max_velocity |
Numeric value. Default is 4 m/s |
Viscous force at current_velocity
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | x <- seq(0, 3, length.out = 1000)
y1 <- fgen_get_viscous_force(
current_velocity = x,
max_velocity = 3,
max_force = 1200
)
plot(x, y1, "l")
y2 <- fgen_get_viscous_force(
current_velocity = x,
max_velocity = 3,
max_force = 1000
)
lines(x, y2, col = "red")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.