Public Member Functions
| ||ACREATOR (e_trsolver)|
| ||e_trsolver (char *)|
| ||e_trsolver (e_trsolver &)|
| ||~e_trsolver ()|
|int ||init (nr_double_t, nr_double_t, int)|
|bool ||isExternal ()|
| ||informs whether this is an external sim |
|int ||stepsolve_sync (nr_double_t synctime)|
|void ||acceptstep_sync (void)|
|int ||stepsolve_async (nr_double_t steptime)|
|void ||acceptstep_async (void)|
|void ||rejectstep_async (void)|
|void ||getsolution (double *)|
|int ||setECVSVoltage (char *ecvsname, nr_double_t V)|
| ||Sets the voltage of an exterally controlled voltage source. |
|int ||getJacRows ()|
| ||Returns the number of rows in the Jacobian matrix for the circuit. |
|int ||getJacCols ()|
| ||Returns the number of columns in the Jacobian matrix for the circuit. |
|void ||getJacData (int r, int c, nr_double_t &data)|
| ||Obtains the data from the Jacobian matrix for the circuit. |
|int ||getNodeV (char *label, nr_double_t &nodeV)|
| ||Obtains the voltage of a node by name. |
|int ||getVProbeV (char *probename, nr_double_t &probeV)|
| ||Obtains the voltage reported by a voltage probe. |
|int ||getIProbeI (char *probename, nr_double_t &probeI)|
| ||Obtains the current reported by a current probe. |
|void ||debug (void)|
|void ||printx (void)|
|void(* ||messagefcn )(int level, const char *format,...)|
| ||Pointer to function used to print messages during a sim. |
Private Member Functions
|void ||initETR (nr_double_t start, nr_double_t, int)|
|void ||truncateHistory (nr_double_t)|
|void ||updateExternalInterpTime (nr_double_t)|
|void ||storeHistoryAges (void)|
|void ||updateHistoryAges (nr_double_t)|
|void ||adjustDelta_sync (nr_double_t)|
|void ||restoreSolution (void)|
|void ||copySolution (tvector< nr_double_t > *, tvector< nr_double_t > *)|
|void ||fillLastSolution (tvector< nr_double_t > *)|
|std::vector< nr_double_t > ||initialhistages|
|tvector< nr_double_t > * ||lastsolution |
|nr_double_t ||lastdeltas |
External interface class for transient simulation.
This class provides access to the transient solving functionality of Qucs for external software.
Definition at line 1104 of file e_trsolver.cpp.
Sets the voltage of an exterally controlled voltage source.
|ecvsname||The name of the voltage source to be set. |
|V||New value of the voltage. |
- Integer flag reporting success or failure.
This method searches for the ecvs component with the given name in ecvsname. If the ecvs exists, the value of the voltage to be set at the next time step is set to the supplied value in V.
You can set the voltage of ecvs components in subcircuits created by using a name up of the subcircuit heirarchy it is in, e.g. the name
to set the voltage of an ecvs named ECVS1 which is located in subcircuit SUBlower, which is itself in subcircuit SUBtop in the top level circuit.
Returns 0 if the ecvs was found, and -1 otherwise.
Definition at line 990 of file e_trsolver.cpp.