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

GetMatrixGetRHS

3.6.7 GetVariables

Command structure of GetVariables.

Given a DAEObject dae, GetVariables returns the list of variables stored in the object. For AC and DC DAEObjects this is a list of symbols, for Transient DAEObjects this is a list of the form where symb is a symbol and t is the independent variable.

See also: GetEquations, GetMatrix, 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 AC DAE system.

In[3]:= dae = CircuitEquations[cir, AnalysisMode -> AC,
DefaultSelector -> "SpiceAC"]

Out[3]=

Return list of variables stored in dae.

In[4]:= GetVariables[dae]

Out[4]=

Set up Transient DAE system.

In[5]:= daetran = CircuitEquations[cir,
AnalysisMode -> Transient, DefaultSelector -> "Spice"]

Out[5]=

Return list of variables stored in daetran.

In[6]:= GetVariables[daetran]

Out[6]=

GetMatrixGetRHS