Conversation
tobiasreischl
commented
Feb 18, 2026
> Changed from Medium.* to SI.* > keep SI.PressureDifference > SI.Pressure -> SI.AbsolutePressure only for p, not for r > Modelica.Units.SI. changed to SI. > IMPORTANT: Media not changed (for now)
|
|
||
| protected | ||
| SI.Pressure p_env "Environmental pressure"; | ||
| SI.AbsolutePressure p_env "Environmental pressure"; |
There was a problem hiding this comment.
Keep SI.AbsolutePressure. Do not change to Medium.AbsolutePressure.
| parameter Boolean pEnvFromInput = false "=true, if environmental pressure input connector is enabled" | ||
| annotation(Dialog(group="Environmental pressure"),Evaluate=true, HideResult=true, choices(checkBox=true)); | ||
| parameter SI.Pressure p_env_par=1e5 "Environmental pressure set value" | ||
| parameter SI.AbsolutePressure p_env_par=1e5 "Environmental pressure set value" |
There was a problem hiding this comment.
Do not change to Medium.AbsolutePressure.
|
|
||
| protected | ||
| SI.Pressure p_env "Environmental pressure"; | ||
| SI.AbsolutePressure p_env "Environmental pressure"; |
There was a problem hiding this comment.
Do not change to Medium.AbsolutePressure.
|
The requested changes always refer to the last line of the preview.
|
| Medium.AbsolutePressure staticHeadOutlets_Pa_relative[M_outlets] "relative pressure to liquid surface, 0 if above surface"; | ||
| SI.Length staticHeadInlets[N_inlets] "distance perpendicular to liquid surface, 0 if above surface"; | ||
| SI.Length staticHeadOutlets[M_outlets] "distance perpendicular to liquid surface, 0 if above surface"; | ||
| SI.AbsolutePressure staticHeadInlets_Pa_relative[N_inlets] "relative pressure to liquid surface, 0 if above surface"; |
There was a problem hiding this comment.
| SI.AbsolutePressure staticHeadInlets_Pa_relative[N_inlets] "relative pressure to liquid surface, 0 if above surface"; | |
| SI.Pressure staticHeadInlets_Pa_relative[N_inlets] "relative pressure to liquid surface, 0 if above surface"; |
| SI.Length staticHeadInlets[N_inlets] "distance perpendicular to liquid surface, 0 if above surface"; | ||
| SI.Length staticHeadOutlets[M_outlets] "distance perpendicular to liquid surface, 0 if above surface"; | ||
| SI.AbsolutePressure staticHeadInlets_Pa_relative[N_inlets] "relative pressure to liquid surface, 0 if above surface"; | ||
| SI.AbsolutePressure staticHeadOutlets_Pa_relative[M_outlets] "relative pressure to liquid surface, 0 if above surface"; |
There was a problem hiding this comment.
| SI.AbsolutePressure staticHeadOutlets_Pa_relative[M_outlets] "relative pressure to liquid surface, 0 if above surface"; | |
| SI.Pressure staticHeadOutlets_Pa_relative[M_outlets] "relative pressure to liquid surface, 0 if above surface"; |
| SI.SpecificEnthalpy | ||
| h_in[N_inlets]; |
There was a problem hiding this comment.
| SI.SpecificEnthalpy | |
| h_in[N_inlets]; | |
| SI.SpecificEnthalpy h_in[N_inlets]; |
| SI.SpecificEnthalpy | ||
| h_out[M_outlets]; |
There was a problem hiding this comment.
| SI.SpecificEnthalpy | |
| h_out[M_outlets]; | |
| SI.SpecificEnthalpy h_out[M_outlets]; |
| SI.DerDensityByPressure | ||
| density_derp_h=(V_ref*medium.d)/(V*K) "Partial derivative of density by pressure"; |
There was a problem hiding this comment.
| SI.DerDensityByPressure | |
| density_derp_h=(V_ref*medium.d)/(V*K) "Partial derivative of density by pressure"; | |
| SI.DerDensityByPressure density_derp_h=(V_ref*medium.d)/(V*K) "Partial derivative of density by pressure"; |
| SI.Temperature | ||
| T_heatPort; |
There was a problem hiding this comment.
| SI.Temperature | |
| T_heatPort; | |
| SI.Temperature T_heatPort; |
|
|
||
| Real u(unit="1") "Actuation input for flow calculation"; | ||
| parameter Modelica.Units.SI.Pressure dp_ref=1e5 | ||
| parameter SI.Pressure dp_ref=1e5 |
There was a problem hiding this comment.
| parameter SI.Pressure dp_ref=1e5 | |
| parameter SI.AbsolutePressure dp_ref=1e5 |
| Real friction_factor(unit="1"); | ||
| SI.Pressure pressureLossLaminar "Laminar pressure loss"; | ||
| SI.Pressure pressureLossTurbulent "Turbulent pressure loss"; | ||
| SI.AbsolutePressure pressureLossLaminar "Laminar pressure loss"; |
There was a problem hiding this comment.
| SI.AbsolutePressure pressureLossLaminar "Laminar pressure loss"; | |
| SI.PressureDifference pressureLossLaminar "Laminar pressure loss"; |
| SI.Pressure pressureLossLaminar "Laminar pressure loss"; | ||
| SI.Pressure pressureLossTurbulent "Turbulent pressure loss"; | ||
| SI.AbsolutePressure pressureLossLaminar "Laminar pressure loss"; | ||
| SI.AbsolutePressure pressureLossTurbulent "Turbulent pressure loss"; |
There was a problem hiding this comment.
| SI.AbsolutePressure pressureLossTurbulent "Turbulent pressure loss"; | |
| SI.PressureDifference pressureLossTurbulent "Turbulent pressure loss"; |
| input SI.Length l(min=0) "Length"; | ||
|
|
||
| output SI.Pressure pressureLoss "pressure loss (dp)"; | ||
| output SI.AbsolutePressure pressureLoss "pressure loss (dp)"; |
There was a problem hiding this comment.
| output SI.AbsolutePressure pressureLoss "pressure loss (dp)"; | |
| output SI.PressureDifference pressureLoss "pressure loss (dp)"; |
| parameter SI.Temperature | ||
| T_0 = Medium.T_default "Initial Temperature" |
There was a problem hiding this comment.
| parameter SI.Temperature | |
| T_0 = Medium.T_default "Initial Temperature" | |
| parameter SI.Temperature T_0 = Medium.T_default "Initial Temperature" |
| annotation( | ||
| Dialog(tab="Initialization", group="Specific enthalpy", enable=(init == Internal.InitializationMethodsCondElement.T))); |
There was a problem hiding this comment.
| annotation( | |
| Dialog(tab="Initialization", group="Specific enthalpy", enable=(init == Internal.InitializationMethodsCondElement.T))); | |
| annotation(Dialog(tab="Initialization", group="Specific enthalpy", enable=(init == Internal.InitializationMethodsCondElement.T))); |
| input SI.Length Delta(min = 0) "Relaitiv roughness"; | ||
| input SI.Density rho "Inlet density"; | ||
| input SI.DynamicViscosity mu "Dynamic viscosity"; | ||
| input Real Re1 "Lower boundary Re for laminar-turbulent transition regime"; |
There was a problem hiding this comment.
| input Real Re1 "Lower boundary Re for laminar-turbulent transition regime"; | |
| input SI.ReynoldsNumber Re1 "Lower boundary Re for laminar-turbulent transition regime"; |
| input SI.Density rho "Inlet density"; | ||
| input SI.DynamicViscosity mu "Dynamic viscosity"; | ||
| input Real Re1 "Lower boundary Re for laminar-turbulent transition regime"; | ||
| input Real Re2 "Upper boundary Re for laminar-turbulent transition regime"; |
There was a problem hiding this comment.
| input Real Re2 "Upper boundary Re for laminar-turbulent transition regime"; | |
| input SI.ReynoldsNumber Re2 "Upper boundary Re for laminar-turbulent transition regime"; |
| SI.AbsolutePressure p_branching "Total pressure branching inlet"; | ||
| SI.AbsolutePressure p[2] = {p_straight, p_branching} "Total pressure inlets [straight branching]"; | ||
|
|
||
| SI.Pressure dq_straight "Dynamic pressure difference straight inlet - outlet"; |
There was a problem hiding this comment.
| SI.Pressure dq_straight "Dynamic pressure difference straight inlet - outlet"; | |
| SI.PressureDifference dq_straight "Dynamic pressure difference straight inlet - outlet"; |
| SI.AbsolutePressure p[2] = {p_straight, p_branching} "Total pressure inlets [straight branching]"; | ||
|
|
||
| SI.Pressure dq_straight "Dynamic pressure difference straight inlet - outlet"; | ||
| SI.Pressure dq_branching "Dynamic pressure difference straight inlet - outlet"; |
There was a problem hiding this comment.
| SI.Pressure dq_branching "Dynamic pressure difference straight inlet - outlet"; | |
| SI.PressureDifference dq_branching "Dynamic pressure difference straight inlet - outlet"; |
| input SI.Length Delta(min = 0) "Relaitiv roughness"; | ||
| input SI.Density rho "Inlet density"; | ||
| input SI.DynamicViscosity mu "Dynamic viscosity"; | ||
| input Real Re1 "Lower boundary Re for laminar-turbulent transition regime"; |
There was a problem hiding this comment.
| input Real Re1 "Lower boundary Re for laminar-turbulent transition regime"; | |
| input SI.ReynoldsNumber Re1 "Lower boundary Re for laminar-turbulent transition regime"; |
| input SI.Density rho "Inlet density"; | ||
| input SI.DynamicViscosity mu "Dynamic viscosity"; | ||
| input Real Re1 "Lower boundary Re for laminar-turbulent transition regime"; | ||
| input Real Re2 "Upper boundary Re for laminar-turbulent transition regime"; |
There was a problem hiding this comment.
| input Real Re2 "Upper boundary Re for laminar-turbulent transition regime"; | |
| input SI.ReynoldsNumber Re2 "Upper boundary Re for laminar-turbulent transition regime"; |
| SI.AbsolutePressure p_branching "Total pressure branching inlet"; | ||
| SI.AbsolutePressure p[2] = {p_straight, p_branching} "Total pressure inlets [straight branching]"; | ||
|
|
||
| SI.Pressure dq_straight "Dynamic pressure difference straight inlet - outlet"; |
There was a problem hiding this comment.
| SI.Pressure dq_straight "Dynamic pressure difference straight inlet - outlet"; | |
| SI.PressureDifference dq_straight "Dynamic pressure difference straight inlet - outlet"; |
| SI.AbsolutePressure p[2] = {p_straight, p_branching} "Total pressure inlets [straight branching]"; | ||
|
|
||
| SI.Pressure dq_straight "Dynamic pressure difference straight inlet - outlet"; | ||
| SI.Pressure dq_branching "Dynamic pressure difference straight inlet - outlet"; |
There was a problem hiding this comment.
| SI.Pressure dq_branching "Dynamic pressure difference straight inlet - outlet"; | |
| SI.PressureDifference dq_branching "Dynamic pressure difference straight inlet - outlet"; |
| SI.Temperature | ||
| T = Medium.temperature(center_state) "Temperature at center state"; |
There was a problem hiding this comment.
| SI.Temperature | |
| T = Medium.temperature(center_state) "Temperature at center state"; | |
| SI.Temperature T = Medium.temperature(center_state) "Temperature at center state"; |
| parameter SI.Temperature | ||
| T_start=Medium.T_default |
There was a problem hiding this comment.
| parameter SI.Temperature | |
| T_start=Medium.T_default | |
| parameter SI.Temperature T_start = Medium.T_default |
| parameter SI.SpecificEnthalpy | ||
| h_start=Medium.h_default |
There was a problem hiding this comment.
| parameter SI.SpecificEnthalpy | |
| h_start=Medium.h_default | |
| parameter SI.SpecificEnthalpy h_start=Medium.h_default |
| SI.Length staticHeadFores[N_fores] | ||
| "distance perpendicular to liquid surface"; | ||
| Medium.AbsolutePressure staticHeadInlets_Pa_relative[N_inlets] | ||
| SI.AbsolutePressure staticHeadInlets_Pa_relative[N_inlets] |
There was a problem hiding this comment.
| SI.AbsolutePressure staticHeadInlets_Pa_relative[N_inlets] | |
| SI.Pressure staticHeadInlets_Pa_relative[N_inlets] |
| SI.AbsolutePressure staticHeadInlets_Pa_relative[N_inlets] | ||
| "relative pressure to liquid surface"; | ||
| Medium.AbsolutePressure staticHeadOutlets_Pa_relative[N_outlets] | ||
| SI.AbsolutePressure staticHeadOutlets_Pa_relative[N_outlets] |
There was a problem hiding this comment.
| SI.AbsolutePressure staticHeadOutlets_Pa_relative[N_outlets] | |
| SI.Pressure staticHeadOutlets_Pa_relative[N_outlets] |
| SI.AbsolutePressure staticHeadOutlets_Pa_relative[N_outlets] | ||
| "relative pressure to liquid surface"; | ||
| Medium.AbsolutePressure staticHeadRears_Pa_relative[N_rears] | ||
| SI.AbsolutePressure staticHeadRears_Pa_relative[N_rears] |
There was a problem hiding this comment.
| SI.AbsolutePressure staticHeadRears_Pa_relative[N_rears] | |
| SI.Pressure staticHeadRears_Pa_relative[N_rears] |
| SI.AbsolutePressure staticHeadRears_Pa_relative[N_rears] | ||
| "relative pressure to liquid surface"; | ||
| Medium.AbsolutePressure staticHeadFores_Pa_relative[N_fores] | ||
| SI.AbsolutePressure staticHeadFores_Pa_relative[N_fores] |
There was a problem hiding this comment.
| SI.AbsolutePressure staticHeadFores_Pa_relative[N_fores] | |
| SI.Pressure staticHeadFores_Pa_relative[N_fores] |
| SI.SpecificEnthalpy | ||
| h_in[N_inlets]; |
There was a problem hiding this comment.
| SI.SpecificEnthalpy | |
| h_in[N_inlets]; | |
| SI.SpecificEnthalpy h_in[N_inlets]; |
| SI.SpecificEnthalpy | ||
| h_out[N_outlets]; |
There was a problem hiding this comment.
| SI.SpecificEnthalpy | |
| h_out[N_outlets]; | |
| SI.SpecificEnthalpy h_out[N_outlets]; |
| SI.SpecificEnthalpy | ||
| h_rear[N_rears]; |
There was a problem hiding this comment.
| SI.SpecificEnthalpy | |
| h_rear[N_rears]; | |
| SI.SpecificEnthalpy h_rear[N_rears]; |
| SI.SpecificEnthalpy | ||
| h_fore[N_fores]; |
There was a problem hiding this comment.
| SI.SpecificEnthalpy | |
| h_fore[N_fores]; | |
| SI.SpecificEnthalpy h_fore[N_fores]; |
| SI.DerDensityByPressure | ||
| density_derp_h=(V_ref*medium.d)/(V*K) |
There was a problem hiding this comment.
| SI.DerDensityByPressure | |
| density_derp_h=(V_ref*medium.d)/(V*K) | |
| SI.DerDensityByPressure density_derp_h=(V_ref*medium.d)/(V*K) |
ThermofluidStream/Undirected/Boundaries/Internal/PartialTankUndirected.mo
Outdated
Show resolved
Hide resolved
…directed.mo Co-authored-by: RaphaelGebhart <159274394+RaphaelGebhart@users.noreply.github.com>