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
07f43322
Commit
07f43322
authored
Sep 22, 2020
by
Jan Dinkelbach
Browse files
Fix DP_CIGRE_MV_withDG_withLoadStep
parent
cb15ba8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Examples/Cxx/CIM/DP_CIGRE_MV_withDG_withLoadStep.cpp
View file @
07f43322
...
...
@@ -90,10 +90,10 @@ int main(int argc, char** argv){
Examples
::
CIGREMV
::
logPVAttributes
(
logger
,
pv
);
// // load step sized relative to nominal load at N11
// std::shared_ptr<SwitchEvent> loadStepEvent = Examples::createEventAddPowerConsumption("N11", 2-timeStep, 5*systemPF.component<CPS::SP::Ph1::Load>("LOAD-H-11")->attribute<CPS::Real>("P")->get(), systemDP, Domain::DP);
// std::shared_ptr<SwitchEvent> loadStepEvent = Examples::createEventAddPowerConsumption("N11", 2-timeStep, 5*systemPF.component<CPS::SP::Ph1::Load>("LOAD-H-11")->attribute<CPS::Real>("P")->get(), systemDP, Domain::DP
, logger
);
// load step sized in absolute terms
std
::
shared_ptr
<
SwitchEvent
>
loadStepEvent
=
Examples
::
createEventAddPowerConsumption
(
"N11"
,
2
-
timeStep
,
1500.0e3
,
systemDP
,
Domain
::
DP
);
std
::
shared_ptr
<
SwitchEvent
>
loadStepEvent
=
Examples
::
createEventAddPowerConsumption
(
"N11"
,
2
-
timeStep
,
1500.0e3
,
systemDP
,
Domain
::
DP
,
logger
);
Simulation
sim
(
simName
,
systemDP
,
timeStep
,
finalTime
,
Domain
::
DP
,
Solver
::
Type
::
MNA
,
Logger
::
Level
::
debug
,
true
);
...
...
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