
modelInitJunction
Imposes constant values upstream (p) and/or downstream (Mdot and h) at the beginning of the simulation to reduce initialization issues
Parameters
| Type | Name | Default | Description |
| Boolean | noevent | false | Avoids generating events during the transition |
| Modelica.SIunits.Time | tinit | 10 | Start time of the transition to the real boundary |
| Modelica.SIunits.Time | duration | 5 | Duration of the transition |
| Downstream |
| Boolean | const_downstream | false | Set to true to impose the boundary conditions during initialization (thus discarding the real ones) |
| Boolean | Use_pT | true | Use p and T to defined the initial inlet enthalpy |
| Modelica.SIunits.MassFlowRate | Mdot_ex_init | 0.2 | Initial inlet mass flow |
| Modelica.SIunits.SpecificEnthalpy | h_ex_init | 2E5 | Initial inlet enthalpy |
| Modelica.SIunits.Temperature | T_ex_init | 273.15 + 25 | Initial inlet temperature |
| Modelica.SIunits.Pressure | p_ex_init | 1E5 | Initial inlet pressure (used to calculate the downstream enthalpy |
| Upstream |
| Boolean | const_upstream | false | Set to true to impose the boundary conditions during initialization (thus discarding the real ones) |
| Modelica.SIunits.Pressure | p_su_init | 1E5 | Initial inlet pressure |