simuNetwork: Simulation of the Differential Equations

Description Usage Arguments Value Examples

View source: R/simuNetwork.R

Description

Simulates the given ODEnetwork over a time range.

Usage

1
simuNetwork(odenet, times, origin.min.time = FALSE, ...)

Arguments

odenet

[ODEnetwork]
List of class ODEnetwork.

times

[numeric]
Time sequence to calculate or simulate the ode network.

origin.min.time

[logical(1L)]
Define origin of ode time. FALSE sets it to 0, TRUE to the minimum of times. Default is FALSE.

...

Additional arguments.

Value

an extended list of class [ODEnetwork].

Examples

1
2
3
4
5
6
7
8
masses <- 4:6
dampers <- diag(1:3)
springs <- diag(7:9)
odenet <- ODEnetwork(masses, dampers, springs)
position <- rep(10, 3)
velocity <- rep(0, 3)
odenet <- setState(odenet, position, velocity)
odenet <- simuNetwork(odenet = odenet, times = seq(0, 20))

surmann/ODEnetwork documentation built on April 6, 2020, 8:53 p.m.