
DifferentialSystem |
ptolemy.domains.ct.lib.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.
Author(s): Jie Liu
Version:$Id: DifferentialSystem.java,v 1.49 2006/03/28 23:59:52 cxh Exp $
Pt.Proposed Rating:Red (liuj)
Pt.Accepted Rating:Red (cxh)
stateVariableNames
The names of the state variables, in an array of strings.
The default is an ArrayToken of an empty String.
initialStates
The initial condition for the state variables. This must be
a vector (double matrix with only one row) whose
default value is empty.