9 #include <dpsim-models/SP/SP_Ph1_PVNode.h>
13 SP::Ph1::PVNode::PVNode(String uid, String name, Logger::Level logLevel)
15 mPowerSetPoint(mAttributes->create<Real>(
"P_set")),
16 mVoltageSetPoint(mAttributes->create<Real>(
"V_set")),
17 mVoltagePerUnit(mAttributes->create<Real>(
"V_set_pu")) {}
19 SP::Ph1::PVNode::PVNode(String uid, String name, Real power, Real vSetPoint,
20 Real maxQ, Real ratedU, Real ratedS,
21 Logger::Level logLevel)
22 : PVNode(uid, name, logLevel) {
24 **mPowerSetPoint = power;
25 **mVoltageSetPoint = vSetPoint;
27 **mVoltagePerUnit = vSetPoint / ratedU;
29 SPDLOG_LOGGER_INFO(mSLog,
"Create PV node for {} P={}, V={}", name,
30 **mPowerSetPoint, **mVoltageSetPoint);
Base class for all components that are transmitting power.