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
65a000be
Commit
65a000be
authored
Dec 17, 2019
by
Jan Dinkelbach
Committed by
Markus Mirz
Jan 31, 2020
Browse files
pfsolver: allow vd and pv comps at same bus using vd as default
Former-commit-id:
a8434448
parent
a061331a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/PFSolver.cpp
View file @
65a000be
...
...
@@ -164,10 +164,16 @@ void PFSolver::determinePFBusType() {
else
if
(
connectedPV
&&
connectedPQ
&&
!
connectedVD
)
{
mPVBusIndices
.
push_back
(
node
->
simNode
());
mPVBuses
.
push_back
(
node
);
mSLog
->
info
(
"Note: node with uuid {} set as PV bus. Both PV and PQ type components were connected."
,
node
->
attribute
<
String
>
(
"uid"
)
->
get
());
}
// only VD type component connected -> set as VD bus
else
if
(
!
connectedPV
&&
!
connectedPQ
&&
connectedVD
)
{
mVDBusIndices
.
push_back
(
node
->
simNode
());
mVDBuses
.
push_back
(
node
);
}
// VD and PV type component connect -> set as VD bus
else
if
(
connectedPV
&&
!
connectedPQ
&&
connectedVD
)
{
mVDBusIndices
.
push_back
(
node
->
simNode
());
mVDBuses
.
push_back
(
node
);
mSLog
->
info
(
"Note: node with uuid {} set as VD bus. Both VD and PV type components were connected."
,
node
->
attribute
<
String
>
(
"uid"
)
->
get
());
}
else
{
std
::
stringstream
ss
;
...
...
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