Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions OpenHPL/Data.mo
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ record Data "Provides a data set of most common used settings"
annotation (Dialog(enable=false, group = "Constants"));
parameter Real gamma_air = 1.4 "Ratio of heat capacities at constant pressure (C_p) to constant volume (C_v) for air at STP"
annotation (Dialog(enable=false, group = "Constants"));
parameter SI.Pressure p_a = 1.013e5 "Atmospheric pressure"
parameter SI.Pressure p_a = 0 "Default calculation is gauge pressure (set p_a to atmospheric pressure if absolute pressure is required)"
annotation (Dialog(group = "Constants"));
parameter SI.MolarMass M_a = 28.97e-3 "Molar mass of air at STP"
annotation (Dialog(group = "Constants"));
parameter SI.Density rho = 999.65 "Water density at T_0"
annotation (Dialog(group = "Waterway properties"));
parameter SI.DynamicViscosity mu = 1.3076e-3 "Dynamic viscosity of water at T_0"
annotation (Dialog(group = "Waterway properties"));
parameter SI.Height p_eps = 5e-2 "Pipe roughness height"
parameter SI.Height p_eps = 0 "Pipe roughness height (default is smooth pipe)"
annotation (Dialog(group = "Waterway properties"));
parameter SI.Compressibility beta = 4.5e-10 "Water compressibility"
annotation (Dialog(group = "Waterway properties"));
parameter SI.Compressibility beta_total = 1 / (rho*1000^2) "Total compressibility"
annotation (Dialog(group = "Waterway properties"));
parameter Boolean SteadyState=false "If checked, simulation starts in steady state"
annotation (choices(checkBox = true), Dialog(group="Initialization"));
parameter SI.VolumeFlowRate Vdot_0=19.077 "Initial volume flow rate through the system"
parameter SI.VolumeFlowRate Vdot_0 = 0 "Initial volume flow rate through the system"
annotation (Dialog(group="Initialization"));
parameter SI.Frequency f_0 = 50 "Initial system frequency"
annotation (Dialog(group = "Initialization"));
Expand Down