Name | Description |
---|---|
DymolaAnnotationSelection | Add to a model the selections with Dymola-specific annotations |
EventTriggerSnapshotScenario | Trigger snapshot saving at specific points of the simulation |
EventTriggerSnapshot | Trigger snapshot saving at specific points of the simulation |
Add to a model the selections with Dymola-specific annotations
In this model, the Dymola-specific annotation __Dymola_selections is provided as an example so that the user can configure its own to store the variables preferred.
Expanding the annotations, the following variables can be found:
__Dymola_selections={Selection(name="MySelection", match={MatchVariable(name="plant.Vt", newName="Vt"),MatchVariable(name="plant.Q", newName="Q"),MatchVariable(name="plant.P",newName="P"),MatchVariable(name="plant.w",newName="w"),MatchVariable(name="plant.AVRin",newName="u"),MatchVariable(name="plant.AVRout",newName="AVRout"),MatchVariable(name="timedMultiRamp.y",newName="rampY"),MatchVariable(name="plant.Load9.P",newName="Pload"),MatchVariable(name="r.y",newName="r"),MatchVariable(name="plant.g1.pss.vs",newName="pssy"),MatchVariable(name="ramping.y",newName="rampingy")})}
Here several variables from the model used in Example2 are stored.
Usage:
This model can be added to a model containing the model Example2.Base.Systems.sys, which is instantiated as "plant".
Alternatively the annotation above can be copy/pasted to a model containing Example2.Base.Systems.sys, which should be instantiated as plant.
Trigger snapshot saving at specific points of the simulation
Name | Description |
---|---|
talpha | start of the scenario |
t2p5 | Ramping interval (default 2.5 min) |
t5p0 | Probing interval (default 5.0 min) |
tnin_start | |
tnin_duration | |
tA_start | |
tA_duration | |
tB_start | |
tB_duration | |
tC_start | |
tC_duration | |
tbeta | |
tD_start | |
tD_duration | |
tE_start | |
tE_duration | |
tgamma | |
tF_start | |
tF_duration | |
tG_start | |
tG_duration | |
tdelta | |
tH_start | |
tH_duration | |
tI_start | |
tI_duration | |
Default Ramp Values | |
tramp1_start | |
tramp1_duration | |
tramp2_start | |
tramp2_duration | |
tramp3_start | |
tramp3_duration | |
tramp4_start | |
tramp4_duration |
Trigger snapshot saving at specific points of the simulation
Automatically generated Wed Mar 13 11:47:15 2024.