Documentation /  Analog Insydes /  Reference Manual /  Circuit and DAEObject Manipulation /

RenameNodesGetMatrix

3.6.5 GetEquations

Command structure of GetEquations.

Given a DAEObject dae, GetEquations returns the equation system stored in the object as a list of equations. In case of an AC DAEObject the internal matrix representation is converted to a list of linear equations.

See also: GetMatrix, GetVariables, GetRHS, GetParameters, GetDAEOptions, GetDesignPoint.

Examples

Load Analog Insydes.

In[1]:= <<AnalogInsydes`

Define netlist description of a simple diode rectifier circuit.

In[2]:= cir =
Circuit[
Netlist[
{V0, {1, 0}, Symbolic -> V0,
Value -> 2. Sin[10^6 Time]},
{R1, {2, 0}, Symbolic -> R1, Value -> 100.},
{C1, {2, 0}, Symbolic -> C1, Value -> 1.*^-7},
{D1, {1 -> A, 2 -> C}, Model -> "Diode"}
]
]

Out[2]=

Set up Transient DAE system.

In[3]:= dae = CircuitEquations[cir, AnalysisMode -> Transient,
DefaultSelector -> "Spice", ElementValues -> Symbolic]

Out[3]=

Return list of equations.

In[4]:= GetEquations[dae]

Out[4]=

Set up AC DAE system.

In[5]:= daeac = CircuitEquations[cir, AnalysisMode -> AC,
DefaultSelector -> "SpiceAC", ElementValues -> Symbolic]

Out[5]=

The system is set up as a matrix equation.

In[6]:= DisplayForm[daeac]

Out[6]//DisplayForm=

Return value is again a list of equations.

In[7]:= GetEquations[daeac]

Out[7]=

RenameNodesGetMatrix