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
f044648f
Commit
f044648f
authored
Jul 10, 2019
by
Markus Mirz
Browse files
fix mna solver call to comp initialize
parent
ed0c90bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/MNASolver.cpp
View file @
f044648f
...
...
@@ -114,9 +114,10 @@ void MnaSolver<Real>::initializeComponents() {
// This intialization according to power flow information is not MNA specific.
mSLog
->
info
(
"-- Initialize components from power flow"
);
for
(
auto
comp
:
mPowerComponents
)
{
auto
pComp
=
std
::
dynamic_pointer_cast
<
PowerComponent
<
Real
>>
(
comp
);
auto
pComp
=
std
::
dynamic_pointer_cast
<
PowerComponent
<
Complex
>>
(
comp
);
if
(
!
pComp
)
continue
;
pComp
->
initializeFromPowerflow
(
mSystem
.
mSystemFrequency
);
pComp
->
initialize
(
mSystem
.
mFrequencies
);
}
// Initialize signal components.
...
...
@@ -146,10 +147,10 @@ void MnaSolver<Complex>::initializeComponents() {
// Initialize power components with frequencies and from powerflow results
for
(
auto
comp
:
mPowerComponents
)
{
comp
->
initialize
(
mSystem
.
mFrequencies
);
auto
pComp
=
std
::
dynamic_pointer_cast
<
PowerComponent
<
Complex
>>
(
comp
);
if
(
!
pComp
)
continue
;
pComp
->
initializeFromPowerflow
(
mSystem
.
mSystemFrequency
);
pComp
->
initialize
(
mSystem
.
mFrequencies
);
}
// Initialize signal components.
...
...
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