#include <AutoInitializingData.h>
Classes | |
struct | bus_data_t |
Public Member Functions | |
AutoInitializingData () | |
Constructor. | |
virtual unsigned | getGenrCount () |
Get the number of generators in the model. | |
virtual unsigned | getNodeCount () |
Get the total number of nodes in the model. | |
virtual const std::vector < unsigned > & | getGenrs () |
Get the list of nodes that are generation points. | |
virtual const std::vector < line_t > & | getLines () |
Get the list of electrical lines. | |
virtual Complex | getAdmittance (unsigned node) |
virtual load_param_t | getLoadParams (unsigned bus) |
virtual genr_t | getGenrParams (unsigned genr) |
Get the parameters for a synchronous machine. | |
void | setGenrParams (unsigned at_node, genr_t params) |
void | setInitialConditions () |
~AutoInitializingData () | |
Destructor. | |
Protected Member Functions | |
void | addGenr (bus_data_t bus_data, double mvar_base, double kv_base=13.8) |
Protected Attributes | |
std::vector< unsigned > | genr_nodes |
std::vector< bus_data_t > | nodes |
std::map< unsigned, genr_t > | genrs |
std::vector< line_t > | lines |
This class contains the data structures and logic to autoinitialize a transient simulation. The constructor should be specialized to read specific data formats.
Definition at line 28 of file AutoInitializingData.h.
void AutoInitializingData::addGenr | ( | bus_data_t | bus_data, | |
double | mvar_base, | |||
double | kv_base = 13.8 | |||
) | [protected] |
Guess at a generator's parameters and then add it to the network. Parameters can be overwritten afterwards if desired.
Inertia estimates are calculated from data in Table 5.1 of "Computer-Aided Power System Analysis" by Ramasamy Natarajan, published by Marcel Dekker, Inc., c. 2002.
Definition at line 118 of file AutoInitializingData.cpp.
References ElectricalData::genr_t::Agc, ElectricalData::genr_t::D, ElectricalData::genr_t::M, ElectricalData::genr_t::R, ElectricalData::genr_t::Te, ElectricalData::genr_t::Tspd1, and ElectricalData::genr_t::Xd.
Referenced by IEEE_CDF_Data::IEEE_CDF_Data(), and PSSE_Raw_Data::PSSE_Raw_Data().
Complex AutoInitializingData::getAdmittance | ( | unsigned | node | ) | [virtual] |
Get the Norton equivalent admittance at a load node. If there is no load, then this should return zero.
Implements ElectricalData.
Definition at line 176 of file AutoInitializingData.cpp.
Referenced by setInitialConditions().
virtual load_param_t AutoInitializingData::getLoadParams | ( | unsigned | bus | ) | [inline, virtual] |
Get the load paramters.
Implements ElectricalData.
Definition at line 50 of file AutoInitializingData.h.
void AutoInitializingData::setGenrParams | ( | unsigned | at_node, | |
genr_t | params | |||
) |
Set the generator parameters. This does not reinitialize the state variables, and so it may result in a non-equilibrium initial conditions. Call setIntialConditions() to ensure a proper setup.
Definition at line 171 of file AutoInitializingData.cpp.
void AutoInitializingData::setInitialConditions | ( | ) |
Set the model's initial conditions directly from power and voltage information in the load flow. Call this after the data has been loaded. It may only be called once because the loads may be adjusted to provide a reasonable power flow for your data.
Definition at line 14 of file AutoInitializingData.cpp.
References ElectricalData::genr_t::Agc, ElectricalData::buildAdmitMatrix(), ElectricalData::genr_t::C0, ElectricalData::genr_t::Ef0, ElectricalData::genr_t::Ef_max, getAdmittance(), ElectricalData::genr_t::Pe0, ElectricalData::genr_t::Pm0, ElectricalData::genr_t::T0, ElectricalData::genr_t::Vref, ElectricalData::genr_t::w0, and ElectricalData::genr_t::Xd.
Referenced by IEEE_CDF_Data::IEEE_CDF_Data(), and PSSE_Raw_Data::PSSE_Raw_Data().