3.6.10 GetDAEOptions
Command structure of GetDAEOptions.
Besides the equation system and the list of variables, a DAEObject contains a list of arbitrary options. Use GetDAEOptions to extract these options: GetDAEOptions[dae] returns a list of all options stored in the DAEObject dae. If a second argument is specified and is an option symbol, the value of this option stored in the DAEObject is returned. If it is a list of option symbols, a list of the option values is returned.
The function CircuitEquations automatically adds a number of options to the DAEObject which have been used during equation setup.
To extract the DesignPoint option of a DAEObject it is recommended to use the function GetDesignPoint.
See also: SetDAEOptions, GetEquations, GetMatrix, GetVariables, GetRHS, 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", Selector -> "Spice"} ] ]
Out[2]=
Set up DAE system.
In[3]:= dae = CircuitEquations[cir, AnalysisMode -> Transient, ElementValues -> Symbolic]
Out[3]=
Return the list of all options stored in dae.
In[4]:= GetDAEOptions[dae]
Out[4]=
Return special options stored in dae.
In[5]:= GetDAEOptions[dae, {IndependentVariable, InitialTime}]
Out[5]=
|