modelPartialTankUndirected
Information
To complete the partialTank, equations for total tank volume V, centreOfMass, staticHeadInlets, staticHeadOutlets, staticHeadRears and staticHeadFores needs to be provided.
This separation is made to make it easy to implement arbitrary geometries. In this component, medium.p is interpreted as the pressure at the liquid surface.
This Volume is the parent class for Accumulator and Receiver models that separate the two phases and are able to output gas, liquid or two-phase medium, depending on its liquid level and the height of the outlet. Numerical stiffness is handled as in VolumeFlex.
Since there is no formula to compute density_derp_h for this volume, an upper bound has to be set in the parameter density_derp_h_set. Alternativeley the derivative can be taken from the media model for all the media that implement the corresponding formula by setting density_derp_h_from_media=true (default:false).
Beware: This is a new addition to the library. It may be subject to design reconsiderations in future versions
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | useHeatport | false | If true heatport is added |
| SI.Area | A | 1 | Contact area of volume with medium |
| SI.CoefficientOfHeatTransfer | U | 200 | Heat transfer coefficient to medium |
| Medium.AbsolutePressure | p_ref | 1e5 | Reference pressure of tank when volume is measured |
| SI.BulkModulus | K | 5e7 | Bulk modulus of tank (used also for stiffness modulation) |
| Initialization | |||
| Boolean | initialize_pressure | true | If true: initialize Pressure |
| Medium.AbsolutePressure | p_start | Medium.p_default | Initial Pressure |
| Boolean | initialize_energy | false | Initialize specific inner energy with temperature or specific enthalpy condition |
| Medium.Temperature | T_start | Medium.T_default | Initial Temperature |
| Boolean | use_hstart | false | True: specific enthalpy condition instead of Temperature |
| Medium.SpecificEnthalpy | h_start | Medium.h_default | Initial specific enthalpy |
| Boolean | initialize_Xi | false | If true: initialize mass fractions |
| Medium.MassFraction[Medium.nXi] | Xi_0 | Medium.X_default[1:Medium.nXi] | Initial mass fraction |
| Boolean | initialize_LiquidMass | true | If true: initialize with mass of the liquid medium component. Initialize_Xi must be false. |
| SI.Mass | M_liq_start | 0 | Initial mass of the liquid |
| Advanced | |||
| Utilities.Units.Inertance | L | dropOfCommons.L | Inertance at inlet and outlet |
| Medium.MassFlowRate | m_flow_assert | -dropOfCommons.m_flow_reg | Assertion threshold for negative massflows |
| Boolean | usePreferredMediumStates | false | Use medium states instead of the ones differentiated in this component |
| Medium.MassFlowRate | m_flow_reg | dropOfCommons.m_flow_reg | Regularization threshold of mass flow rate |
| SI.Length | outletTransition | 0.01 | Width of band for smooth transition between gas and liquid at outlet |
| Boolean | chaoticLife | false | Allows small gas bubbles to go from inlet through liquid even if staticHead is positive, experimental. Large increase in simulation time. |
| SI.Volume | gasBubbleVolume | 0.0001 | Tuning parameter for size of gas bubbles |
| Advanced › Damping | |||
| Real | k_volume_damping | dropOfCommons.k_volume_damping | Damping factor multiplicator |
| General › Geometry | |||
| SI.Length[3] | tankCenter | {0, 0, 0} | Position of the tank center |
| Integer | N_inlets | 2 | Number of inlets |
| Integer | N_outlets | 2 | Number of outlets |
| Integer | N_rears | 2 | Number of rears |
| Integer | N_fores | 2 | Number of fores |
| SI.Length[N_inlets,3] | inletPositions | {{0, 0, 0} for i in 1:N_inlets} | Positions of all inlets |
| SI.Length[N_outlets,3] | outletPositions | {{0, 0, 0} for i in 1:N_outlets} | Positions of all outlets |
| SI.Length[N_rears,3] | rearPositions | {{0, 0, 0} for i in 1:N_rears} | Positions of all rears |
| SI.Length[N_fores,3] | forePositions | {{0, 0, 0} for i in 1:N_fores} | Positions of all fores |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| ThermofluidStream.Interfaces.Inlet[N_inlets] | inlet | ||
| ThermofluidStream.Interfaces.Outlet[N_outlets] | outlet | ||
| Undirected.Interfaces.Rear[N_rears] | rear | ||
| Undirected.Interfaces.Fore[N_fores] | fore | ||
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | heatPort | ||
| Medium.BaseProperties | medium | ||
| SI.Volume | V | ||
| SI.Volume | V_liquid | ||
| SI.Volume | V_ref | Volume of the tank at p_ref | |
| SI.Mass | M | V*medium.d | |
| SI.Mass[Medium.nXi] | MXi | M*medium.Xi | |
| SI.Energy | U_med | M*medium.u | |
| SI.HeatFlowRate | Q_flow | ||
| SI.Power | W_v | ||
| SI.Length[3] | centreOfMass | ||
| SI.Length[N_inlets] | staticHeadInlets | distance perpendicular to liquid surface | |
| SI.Length[N_outlets] | staticHeadOutlets | distance perpendicular to liquid surface | |
| SI.Length[N_rears] | staticHeadRears | distance perpendicular to liquid surface | |
| SI.Length[N_fores] | staticHeadFores | distance perpendicular to liquid surface | |
| SI.Pressure[N_inlets] | staticHeadInlets_Pa_relative | relative pressure to liquid surface | |
| SI.Pressure[N_outlets] | staticHeadOutlets_Pa_relative | relative pressure to liquid surface | |
| SI.Pressure[N_rears] | staticHeadRears_Pa_relative | relative pressure to liquid surface | |
| SI.Pressure[N_fores] | staticHeadFores_Pa_relative | relative pressure to liquid surface | |
| Real[3] | normAcc | Modelica.Math.Vectors.normalize(acceleration.a) |
Contents
| Name | Description |
|---|---|
| Medium | Medium model |
Revisions
Author: Ingela Lind, M Sc, Ph D, Technical Fellow,
Simulation and Thermal Analysis,
Vehicle Systems,
SAAB Aerosystems, 2024