Evolution of Components

Reading Time

Reading State

Reading Input

Writing Output

Computing Output

Jusdl.Components.ComponentsBase.computeoutputFunction
computeoutput(comp, x, u, t)

Computes the output of comp according to its outputfunc if outputfunc is not nothing. Otherwise, nothing is done. x is the state, u is the value of input, t is the time.

source

Evolve

Jusdl.Components.ComponentsBase.evolve!Function
evolve!(comp::AbstractSource, x, u, t)

Does nothing. x is the state, u is the value of input and t is time.

evolve!(comp::AbstractSink, x, u, t)

Writes t to time buffer timebuf and u to databuf of comp. x is the state, u is the value of input and t is time.

evolve!(comp::AbstractStaticSystem, x, u, t)

Writes u to buffer of comp if comp is an AbstractMemory. Otherwise, nothing is done. x is the state, u is the value of input and t is time.

evolve!(comp::AbstractDynamicSystem, x, u, t)

Solves the differential equaition of the system of comp for the time interval (comp.t, t) for the inital condition x. u is the input function defined for (comp.t, t). The comp is updated with the computed state and time t. See also: update!(comp::AbstractDynamicSystem, sol, u)

source
Jusdl.Components.ComponentsBase.update!Function
update!(s::Scope, x, yi)

Updates the series of the plot windows of s with x and yi.

source
update!(comp::AbstractDynamicSystem, sol, u)

Updates comp with the differential equation solution sol and the input value u. The time t, state state and inputval is updated. Furthermore, stateder is also updated if comp isa AbstractDAESystem and noise is update if comp is AbstractSDESystem or AbstractRODESystem.

source

Taking Steps

Jusdl.Components.ComponentsBase.forwardstepFunction
forwardstep(comp, t)

Makes comp takes a forward step. The input value u and state x of comp are read. Using x, u and time t, comp is evolved. The output y of comp is computed and written into the output bus of comp.

source