-
Notifications
You must be signed in to change notification settings - Fork 21
Conversation
|
||
# This will automatically initialize the system by running a power flow | ||
# and update `V_ref`, `P_ref` and hence `eq_p` (the internal voltage) to match the | ||
# solution of the power flow. It will also initialize the states in the equilibrium, | ||
# which can be printed with: | ||
print_device_states(sim) | ||
show_device_states(sim) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be show_states_initial_value(sim)
@@ -84,14 +83,15 @@ sim = PSID.Simulation( | |||
# We can obtain the initial conditions as: | |||
|
|||
#Will print the initial states. It also give the symbols used to describe those states. | |||
print_device_states(sim) | |||
show_device_states(sim) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto: show_states_initial_value(sim)
|
||
# To examine the calculated initial conditions, we can export them into a dictionary: | ||
x0_init = PSID.get_initial_conditions(sim) | ||
x0_init = get_initial_conditions(sim) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We change it to read_initial_conditions(sim)
#Will export a dictionary with the initial condition values to explore | ||
x0_init = PSID.get_initial_conditions(sim) | ||
x0_init = get_initial_conditions(sim) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto: read_initial_conditions(sim)
#Will export a dictionary with the initial condition values to explore | ||
x0_init_dyn = PSID.get_initial_conditions(sim_dyn) | ||
x0_init_dyn = get_initial_conditions(sim_dyn) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto: read_initial_conditions(sim)
@@ -165,9 +162,9 @@ PSID.execute!( | |||
# We can obtain the initial conditions as: | |||
|
|||
#Will print the initial states. It also give the symbols used to describe those states. | |||
print_device_states(sim_dyn) | |||
show_device_states(sim_dyn) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto: show_states_initial_value(sim)
Codecov Report
@@ Coverage Diff @@
## master #41 +/- ##
======================================
Coverage 7.52% 7.52%
======================================
Files 3 3
Lines 93 93
======================================
Hits 7 7
Misses 86 86
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
No description provided.