11 #include <dpsim-models/CompositePowerComp.h>
12 #include <dpsim-models/EMT/EMT_Ph3_Capacitor.h>
13 #include <dpsim-models/EMT/EMT_Ph3_Inductor.h>
14 #include <dpsim-models/EMT/EMT_Ph3_Resistor.h>
15 #include <dpsim-models/Solver/MNAInterface.h>
36 Bool initPowerFromTerminal =
true;
52 RXLoad(String
uid, String name, Logger::Level logLevel = Logger::Level::off);
54 RXLoad(String name, Logger::Level logLevel = Logger::Level::off);
56 RXLoad(String name, Matrix activePower, Matrix reactivePower, Real volt,
57 Logger::Level logLevel = Logger::Level::off);
61 void setParameters(Matrix activePower, Matrix reactivePower, Real volt);
66 void mnaCompUpdateCurrent(
const Matrix &leftVector)
override;
67 void mnaCompUpdateVoltage(
const Matrix &leftVector)
override;
71 void mnaParentPostStep(Real time, Int timeStepCount,
74 void mnaParentAddPreStepDependencies(
75 AttributeBase::List &prevStepDependencies,
76 AttributeBase::List &attributeDependencies,
77 AttributeBase::List &modifiedAttributes)
override;
79 mnaParentAddPostStepDependencies(AttributeBase::List &prevStepDependencies,
80 AttributeBase::List &attributeDependencies,
81 AttributeBase::List &modifiedAttributes,
Base class for composite power components.
TODO: currently modelled as an impedance, which obviously doesn't have a constant power characteristi...
const Attribute< Matrix >::Ptr mActivePower
Active power [Watt].
RXLoad(String uid, String name, Logger::Level logLevel=Logger::Level::off)
Defines UID, name and logging level.
std::shared_ptr< EMT::Ph3::Resistor > mSubResistor
Internal resistance.
MatrixComp mPower
Power [Watt].
std::shared_ptr< EMT::Ph3::Inductor > mSubInductor
Internal inductor.
std::shared_ptr< EMT::Ph3::Capacitor > mSubCapacitor
Internal capacitor.
Matrix mResistance
Resistance [Ohm].
Matrix mReactance
Reactance [Ohm].
const Attribute< Real >::Ptr mNomVoltage
Nominal voltage [V].
void initializeFromNodesAndTerminals(Real frequency) override
Initializes component from power flow data.
void mnaParentPreStep(Real time, Int timeStepCount) override
MNA pre and post step operations.
Matrix mCapacitance
Capacitance [F].
const Attribute< Matrix >::Ptr mReactivePower
Reactive power [VAr].
Matrix mInductance
Inductance [H].
String uid()
Returns unique id.