SystemFreqCalculator Class Reference

#include <SystemFreqCalculator.h>

List of all members.

Public Member Functions

 SystemFreqCalculator (ElectricalModel *model, double cint=1E-1, std::string model_name="")
void outputEvent (adevs::Event< adevs::PortValue< BasicEvent * > >, double)
void stateChange (adevs::Atomic< adevs::PortValue< BasicEvent * > > *model, double t)
double getSysFreq () const

Detailed Description

This listener records system frequency in two ways. First is a straight average of the generators' frequencies and the second is an average weighted by inertia.

Definition at line 13 of file SystemFreqCalculator.h.


Constructor & Destructor Documentation

SystemFreqCalculator::SystemFreqCalculator ( ElectricalModel model,
double  cint = 1E-1,
std::string  model_name = "" 
)

The listener will record system frequency from the provided ElectricalModel model. Values are recorded at most at intervals cint. Data is stored in model_name+"_freq.dat". The output data is in Hertz and measures deviation from nominal.


The documentation for this class was generated from the following files:

Generated on 17 Jul 2013 by  doxygen 1.6.1