Commit 6bca4a5a authored by Markus Mirz's avatar Markus Mirz
Browse files

remove unnecessary initialize methods

parent d96009fd
......@@ -81,7 +81,7 @@ namespace Ph1 {
/// Boolean for connection transformer usage
Bool mWithConnectionTransformer=false;
// #### solver ####
///
std::vector<const Matrix*> mRightVectorStamps;
......@@ -96,8 +96,6 @@ namespace Ph1 {
// #### General ####
/// Initializes component from power flow data
void initializeFromPowerflow(Real frequency);
/// General initalization
void initialize(Matrix frequencies);
/// Setter for general parameters of inverter
void setParameters(Real sysOmega, Real sysVoltNom, Real Pref, Real Qref);
/// Setter for parameters of control loops
......
......@@ -31,9 +31,6 @@ namespace CPS {
SimPowerComp<Complex>::Ptr clone(String name);
// #### General ####
///
void initialize(Matrix frequencies);
/// Initializes component from power flow data
void initializeFromPowerflow(Real frequency) { }
......
......@@ -53,8 +53,6 @@ namespace Ph1 {
///
void setSourceValue(Complex voltage);
///
void initialize(Matrix frequencies);
///
void setParameters(Complex voltageRef, Real srcFreq = -1);
// #### MNA Section ####
......
......@@ -52,8 +52,6 @@ namespace Ph1 {
SimPowerComp<Complex>::Ptr clone(String copySuffix);
// #### General ####
///
void initialize(Matrix frequencies);
/// Initializes component from power flow data
void initializeFromPowerflow(Real frequency);
......
......@@ -62,8 +62,6 @@ namespace Ph1 {
SimPowerComp<Complex>::Ptr clone(String name);
// #### General ####
/// Initialize components with network frequencies
void initialize(Matrix frequencies);
/// Initialize component from power flow data
void initializeFromPowerflow(Real frequency);
/// Set model specific parameters
......
......@@ -36,8 +36,6 @@ namespace Ph1 {
RXLoadSwitch(String name, Logger::Level logLevel = Logger::Level::off);
// #### General ####
///
void initialize(Matrix frequencies);
/// Initializes component from power flow data
void initializeFromPowerflow(Real frequency);
/// Sets model specific parameters
......
......@@ -33,8 +33,6 @@ namespace Ph1 {
SimPowerComp<Complex>::Ptr clone(String name);
// #### General ####
/// Initialize components with correct network frequencies
void initialize(Matrix frequencies);
/// Initializes component from power flow data
void initializeFromPowerflow(Real frequency);
......
......@@ -37,8 +37,6 @@ namespace Ph1 {
SimPowerComp<Complex>::Ptr clone(String name);
// #### General ####
///
void initialize(Matrix frequencies);
/// Initializes component from power flow data
void initializeFromPowerflow(Real frequency);
......
......@@ -36,8 +36,6 @@ namespace Ph1 {
SimPowerComp<Complex>::Ptr clone(String name);
// #### General ####
///
void initialize(Matrix frequencies);
/// Initializes component from power flow data
void initializeFromPowerflow(Real frequency);
......
......@@ -65,14 +65,9 @@ namespace Ph1 {
Real Rs, Real Lpd, Real inertiaJ, Real Kd = 0);
/// \brief Initializes the machine parameters
void setStandardParametersPU(Real nomPower, Real nomVolt, Real nomFreq, Real Xpd, Real inertia);
/// Initializes states in per unit or stator referred variables depending on the setting of the state type.
/// Function parameters have to be given in Real units.
void initialize(Real omega, Real timeStep);
///
void step(Real time);
///
void initialize(Matrix frequencies);
///
void initializeFromPowerflow(Real frequency);
// #### MNA Functions ####
......
......@@ -48,8 +48,6 @@ namespace Ph1 {
// #### General ####
/// Defines component parameters
void setParameters(Real ratioAbs, Real ratioPhase, Real resistance, Real inductance);
///
void initialize(Matrix frequencies);
/// Initializes component from power flow data
void initializeFromPowerflow(Real frequency);
......
......@@ -53,8 +53,6 @@ namespace Ph1 {
///
void setSourceValue(Complex voltage);
///
void initialize(Matrix frequencies);
///
void setParameters(Complex voltageRef, Real srcFreq = -1);
// #### MNA Section ####
......@@ -92,7 +90,7 @@ namespace Ph1 {
class MnaPostStep : public Task {
public:
MnaPostStep(VoltageSource& voltageSource, Attribute<Matrix>::Ptr leftVector) :
Task(voltageSource.mName + ".MnaPostStep"),
Task(voltageSource.mName + ".MnaPostStep"),
mVoltageSource(voltageSource), mLeftVector(leftVector) {
mVoltageSource.mnaAddPostStepDependencies(mPrevStepDependencies, mAttributeDependencies, mModifiedAttributes, mLeftVector);
}
......
......@@ -34,8 +34,6 @@ namespace Ph3 {
SimPowerComp<Complex>::Ptr clone(String name);
// #### General ####
///
void initialize(Matrix frequencies);
/// Initializes component from power flow data
void initializeFromPowerflow(Real frequency);
// #### MNA section ####
......
......@@ -34,8 +34,6 @@ namespace Ph3 {
SimPowerComp<Complex>::Ptr clone(String name);
// #### General ####
///
void initialize(Matrix frequencies);
/// Initializes component from power flow data
void initializeFromPowerflow(Real frequency);
// #### MNA section ####
......
......@@ -134,8 +134,6 @@ namespace Ph3 {
///
void updateSetPoint(Real time);
///
//void initialize(Matrix frequencies);
///
void initializeFromPowerflow(Real frequency);
// #### interface with villas node ####
void ctrlReceiver(Attribute<Real>::Ptr qref);
......
......@@ -51,8 +51,6 @@ namespace CPS {
///
void setSourceValue(MatrixComp voltage);
///
//void initialize(Matrix frequencies);
///
void setParameters(MatrixComp voltageRef, Real srcFreq = -1);
// #### MNA Section ####
......
......@@ -52,8 +52,6 @@ namespace Ph3 {
SimPowerComp<Real>::Ptr clone(String copySuffix);
// #### General ####
///
void initialize(Matrix frequencies);
/// Initializes component from power flow data
void initializeFromPowerflow(Real frequency);
......
......@@ -70,8 +70,6 @@ namespace CPS {
SimPowerComp<Real>::Ptr clone(String name);
// #### General ####
///
void initialize(Matrix frequencies);
/// Initializes component from power flow data
void initializeFromPowerflow(Real frequency);
......
......@@ -37,8 +37,6 @@ namespace Ph3 {
SimPowerComp<Real>::Ptr clone(String name);
// #### General ####
///
void initialize(Matrix frequencies);
/// Initializes component from power flow data
void initializeFromPowerflow(Real frequency);
......
......@@ -48,8 +48,6 @@ namespace CPS {
// #### General ####
/// Defines component parameters
void setParameters(Real ratioAbs, Real ratioPhase, Matrix resistance, Matrix inductance);
///
void initialize(Matrix frequencies);
/// Initializes component from power flow data
void initializeFromPowerflow(Real frequency);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment