Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
Power System Simulation and Optimization
DPsim
DPsim
Commits
6bca4a5a
Commit
6bca4a5a
authored
Oct 07, 2020
by
Markus Mirz
Browse files
remove unnecessary initialize methods
parent
d96009fd
Changes
43
Hide whitespace changes
Inline
Side-by-side
models/Include/cps/DP/DP_Ph1_AvVoltageSourceInverterDQ.h
View file @
6bca4a5a
...
...
@@ -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
...
...
models/Include/cps/DP/DP_Ph1_ControlledVoltageSource.h
View file @
6bca4a5a
...
...
@@ -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
)
{
}
...
...
models/Include/cps/DP/DP_Ph1_NetworkInjection.h
View file @
6bca4a5a
...
...
@@ -53,8 +53,6 @@ namespace Ph1 {
///
void
setSourceValue
(
Complex
voltage
);
///
void
initialize
(
Matrix
frequencies
);
///
void
setParameters
(
Complex
voltageRef
,
Real
srcFreq
=
-
1
);
// #### MNA Section ####
...
...
models/Include/cps/DP/DP_Ph1_PiLine.h
View file @
6bca4a5a
...
...
@@ -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
);
...
...
models/Include/cps/DP/DP_Ph1_RXLoad.h
View file @
6bca4a5a
...
...
@@ -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
...
...
models/Include/cps/DP/DP_Ph1_RXLoadSwitch.h
View file @
6bca4a5a
...
...
@@ -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
...
...
models/Include/cps/DP/DP_Ph1_Resistor.h
View file @
6bca4a5a
...
...
@@ -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
);
...
...
models/Include/cps/DP/DP_Ph1_Switch.h
View file @
6bca4a5a
...
...
@@ -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
);
...
...
models/Include/cps/DP/DP_Ph1_SynchronGeneratorIdeal.h
View file @
6bca4a5a
...
...
@@ -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
);
...
...
models/Include/cps/DP/DP_Ph1_SynchronGeneratorTrStab.h
View file @
6bca4a5a
...
...
@@ -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 ####
...
...
models/Include/cps/DP/DP_Ph1_Transformer.h
View file @
6bca4a5a
...
...
@@ -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
);
...
...
models/Include/cps/DP/DP_Ph1_VoltageSource.h
View file @
6bca4a5a
...
...
@@ -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
);
}
...
...
models/Include/cps/DP/DP_Ph3_Resistor.h
View file @
6bca4a5a
...
...
@@ -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 ####
...
...
models/Include/cps/DP/DP_Ph3_SeriesResistor.h
View file @
6bca4a5a
...
...
@@ -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 ####
...
...
models/Include/cps/EMT/EMT_Ph3_AvVoltageSourceInverterDQ.h
View file @
6bca4a5a
...
...
@@ -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
);
...
...
models/Include/cps/EMT/EMT_Ph3_NetworkInjection.h
View file @
6bca4a5a
...
...
@@ -51,8 +51,6 @@ namespace CPS {
///
void
setSourceValue
(
MatrixComp
voltage
);
///
//void initialize(Matrix frequencies);
///
void
setParameters
(
MatrixComp
voltageRef
,
Real
srcFreq
=
-
1
);
// #### MNA Section ####
...
...
models/Include/cps/EMT/EMT_Ph3_PiLine.h
View file @
6bca4a5a
...
...
@@ -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
);
...
...
models/Include/cps/EMT/EMT_Ph3_RXLoad.h
View file @
6bca4a5a
...
...
@@ -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
);
...
...
models/Include/cps/EMT/EMT_Ph3_Switch.h
View file @
6bca4a5a
...
...
@@ -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
);
...
...
models/Include/cps/EMT/EMT_Ph3_Transformer.h
View file @
6bca4a5a
...
...
@@ -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
);
...
...
Prev
1
2
3
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment