modelPartialTank

Partial Tank model for media that are partial gas and incompressible liquid

Extends from ThermofluidStream.Utilities.DropOfCommonsPlus.

Information

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 the same way as in the VolumeFlex.

To complete the partialTank, equations for total tank volume V, centreOfMass, staticHeadInlets and staticHeadOutlets 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.

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)

The fundamental idea of the model is based on work by Hans Ellstroem (https://www.researchgate.net/profile/Soeren-Steinkellner/publication/312590863_MODELLING_AND_SIMULATION_OF_FUEL_SYSTEMS_IN_MILITARY_AIRCRAFTS/links/5884927e4585150dde47b6aa/MODELLING-AND-SIMULATION-OF-FUEL-SYSTEMS-IN-MILITARY-AIRCRAFTS.pdf).

Beware: This is a new addition to the library. It may be subject to design reconsiderations in future versions.

considerInertance

The parameter considerInertance is currently not included in the model; see Idealized.UsersGuide.InertanceNeglect.

enableFreeInlet

The parameter enableFreeInlet is currently not included in the model; see PartialVolume.

Parameters

TypeNameDefaultDescription
BooleanuseHeatportfalseIf true heatport is added
SI.AreaA1Contact area of volume with medium
SI.CoefficientOfHeatTransferU200Heat transfer coefficient to medium
Medium.AbsolutePressurep_ref1e5Reference pressure of tank when volume is measured
SI.BulkModulusK5e7Bulk modulus of tank (used also for stiffness modulation)
Initialization
Booleaninitialize_pressuretrueIf true: initialize Pressure
Medium.AbsolutePressurep_startMedium.p_defaultInitial Pressure
Booleaninitialize_energyfalseInitialize specific inner energy with temperature or specific enthalpy condition
Medium.TemperatureT_startMedium.T_defaultInitial Temperature
Booleanuse_hstartfalseTrue: specific enthalpy condition instead of Temperature
Medium.SpecificEnthalpyh_startMedium.h_defaultInitial specific enthalpy
Booleaninitialize_XifalseIf true: initialize mass fractions
Medium.MassFraction[Medium.nXi]Xi_0Medium.X_default[1:Medium.nXi]Initial mass fraction
Booleaninitialize_LiquidMasstrueIf true: initialize with mass of the liquid medium component. Initialize_Xi must be false.
SI.MassM_liq_start0Initial mass of the liquid
Advanced
Utilities.Units.InertanceLdropOfCommons.LInertance at inlet and outlet
SI.MassFlowRatem_flow_assert-dropOfCommons.m_flow_regAssertion threshold for negative massflows
BooleanusePreferredMediumStatesfalseUse medium states instead of the ones differentiated in this component
SI.LengthoutletTransition0.01Width of band for smooth transition between gas and liquid at outlet
Advanced › Damping
Realk_volume_dampingdropOfCommons.k_volume_dampingDamping factor multiplicator
General › Geometry
SI.Length[3]tankCenter{0, 0, 0}Position of the tank center
IntegerN_inlets2Number of inlets
IntegerM_outlets2Number of outlets
SI.Length[N_inlets,3]inletPositions{{0, 0, 0}, {0, 0, 0}}Positions of all inlets
SI.Length[M_outlets,3]outletPositions{{0, 0, 0}, {0, 0, 0}}Positions of all outlets

Components

TypeNameDefaultDescription
Interfaces.Inlet[N_inlets]inlet
Interfaces.Outlet[M_outlets]outlet
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPort
Medium.BasePropertiesmedium
SI.VolumeV
SI.VolumeV_liquid
SI.VolumeV_refVolume of the tank at p_ref
SI.MassMV*medium.d
SI.Mass[Medium.nXi]MXiM*medium.Xi
SI.EnergyU_medM*medium.u
SI.HeatFlowRateQ_flow
SI.PowerW_v
SI.Length[3]centerOfMass
SI.Length[N_inlets]staticHeadInletsdistance perpendicular to liquid surface, 0 if above surface
SI.Length[M_outlets]staticHeadOutletsdistance perpendicular to liquid surface, 0 if above surface
SI.Pressure[N_inlets]staticHeadInlets_Pa_relativerelative pressure to liquid surface, 0 if above surface
SI.Pressure[M_outlets]staticHeadOutlets_Pa_relativerelative pressure to liquid surface, 0 if above surface
Real[3]normAccModelica.Math.Vectors.normalize(acceleration.a)

Contents

NameDescription
MediumMedium model

Revisions

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