11 #include <dpsim-models/MNASimPowerComp.h>
12 #include <dpsim-models/Solver/PFSolverInterfaceBus.h>
24 Real mBaseApparentPower;
44 Logger::Level logLevel = Logger::Level::off);
49 void setParameters(Real ratedApparentPower, Real ratedVoltage,
50 Real setPointActivePower, Real setPointVoltage,
51 PowerflowBusType powerflowBusType,
52 Real setPointReactivepower = 0);
String uid()
Returns unique id.
Common base class of all Component templates.
const Attribute< Real >::Ptr mSetPointReactivePower
Reactive power set point of the machine [VAr].
void modifyPowerFlowBusType(PowerflowBusType powerflowBusType) override
Modify powerflow bus type.
const Attribute< Real >::Ptr mBaseVoltage
Base voltage [V].
SynchronGenerator(String name, Logger::Level logLevel=Logger::Level::off)
Defines name and logging level.
const Attribute< Real >::Ptr mSetPointReactivePowerPerUnit
Reactive power set point of the machine [pu].
Complex getApparentPower() const
Get Apparent power of Powerflow solution.
void setBaseVoltage(Real baseVoltage)
Set base voltage.
void calculatePerUnitParameters(Real baseApparentPower, Real baseOmega)
Initializes component from power flow data.
const Attribute< Real >::Ptr mSetPointActivePower
Active power set point of the machine [W].
SynchronGenerator(String uid, String name, Logger::Level logLevel=Logger::Level::off)
Defines UID, name and logging level.
void updateReactivePowerInjection(Complex powerInj)
Update reactive power injection (PV Bus)
void setParameters(Real ratedApparentPower, Real ratedVoltage, Real setPointActivePower, Real setPointVoltage, PowerflowBusType powerflowBusType, Real setPointReactivepower=0)
Setter for synchronous generator parameters.
const Attribute< Real >::Ptr mSetPointVoltagePerUnit
Voltage set point of the machine [pu].
void updatePowerInjection(Complex powerInj)
Update active & reactive power injection (VD bus)
const Attribute< Real >::Ptr mSetPointVoltage
Voltage set point of the machine [V].
const Attribute< Real >::Ptr mSetPointActivePowerPerUnit
Active power set point of the machine [pu].
Base class for all components that are transmitting power.