fgen_get_viscous_force: Get Force Generator Viscous Force

Description Usage Arguments Value Examples

View source: R/fgen.R

Description

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

Usage

1
fgen_get_viscous_force(current_velocity, max_force = 3000, max_velocity = 4)

Arguments

current_velocity

Numeric vector

max_force

Numeric value. Default is 3000 Newtons

max_velocity

Numeric value. Default is 4 m/s

Value

Viscous force at current_velocity

Examples

 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")

mladenjovanovic/vjsim documentation built on Aug. 7, 2020, 10:10 p.m.