modelElasticVessel

Elastic compartment as chemical solution envelop

Extends from Physiolibrary.Icons.ElasticBalloon, Physiolibrary.Fluid.Interfaces.Accumulation.

Information

mass = ∑ massOfSubstances

constant compliance


sigmoid compliance

Parameters

TypeNameDefaultDescription
BooleanonElectricGround (from Accumulation)false=true, if electric potencial is zero
Types.HydraulicComplianceCompliance1e+3Compliance e.g. TidalVolume/TidalPressureGradient if useComplianceInput=false
Types.VolumeZeroPressureVolume1e-11Functional Residual Capacity. Maximal fluid volume, that does not generate pressure if useV0Input=false
Types.PressureExternalPressureif isExternalPressureAbsolute then system.p_ambient else 0External pressure if useExternalPressureInput=false.
Initialization of medium composition
Modelica.Units.SI.MassFraction[:]massFractions_start (from CompositionSetup)Medium.reference_X* Masses of all base molecules. If size is nS-1 then last value is 1-sum(others). If size is nS then all values are scaled to sum==1.
Real[Medium.nC]extraConcentration_start (from CompositionSetup)Medium.C_defaultExtra substance amounts per kilogram of solution
Initialization
Modelica.Units.SI.Temperaturetemperature_start (from CompositionSetup)system.T_ambientInitial temperature
Modelica.Units.SI.Pressurepressure_start (from CompositionSetup)system.p_ambientInitial pressure
Booleanuse_mass_start (from Accumulation)falseUse mass_start, otherwise volume_start
Physiolibrary.Types.Volumevolume_start (from Accumulation)0.001Total volume of solution start value
Physiolibrary.Types.Massmass_start (from Accumulation)1Total mass of solution start value
Ports
IntegernPorts (from Accumulation)0Number of hydraulic ports
Conditional inputs
BooleanuseSubstances (from Accumulation)false=true, if substance ports are used
BooleanuseThermalPort (from Accumulation)falseIs thermal port pressent?
BooleanuseV0Inputfalse=true, if zero-pressure-fluid_volume input is used
BooleanuseComplianceInputfalse=true, if compliance input is used
BooleanuseExternalPressureInputfalse=true, if external pressure input is used
BooleanisExternalPressureAbsolutefalseExternal pressure as absolute pressure? Relative to ambient otherwise.
BooleanuseInternalSpaceInputfalse=true, if internal space input is used
Advanced
StringstateNamegetInstanceName()State name in input/output files
Advanced › Pressure-Volume relationship
Types.VolumeResidualVolume1e-9Residual volume. Or maximal fluid volume, which generate negative collapsing pressure in linear model
BooleanuseSigmoidCompliancefalseSigmoid compliance e.g. lungs
Types.VolumeVitalCapacity0.00493Relative volume capacity if useSigmoidCompliance
Types.VolumeBaseTidalVolume0.000543Base value of tidal volume
Types.VolumeInternalSpace0Internal space if there is no pressure gradient

Connectors

TypeNameDefaultDescription
Interfaces.FluidPorts_a[nPorts]q_in (from Accumulation)
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPort (from Accumulation)
Types.RealIO.VolumeInputzeroPressureVolumezpv
Types.RealIO.HydraulicComplianceInputcompliancec
Types.RealIO.PressureInputexternalPressureep
Types.RealIO.VolumeOutputfluidVolumevolume
Types.RealIO.VolumeInputinternalSpaceisadditional internal volume (e.g. another inserted compartment inside)

Components

TypeNameDefaultDescription
Modelica.Fluid.Systemsystem (from CompositionSetup)System wide properties
Medium.SubstancesPortsubstances (from Accumulation)
Medium.ChemicalSolutionchemicalSolution (from Accumulation)
Physiolibrary.Types.HeatFlowRateheatFromEnvironment (from Accumulation)
Physiolibrary.Types.Enthalpyenthalpy (from Accumulation)
Physiolibrary.Types.Massmass (from Accumulation)
Physiolibrary.Types.MassFraction[Medium.nXi]massFractions (from Accumulation)
Physiolibrary.Types.MassFraction[nPorts,Medium.nXi]xx_mass (from Accumulation)Substance mass fraction per fluid port
Real[nPorts,Medium.nC]xC_mass (from Accumulation)Extra substance in 1 kg of solution per fluid port
Real[Medium.nC]extraSubstanceAmounts (from Accumulation)Current amount of extra substances
Real[Medium.nC]extraSubstanceConcentrations (from Accumulation)Current anount per kg of extra substances
Physiolibrary.Types.Volumevolume (from Accumulation)
Physiolibrary.Types.Densitydensity (from Accumulation)
Types.VolumeexcessVolumeAdditional cavity volume (=fluid volume + internal space volume), that generate pressure
Types.Pressurerelative_pressure

Revisions

2020 by Marek Matejak, http://www.physiolib.com