recordData
Provides a data set of most common used settings
Extends from Modelica.Icons.Record (Icon for records).
Information
Here a common data set for this library is defined.
It is possible to insert this class to models and use the common data set for the respective model.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | n_eff_ | if use_n then n_manning else 1/m_manning | Effective Manning's n coefficient |
| SI.Height | p_eps | if FrictionMethod == Types.FrictionMethod.PipeRoughness then p_eps_input elseif FrictionMethod == Types.FrictionMethod.MoodyFriction then 3.7*D_h*10^(-1/(2*sqrt(f_moody))) else D_h*3.0971*exp(-0.118/n_eff_) | Computed equivalent pipe roughness height |
| Icon | |||
| Boolean | showElevation | true | Display elevation of connectors |
| Constants | |||
| SI.Acceleration | g | Modelica.Constants.g_n | Gravity constant |
| Real | gamma_air | 1.4 | Ratio of heat capacities at constant pressure (C_p) to constant volume (C_v) for air at STP |
| SI.Pressure | p_a | 0 | Default calculation is gauge pressure (set p_a to atmospheric pressure if absolute pressure is required) |
| SI.MolarMass | M_a | 28.97e-3 | Molar mass of air at STP |
| Waterway properties | |||
| SI.Density | rho | 999.65 | Water density at T_0 |
| SI.DynamicViscosity | mu | 1.3076e-3 | Dynamic viscosity of water at T_0 |
| SI.Compressibility | beta | 4.5e-10 | Water compressibility |
| SI.Compressibility | beta_total | 1/(rho*1000^2) | Total compressibility |
| Friction | |||
| Types.FrictionMethod | FrictionMethod | Types.FrictionMethod.PipeRoughness | Default friction specification method |
| SI.Height | p_eps_input | 0 | Pipe roughness height (for PipeRoughness method) |
| Real | f_moody | 0.02 | Moody friction factor (used when FrictionMethod = MoodyFriction) |
| Real | m_manning | 40 | Manning M (Strickler) coefficient (used when FrictionMethod = ManningFriction) |
| Boolean | use_n | false | If true, use Manning's n instead of M |
| Real | n_manning | 0.025 | Manning's n coefficient (used when FrictionMethod = ManningFriction and use_n) |
| SI.Diameter | D_h | 1.0 | Reference hydraulic diameter for friction conversion (used for Moody/Manning) |
| System properties | |||
| SI.Frequency | f_grid | 50 | Grid frequency |
| Initialization | |||
| Boolean | SteadyState | false | If checked, simulation starts in steady state |
| SI.VolumeFlowRate | Vdot_0 | 0 | Initial volume flow rate through the system |
| SI.PerUnit | f_0 | 1 | Initial unit speed |
| Thermal behaviour (not yet implemented) | |||
| Boolean | TempUse | false | If checked, the water temperature is not constant |
| SI.Temperature | T_0 | 283.15 | Initial water temperature |
| SI.SpecificHeatCapacity | c_p | 4200 | Heat capacity of water at T_0 |