modelTankCuboid
This is a cuboid tank in an acceleration field for the special case of the liquid surface normal to xz-plane.
Extends from Internal.PartialTank (Partial Tank model for media that are partial gas and incompressible liquid).
Information
In order to ensure that the surface is level is perpendicular to the xz-plane, the acceleration in y-direction is neglected.
To specify the acceleration vector, please use the AccelerationBoundary component.
The tank works only with media that have gas and incompressible parts contained in them.
Beware: This is a new addition to the library. It may be subject to design reconsiderations in future versions
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| String | instanceName (from DropOfCommonsPlus) | getInstanceName() | Instance name |
| Boolean | useHeatport (from PartialTank) | false | If true heatport is added |
| SI.Area | A (from PartialTank) | 1 | Contact area of volume with medium |
| SI.CoefficientOfHeatTransfer | U (from PartialTank) | 200 | Heat transfer coefficient to medium |
| Medium.AbsolutePressure | p_ref (from PartialTank) | 1e5 | Reference pressure of tank when volume is measured |
| SI.BulkModulus | K (from PartialTank) | 5e7 | Bulk modulus of tank (used also for stiffness modulation) |
| Layout | |||
| Boolean | displayInstanceName (from DropOfCommonsPlus) | dropOfCommons.displayInstanceNames | = true, if instance name is displayed |
| Boolean | displayParameters (from DropOfCommonsPlus) | dropOfCommons.displayParameters | = true, if displaying parameters is enabled |
| Initialization | |||
| Boolean | initialize_pressure (from PartialTank) | true | If true: initialize Pressure |
| Medium.AbsolutePressure | p_start (from PartialTank) | Medium.p_default | Initial Pressure |
| Boolean | initialize_energy (from PartialTank) | false | Initialize specific inner energy with temperature or specific enthalpy condition |
| Medium.Temperature | T_start (from PartialTank) | Medium.T_default | Initial Temperature |
| Boolean | use_hstart (from PartialTank) | false | True: specific enthalpy condition instead of Temperature |
| Medium.SpecificEnthalpy | h_start (from PartialTank) | Medium.h_default | Initial specific enthalpy |
| Boolean | initialize_Xi (from PartialTank) | false | If true: initialize mass fractions |
| Medium.MassFraction[Medium.nXi] | Xi_0 (from PartialTank) | Medium.X_default[1:Medium.nXi] | Initial mass fraction |
| Boolean | initialize_LiquidMass (from PartialTank) | true | If true: initialize with mass of the liquid medium component. Initialize_Xi must be false. |
| SI.Mass | M_liq_start (from PartialTank) | 0 | Initial mass of the liquid |
| Advanced | |||
| Utilities.Units.Inertance | L (from PartialTank) | dropOfCommons.L | Inertance at inlet and outlet |
| SI.MassFlowRate | m_flow_assert (from PartialTank) | -dropOfCommons.m_flow_reg | Assertion threshold for negative massflows |
| Boolean | usePreferredMediumStates (from PartialTank) | false | Use medium states instead of the ones differentiated in this component |
| SI.Length | outletTransition (from PartialTank) | 0.01 | Width of band for smooth transition between gas and liquid at outlet |
| Advanced › Damping | |||
| Real | k_volume_damping (from PartialTank) | dropOfCommons.k_volume_damping | Damping factor multiplicator |
| General › Geometry | |||
| SI.Length[3] | tankCenter (from PartialTank) | {0, 0, 0} | Position of the tank center |
| Integer | N_inlets (from PartialTank) | 2 | Number of inlets |
| Integer | M_outlets (from PartialTank) | 2 | Number of outlets |
| SI.Length[N_inlets,3] | inletPositions (from PartialTank) | {{0, 0, 0}, {0, 0, 0}} | Positions of all inlets |
| SI.Length[M_outlets,3] | outletPositions (from PartialTank) | {{0, 0, 0}, {0, 0, 0}} | Positions of all outlets |
| SI.Length | xLength | Length in x-direction | |
| SI.Length | yLength | Length in y-direction | |
| SI.Length | zLength | Length in z-direction | |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Inlet[N_inlets] | inlet (from PartialTank) | ||
| Interfaces.Outlet[M_outlets] | outlet (from PartialTank) | ||
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | heatPort (from PartialTank) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.BaseProperties | medium (from PartialTank) | ||
| SI.Volume | V (from PartialTank) | ||
| SI.Volume | V_liquid (from PartialTank) | ||
| SI.Volume | V_ref (from PartialTank) | Volume of the tank at p_ref | |
| SI.Mass | M (from PartialTank) | V*medium.d | |
| SI.Mass[Medium.nXi] | MXi (from PartialTank) | M*medium.Xi | |
| SI.Energy | U_med (from PartialTank) | M*medium.u | |
| SI.HeatFlowRate | Q_flow (from PartialTank) | ||
| SI.Power | W_v (from PartialTank) | ||
| SI.Length[3] | centerOfMass (from PartialTank) | ||
| SI.Length[N_inlets] | staticHeadInlets (from PartialTank) | distance perpendicular to liquid surface, 0 if above surface | |
| SI.Length[M_outlets] | staticHeadOutlets (from PartialTank) | distance perpendicular to liquid surface, 0 if above surface | |
| SI.Pressure[N_inlets] | staticHeadInlets_Pa_relative (from PartialTank) | relative pressure to liquid surface, 0 if above surface | |
| SI.Pressure[M_outlets] | staticHeadOutlets_Pa_relative (from PartialTank) | relative pressure to liquid surface, 0 if above surface | |
| Real[3] | normAcc (from PartialTank) | Modelica.Math.Vectors.normalize(acceleration.a) | |
| SI.Length | D |
Revisions
Author: Ingela Lind, M Sc, Ph D, Technical Fellow,
Simulation and Thermal Analysis,
Vehicle Systems,
SAAB Aerosystems, 2024