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

TypeNameDefaultDescription
StringinstanceName (from DropOfCommonsPlus)getInstanceName()Instance name
BooleanuseHeatport (from PartialTank)falseIf true heatport is added
SI.AreaA (from PartialTank)1Contact area of volume with medium
SI.CoefficientOfHeatTransferU (from PartialTank)200Heat transfer coefficient to medium
Medium.AbsolutePressurep_ref (from PartialTank)1e5Reference pressure of tank when volume is measured
SI.BulkModulusK (from PartialTank)5e7Bulk modulus of tank (used also for stiffness modulation)
Layout
BooleandisplayInstanceName (from DropOfCommonsPlus)dropOfCommons.displayInstanceNames= true, if instance name is displayed
BooleandisplayParameters (from DropOfCommonsPlus)dropOfCommons.displayParameters= true, if displaying parameters is enabled
Initialization
Booleaninitialize_pressure (from PartialTank)trueIf true: initialize Pressure
Medium.AbsolutePressurep_start (from PartialTank)Medium.p_defaultInitial Pressure
Booleaninitialize_energy (from PartialTank)falseInitialize specific inner energy with temperature or specific enthalpy condition
Medium.TemperatureT_start (from PartialTank)Medium.T_defaultInitial Temperature
Booleanuse_hstart (from PartialTank)falseTrue: specific enthalpy condition instead of Temperature
Medium.SpecificEnthalpyh_start (from PartialTank)Medium.h_defaultInitial specific enthalpy
Booleaninitialize_Xi (from PartialTank)falseIf true: initialize mass fractions
Medium.MassFraction[Medium.nXi]Xi_0 (from PartialTank)Medium.X_default[1:Medium.nXi]Initial mass fraction
Booleaninitialize_LiquidMass (from PartialTank)trueIf true: initialize with mass of the liquid medium component. Initialize_Xi must be false.
SI.MassM_liq_start (from PartialTank)0Initial mass of the liquid
Advanced
Utilities.Units.InertanceL (from PartialTank)dropOfCommons.LInertance at inlet and outlet
SI.MassFlowRatem_flow_assert (from PartialTank)-dropOfCommons.m_flow_regAssertion threshold for negative massflows
BooleanusePreferredMediumStates (from PartialTank)falseUse medium states instead of the ones differentiated in this component
SI.LengthoutletTransition (from PartialTank)0.01Width of band for smooth transition between gas and liquid at outlet
Advanced › Damping
Realk_volume_damping (from PartialTank)dropOfCommons.k_volume_dampingDamping factor multiplicator
General › Geometry
SI.Length[3]tankCenter (from PartialTank){0, 0, 0}Position of the tank center
IntegerN_inlets (from PartialTank)2Number of inlets
IntegerM_outlets (from PartialTank)2Number 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.LengthxLengthLength in x-direction
SI.LengthyLengthLength in y-direction
SI.LengthzLengthLength in z-direction

Connectors

TypeNameDefaultDescription
Interfaces.Inlet[N_inlets]inlet (from PartialTank)
Interfaces.Outlet[M_outlets]outlet (from PartialTank)
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPort (from PartialTank)

Components

TypeNameDefaultDescription
Medium.BasePropertiesmedium (from PartialTank)
SI.VolumeV (from PartialTank)
SI.VolumeV_liquid (from PartialTank)
SI.VolumeV_ref (from PartialTank)Volume of the tank at p_ref
SI.MassM (from PartialTank)V*medium.d
SI.Mass[Medium.nXi]MXi (from PartialTank)M*medium.Xi
SI.EnergyU_med (from PartialTank)M*medium.u
SI.HeatFlowRateQ_flow (from PartialTank)
SI.PowerW_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.LengthD

Revisions

Author: Ingela Lind, M Sc, Ph D, Technical Fellow, Simulation and Thermal Analysis, Vehicle Systems, SAAB Aerosystems, 2024