11 #include <dpsim-models/CompositePowerComp.h>
12 #include <dpsim-models/PowerProfile.h>
13 #include <dpsim-models/SP/SP_Ph1_Capacitor.h>
14 #include <dpsim-models/SP/SP_Ph1_Inductor.h>
15 #include <dpsim-models/SP/SP_Ph1_PQNode.h>
16 #include <dpsim-models/SP/SP_Ph1_PVNode.h>
17 #include <dpsim-models/SP/SP_Ph1_Resistor.h>
18 #include <dpsim-models/SP/SP_Ph1_VDNode.h>
19 #include <dpsim-models/Solver/PFSolverInterfaceBus.h>
41 Real mBaseApparentPower;
56 std::shared_ptr<SP::Ph1::Inductor> mSubInductor;
58 std::shared_ptr<SP::Ph1::Capacitor> mSubCapacitor;
60 std::shared_ptr<SP::Ph1::Resistor> mSubResistor;
64 Load(String
uid, String name, Logger::Level logLevel = Logger::Level::off);
66 Load(String name, Logger::Level logLevel = Logger::Level::off)
67 :
Load(name, name, logLevel) {}
69 void setParameters(Real activePower, Real reactivePower, Real nominalVoltage);
98 mnaParentAddPostStepDependencies(AttributeBase::List &prevStepDependencies,
99 AttributeBase::List &attributeDependencies,
100 AttributeBase::List &modifiedAttributes,
Base class for composite power components.
String uid()
Returns unique id.
Common base class of all Component templates.
const Attribute< Real >::Ptr mReactivePower
Reactive power [VAr].
void mnaCompUpdateVoltage(const Matrix &leftVector) override
Updates internal voltage variable of the component.
void modifyPowerFlowBusType(PowerflowBusType powerflowBusType) override
Modify powerflow bus type.
const Attribute< Real >::Ptr mActivePower
Active power [Watt].
const Attribute< Real >::Ptr mReactivePowerPerUnit
Reactive power [pu].
void initializeFromNodesAndTerminals(Real frequency) override
Initializes component from power flow data.
PowerProfile mLoadProfile
Load profile data.
Load(String uid, String name, Logger::Level logLevel=Logger::Level::off)
Defines UID, name and logging level.
Load(String name, Logger::Level logLevel=Logger::Level::off)
Defines name and logging level.
const Attribute< Real >::Ptr mNomVoltage
Nominal voltage [V].
void updatePQ(Real time)
Update PQ for this load for power flow calculation at next time step.
void mnaParentPostStep(Real time, Int timeStepCount, Attribute< Matrix >::Ptr &leftVector) override
MNA post step operations.
const Attribute< Real >::Ptr mActivePowerPerUnit
Active power [pu].
void mnaCompUpdateCurrent(const Matrix &leftVector) override
Updates internal current variable of the component.
bool use_profile
Use the assigned load profile.
void calculatePerUnitParameters(Real baseApparentPower, Real baseOmega)
Calculates component's parameters in specified per-unit system.