Example2.Utilities.UtilityComponents

Package Content

Name Description
Example2.Utilities.UtilityComponents.DymolaAnnotationSelection DymolaAnnotationSelection Add to a model the selections with Dymola-specific annotations
Example2.Utilities.UtilityComponents.EventTriggerSnapshotScenario EventTriggerSnapshotScenario Trigger snapshot saving at specific points of the simulation
Example2.Utilities.UtilityComponents.EventTriggerSnapshot EventTriggerSnapshot Trigger snapshot saving at specific points of the simulation

Example2.Utilities.UtilityComponents.DymolaAnnotationSelection Example2.Utilities.UtilityComponents.DymolaAnnotationSelection

Add to a model the selections with Dymola-specific annotations

Information

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.

Example2.Utilities.UtilityComponents.EventTriggerSnapshotScenario Example2.Utilities.UtilityComponents.EventTriggerSnapshotScenario

Trigger snapshot saving at specific points of the simulation

Parameters

NameDescription
talphastart of the scenario
t2p5Ramping interval (default 2.5 min)
t5p0Probing 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 

Example2.Utilities.UtilityComponents.EventTriggerSnapshot Example2.Utilities.UtilityComponents.EventTriggerSnapshot

Trigger snapshot saving at specific points of the simulation

Automatically generated Wed Mar 13 11:47:15 2024.