#include <ElectricalModel.h>
Public Member Functions | |
| ElectricalModel (ElectricalModelEqns *eqns, double h_max=1E-3) | |
| Complex | getVoltage (unsigned bus) |
| Get the complex voltage at the specified bus. | |
| double | getBusAngle (unsigned bus) |
| Get the voltage angle at a bus. | |
| double | getGenrFreq (unsigned genr_number) |
| Get the frequency in radians at the specified generator. | |
| double | getRealGenrPower (unsigned genr_number) |
| Get the real power output of the generator. | |
| double | getBusFreq (unsigned bus) |
| Get the bus frequency. | |
| bool | genrOffLine (unsigned genr_number) |
| Is the generator offline? | |
| Complex | getLoadPower (unsigned bus) |
| Get power consumed at the bus. | |
| double | getVoltageWaveform (unsigned bus) |
| Get the approximate voltage waveform at the bus. | |
| ElectricalData * | getElectricalData () |
| Get the electrical data associated with this model. | |
| ElectricalModelEqns * | getDynamicModel () |
| Get the dynamic equations. | |
| double | getErrTol () const |
| Get the error tolerance for the numerical integrator. | |
| ~ElectricalModel () | |
| Destructor. | |
This is an atomic model to contain and simulate an ElectricalModelEqns object. Coupling should be done using the ports from the ElectricalModelEqns class.
Definition at line 15 of file ElectricalModel.h.
| ElectricalModel::ElectricalModel | ( | ElectricalModelEqns * | eqns, | |
| double | h_max = 1E-3 | |||
| ) |
The ElectricalModelEqns are adopted by the ElectricalModel and are destroyed when it is. If h_max is provided, it will be used as the largest time step for the numerical integration algorithm.
Definition at line 6 of file ElectricalModel.cpp.
1.6.1