This package contains components to model a static gas cycle to get initial and nominal values for the states. The idea is taken from the ClaRa library (ClaRa.StaticCycles) and adapted and expanded to the needs in a gas grid with variable composition of the gas mixture.
Purely parameter calculations, no derivatives, no states. The fixed attribute of the parameters are set to false to allow the calculation of the unknown parameters inside the models. The equations are put into the inital equation section so that all unknown parameters are calculated before the simulation starts and can thus be used by the dynamic models for initial and/or nominal values.
Use these components only for static calculations (inital and nominal values) as no transient effects are considered.
The interfaces have to different color to mark which parameters are known (and unknown). For example for the Blue Input the value of p is known in the component and provided FOR neighbor component, values of m_flow, h and xi are unknown and provided BY the neighbor component (Blue Output).
Interface |
Knowns |
Blue Input |
p |
Blue Output |
m_flow, h, xi |
Green Input |
none |
Green Output |
p, m_flow, h, xi |
Red Input |
p, m_flow |
Red Output |
h, xi |
Yellow Input |
m_flow |
Yellow Output |
p, h, xi |
Connect only interfaces with the same color, inputs with outputs.