28 Real mBaseApparentPower;
62 Real setPointActivePower,
Real setPointVoltage,
64 Real setPointReactivepower = 0,
65 Real qLimMax = std::numeric_limits<Real>::infinity(),
66 Real qLimMin = -std::numeric_limits<Real>::infinity());
AttributePointer< Attribute< T > > Ptr
String uid()
Returns unique id.
spdlog::level::level_enum Level
PFSolverInterfaceBus()=default
const Attribute< Real >::Ptr mSetPointReactivePower
Reactive power set point of the machine [VAr].
Real getBaseVoltage() const
const Attribute< Real >::Ptr mReactivePowerMax
Maximum reactive power limit [VAr] (default +inf = unlimited)
void modifyPowerFlowBusType(PowerflowBusType powerflowBusType) override
Modify powerflow bus type.
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].
const Attribute< Real >::Ptr mReactivePowerMin
Minimum reactive power limit [VAr] (default -inf = unlimited)
const Attribute< Real >::Ptr mReactivePowerMinPerUnit
Minimum reactive power limit [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)
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 mReactivePowerMaxPerUnit
Maximum reactive power limit [pu].
const Attribute< Real >::Ptr mSetPointVoltage
Voltage set point of the machine [V].
void setParameters(Real ratedApparentPower, Real ratedVoltage, Real setPointActivePower, Real setPointVoltage, PowerflowBusType powerflowBusType, Real setPointReactivepower=0, Real qLimMax=std::numeric_limits< Real >::infinity(), Real qLimMin=-std::numeric_limits< Real >::infinity())
const Attribute< Real >::Ptr mSetPointActivePowerPerUnit
Active power set point of the machine [pu].
SimPowerComp(String uid, String name, Logger::Level logLevel=Logger::Level::off)
std::complex< Real > Complex