modelTankCuboid

This is a cuboid tank in an acceleration field for the special case of the liquid surface normal to xz-plane.

Extends from ThermofluidStream.Undirected.Boundaries.Internal.PartialTankUndirected (Partial Tank model for media that are partial gas and incompressible liquid. Supports undirected flows).

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
BooleanuseHeatport (from PartialTankUndirected)falseIf true heatport is added
SI.AreaA (from PartialTankUndirected)1Contact area of volume with medium
SI.CoefficientOfHeatTransferU (from PartialTankUndirected)200Heat transfer coefficient to medium
Medium.AbsolutePressurep_ref (from PartialTankUndirected)1e5Reference pressure of tank when volume is measured
SI.BulkModulusK (from PartialTankUndirected)5e7Bulk modulus of tank (used also for stiffness modulation)
Initialization
Booleaninitialize_pressure (from PartialTankUndirected)trueIf true: initialize Pressure
Medium.AbsolutePressurep_start (from PartialTankUndirected)Medium.p_defaultInitial Pressure
Booleaninitialize_energy (from PartialTankUndirected)falseInitialize specific inner energy with temperature or specific enthalpy condition
Medium.TemperatureT_start (from PartialTankUndirected)Medium.T_defaultInitial Temperature
Booleanuse_hstart (from PartialTankUndirected)falseTrue: specific enthalpy condition instead of Temperature
Medium.SpecificEnthalpyh_start (from PartialTankUndirected)Medium.h_defaultInitial specific enthalpy
Booleaninitialize_Xi (from PartialTankUndirected)falseIf true: initialize mass fractions
Medium.MassFraction[Medium.nXi]Xi_0 (from PartialTankUndirected)Medium.X_default[1:Medium.nXi]Initial mass fraction
Booleaninitialize_LiquidMass (from PartialTankUndirected)trueIf true: initialize with mass of the liquid medium component. Initialize_Xi must be false.
SI.MassM_liq_start (from PartialTankUndirected)0Initial mass of the liquid
Advanced
Utilities.Units.InertanceL (from PartialTankUndirected)dropOfCommons.LInertance at inlet and outlet
Medium.MassFlowRatem_flow_assert (from PartialTankUndirected)-dropOfCommons.m_flow_regAssertion threshold for negative massflows
BooleanusePreferredMediumStates (from PartialTankUndirected)falseUse medium states instead of the ones differentiated in this component
Medium.MassFlowRatem_flow_reg (from PartialTankUndirected)dropOfCommons.m_flow_regRegularization threshold of mass flow rate
SI.LengthoutletTransition (from PartialTankUndirected)0.01Width of band for smooth transition between gas and liquid at outlet
BooleanchaoticLife (from PartialTankUndirected)falseAllows small gas bubbles to go from inlet through liquid even if staticHead is positive, experimental. Large increase in simulation time.
SI.VolumegasBubbleVolume (from PartialTankUndirected)0.0001Tuning parameter for size of gas bubbles
Advanced › Damping
Realk_volume_damping (from PartialTankUndirected)dropOfCommons.k_volume_dampingDamping factor multiplicator
General › Geometry
SI.Length[3]tankCenter (from PartialTankUndirected){0, 0, 0}Position of the tank center
IntegerN_inlets (from PartialTankUndirected)2Number of inlets
IntegerN_outlets (from PartialTankUndirected)2Number of outlets
IntegerN_rears (from PartialTankUndirected)2Number of rears
IntegerN_fores (from PartialTankUndirected)2Number of fores
SI.Length[N_inlets,3]inletPositions (from PartialTankUndirected){{0, 0, 0} for i in 1:N_inlets}Positions of all inlets
SI.Length[N_outlets,3]outletPositions (from PartialTankUndirected){{0, 0, 0} for i in 1:N_outlets}Positions of all outlets
SI.Length[N_rears,3]rearPositions (from PartialTankUndirected){{0, 0, 0} for i in 1:N_rears}Positions of all rears
SI.Length[N_fores,3]forePositions (from PartialTankUndirected){{0, 0, 0} for i in 1:N_fores}Positions of all fores
SI.LengthxLengthLength in x-direction
SI.LengthyLengthLength in y-direction
SI.LengthzLengthLength in z-direction

Connectors

TypeNameDefaultDescription
ThermofluidStream.Interfaces.Inlet[N_inlets]inlet (from PartialTankUndirected)
ThermofluidStream.Interfaces.Outlet[N_outlets]outlet (from PartialTankUndirected)
Undirected.Interfaces.Rear[N_rears]rear (from PartialTankUndirected)
Undirected.Interfaces.Fore[N_fores]fore (from PartialTankUndirected)
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPort (from PartialTankUndirected)

Components

TypeNameDefaultDescription
Medium.BasePropertiesmedium (from PartialTankUndirected)
SI.VolumeV (from PartialTankUndirected)
SI.VolumeV_liquid (from PartialTankUndirected)
SI.VolumeV_ref (from PartialTankUndirected)Volume of the tank at p_ref
SI.MassM (from PartialTankUndirected)V*medium.d
SI.Mass[Medium.nXi]MXi (from PartialTankUndirected)M*medium.Xi
SI.EnergyU_med (from PartialTankUndirected)M*medium.u
SI.HeatFlowRateQ_flow (from PartialTankUndirected)
SI.PowerW_v (from PartialTankUndirected)
SI.Length[3]centreOfMass (from PartialTankUndirected)
SI.Length[N_inlets]staticHeadInlets (from PartialTankUndirected)distance perpendicular to liquid surface
SI.Length[N_outlets]staticHeadOutlets (from PartialTankUndirected)distance perpendicular to liquid surface
SI.Length[N_rears]staticHeadRears (from PartialTankUndirected)distance perpendicular to liquid surface
SI.Length[N_fores]staticHeadFores (from PartialTankUndirected)distance perpendicular to liquid surface
SI.Pressure[N_inlets]staticHeadInlets_Pa_relative (from PartialTankUndirected)relative pressure to liquid surface
SI.Pressure[N_outlets]staticHeadOutlets_Pa_relative (from PartialTankUndirected)relative pressure to liquid surface
SI.Pressure[N_rears]staticHeadRears_Pa_relative (from PartialTankUndirected)relative pressure to liquid surface
SI.Pressure[N_fores]staticHeadFores_Pa_relative (from PartialTankUndirected)relative pressure to liquid surface
Real[3]normAcc (from PartialTankUndirected)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