create an algebraic equation system object - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Science and Engineering : Dynamic Systems : System Object : DynamicSystems/AlgEquation

DynamicSystems[AlgEquation] - create an algebraic equation system object

Calling Sequence

AlgEquation(ae, invars, outvars, opts)

Parameters

ae

-

equation or list(equation); algebraic-equations

invars

-

(optional) name, anyfunc(name) or list of same; input variables

outvars

-

(optional) name, anyfunc(name) or list of same; output variables

Description

• 

The AlgEquation command creates an algebraic-equation (AE) system object, that is, a system whose input/output equations are given by non-differential algebraic equations. It is provided to permit code generation of algebraic-equation blocks. This object cannot be used by many of the commands in the DynamicSystems package.

• 

The ae parameter specifies the equation or equations. It may be a single equation, or a list of equations.

• 

The optional parameters invars and outvars specify the input and output variables of the algebraic equations. They are not required, but if either is not specified then the corresponding keyword parameter inputvariable or outputvariable must be assigned. If both positional and keyword parameters are specified, the keyword parameter take precedence.

• 

The variables of the equations are explicit functions of the time-variable (usually t for a continuous system, q for a discrete system).  Only input or output variables are allowed in the equations.  If invars and/or outvars are specified as names, rather than functions of time, the corresponding names in the equations are converted to functions of time.

Examples

withDynamicSystems:

sys1:=AlgEquationy=sinx,x,y:

PrintSystemsys1

Algebraic Equationcontinuous1 output(s); 1 input(s)inputvariable=xtoutputvariable=ytae=yt=sinxt

(1)

sys2:=AlgEquationy=sinx,x,y,discrete=true,sampletime=0.01:

PrintSystemsys2

Algebraic Equationdiscrete; sampletime = .1e-11 output(s); 1 input(s)inputvariable=xqoutputvariable=yqae=yq=sinxq

(2)

ListEqn:=x1t=rtcosθt,y1t=rtsinθt:

InputVar:=rt,θt:

OutputVar:=x1t,y1t:

sys3:=AlgEquationListEqn,InputVar,OutputVar:

PrintSystemsys3

Algebraic Equationcontinuous2 output(s); 2 input(s)inputvariable=rt,θtoutputvariable=x1t,y1tae=x1t=rtcosθt,y1t=rtsinθt

(3)

ListEqn:=x1q=rqcosθq,y1q=rqsinθq:

InputVar:=rq,θq:

OutputVar:=x1q,y1q:

sys4:=AlgEquationListEqn,InputVar,OutputVar,discrete=true,sampletime=0.01:

PrintSystemsys4

Algebraic Equationdiscrete; sampletime = .1e-12 output(s); 2 input(s)inputvariable=rq,θqoutputvariable=x1q,y1qae=x1q=rqcosθq,y1q=rqsinθq

(4)

See Also

DynamicSystems, DynamicSystems[SystemObject]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam