DifferentialSystem

Parent Previous Next

Full Library / Algorithmic / Analog / control-analog function / DifferentialSystem
Block Name: DifferentialSystem


A differential system in the CT domain.

The differential system model implements a system whose behavior is defined by:

  dx/dt = f(x, u, t)
  y = g(x, u, t)
  x(0) = x0
 

where x is the state vector, u is the input vector, and y is the output vector, t is the time. Users must give the name of the variables by filling in parameters

The actor, upon creation, has no input and no output. Upon filling in the names in the inputVariableNames and outputVariableNames parameters, the ports will be created. The name of the state variables are manually added by filling in the stateVariableNames parameter.

The state equations and output maps must be manually created by users. If there are n state variables x1, ... xn, then users must create n additional parameters, one for each state equation. And the parameters must be named as: "x1_dot", ..., "xn_dot" respectively. Similarly, if the output ports have name y1, ..., yr, then users must create additional r parameters for output maps. These parameters should be named "y1", ... "yr" respectively.

This actor works like a higher-order function. Upon preinitialization, the actor will create a subsystem using integrators and expressions. After that, the actor becomes transparent, and the director takes over the control of the actors contained by this actor.


Field Detail

stateVariableNames

public VisualSim.data.expr.Parameter stateVariableNames


initialStates

public VisualSim.data.expr.Parameter initialStates



Created with the Personal Edition of HelpNDoc: Easy CHM and documentation editor