Physiolibrary.Fluid.Components

Information

Main components for physiological fluid modeling.

Extends from Modelica.Icons.Package (Icon for standard packages).

Package Content

Name Description
Physiolibrary.Fluid.Components.Conductor Conductor Hydraulic resistor, where conductance=1/resistance
Physiolibrary.Fluid.Components.Resistor Resistor Hydraulic resistor
Physiolibrary.Fluid.Components.ElasticVessel ElasticVessel Elastic compartment as chemical solution envelop
Physiolibrary.Fluid.Components.ElasticVesselElastance ElasticVesselElastance Elastic compartment as chemical solution envelop
Physiolibrary.Fluid.Components.HydrostaticColumn HydrostaticColumn Hydrostatic column pressure between two connectors (with specific muscle pump effect)
Physiolibrary.Fluid.Components.Inertia Inertia Inertia of the volumetric flow
Physiolibrary.Fluid.Components.IdealValve IdealValve Ideal valve
Physiolibrary.Fluid.Components.IdealValveResistance IdealValveResistance Ideal valve
Physiolibrary.Fluid.Components.MassPump MassPump Prescribed mass flow
Physiolibrary.Fluid.Components.VolumePump VolumePump Prescribed mass flow
Physiolibrary.Fluid.Components.Reabsorption Reabsorption Divide inflow to outflow and reabsorption
Physiolibrary.Fluid.Components.BodyFluidMembrane BodyFluidMembrane Membrane for BodyFluid medium

Physiolibrary.Fluid.Components.Conductor Physiolibrary.Fluid.Components.Conductor

Hydraulic resistor, where conductance=1/resistance

Information

This hydraulic conductance (resistance) element contains two connector sides. No hydraulic medium mass is changing in this element during simulation. That means that sum of flow in both connector sides is zero. The flow through element is determined by Ohm's law. It is used conductance (=1/resistance) because it could be numerical zero better then infinity in resistance.

Extends from Physiolibrary.Fluid.Interfaces.OnePort (Hydraulical OnePort), Physiolibrary.Icons.HydraulicResistor.

Parameters

NameDescription
replaceable package MediumMedium model
ConductanceHydraulic conductance if useConductanceInput=false [m3/(Pa.s)]
Conditional inputs
useConductanceInput=true, if external conductance value is used
Advanced
Performance
EnthalpyNotUsed 

Connectors

NameDescription
q_inInflow
q_outOutflow
cond[m3/(Pa.s)]

Physiolibrary.Fluid.Components.Resistor Physiolibrary.Fluid.Components.Resistor

Hydraulic resistor

Information

This hydraulic resistance element contains two connector sides. No hydraulic medium mass is changing in this element during simulation. That means that sum of flow in both connector sides is zero. The flow through element is determined by Ohm's law.

Extends from Physiolibrary.Fluid.Components.Conductor (Hydraulic resistor, where conductance=1/resistance).

Parameters

NameDescription
replaceable package MediumMedium model
ConductanceHydraulic conductance if useConductanceInput=false [m3/(Pa.s)]
ResistanceHydraulic conductance if useConductanceInput=false [(Pa.s)/m3]
Conditional inputs
useConductanceInput=true, if external conductance value is used
useResistanceInput=true, if external resistance value is used
Advanced
Performance
EnthalpyNotUsed 

Connectors

NameDescription
q_inInflow
q_outOutflow
cond[m3/(Pa.s)]
resistance[(Pa.s)/m3]

Physiolibrary.Fluid.Components.ElasticVessel Physiolibrary.Fluid.Components.ElasticVessel

Elastic compartment as chemical solution envelop

Information

mass = ∑ massOfSubstances

constant compliance


sigmoid compliance

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

Parameters

NameDescription
replaceable package MediumMedium model
onElectricGround=true, if electric potencial is zero
ComplianceCompliance e.g. TidalVolume/TidalPressureGradient if useComplianceInput=false [m3/Pa]
ZeroPressureVolumeFunctional Residual Capacity. Maximal fluid volume, that does not generate pressure if useV0Input=false [m3]
ExternalPressureExternal pressure if useExternalPressureInput=false. [Pa]
Initialization of medium composition
massFractions_start[:]* 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. [1]
extraConcentration_start[Medium.nC]Extra substance amounts per kilogram of solution
Initialization
temperature_startInitial temperature [K]
pressure_startInitial pressure [Pa]
use_mass_startUse mass_start, otherwise volume_start
volume_startTotal volume of solution start value [m3]
mass_startTotal mass of solution start value [kg]
Conditional inputs
useSubstances=true, if substance ports are used
useThermalPortIs thermal port pressent?
useV0Input=true, if zero-pressure-fluid_volume input is used
useComplianceInput=true, if compliance input is used
useExternalPressureInput=true, if external pressure input is used
isExternalPressureAbsoluteExternal pressure as absolute pressure? Relative to ambient otherwise.
useInternalSpaceInput=true, if internal space input is used
Advanced
stateNameState name in input/output files
Pressure-Volume relationship
ResidualVolumeResidual volume. Or maximal fluid volume, which generate negative collapsing pressure in linear model [m3]
useSigmoidComplianceSigmoid compliance e.g. lungs
VitalCapacityRelative volume capacity if useSigmoidCompliance [m3]
BaseTidalVolumeBase value of tidal volume [m3]
InternalSpaceInternal space if there is no pressure gradient [m3]

Connectors

NameDescription
q_in[nPorts] 
substances 
heatPort 
zeroPressureVolume[m3]
compliance[m3/Pa]
externalPressure[Pa]
fluidVolume[m3]
internalSpaceadditional internal volume (e.g. another inserted compartment inside) [m3]

Physiolibrary.Fluid.Components.ElasticVesselElastance Physiolibrary.Fluid.Components.ElasticVesselElastance

Elastic compartment as chemical solution envelop

Information

mass = ∑ massOfSubstances

constant compliance

sigmoid compliance

Extends from Physiolibrary.Fluid.Components.ElasticVessel (Elastic compartment as chemical solution envelop).

Parameters

NameDescription
replaceable package MediumMedium model
onElectricGround=true, if electric potencial is zero
ComplianceCompliance e.g. TidalVolume/TidalPressureGradient if useComplianceInput=false [m3/Pa]
ZeroPressureVolumeFunctional Residual Capacity. Maximal fluid volume, that does not generate pressure if useV0Input=false [m3]
ExternalPressureExternal pressure if useExternalPressureInput=false. [Pa]
ElastanceElastance if useComplianceInput=false [Pa/m3]
Initialization of medium composition
massFractions_start[:]* 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. [1]
extraConcentration_start[Medium.nC]Extra substance amounts per kilogram of solution
Initialization
temperature_startInitial temperature [K]
use_mass_startUse mass_start, otherwise volume_start
volume_startTotal volume of solution start value [m3]
mass_startTotal mass of solution start value [kg]
Conditional inputs
useSubstances=true, if substance ports are used
useThermalPortIs thermal port pressent?
useV0Input=true, if zero-pressure-fluid_volume input is used
useComplianceInput=true, if compliance input is used
useExternalPressureInput=true, if external pressure input is used
isExternalPressureAbsoluteExternal pressure as absolute pressure? Relative to ambient otherwise.
useInternalSpaceInput=true, if internal space input is used
useElastanceInput=true, if elastance input is used
Advanced
stateNameState name in input/output files
Pressure-Volume relationship
ResidualVolumeResidual volume. Or maximal fluid volume, which generate negative collapsing pressure in linear model [m3]
useSigmoidComplianceSigmoid compliance e.g. lungs
VitalCapacityRelative volume capacity if useSigmoidCompliance [m3]
BaseTidalVolumeBase value of tidal volume [m3]
InternalSpaceInternal space if there is no pressure gradient [m3]

Connectors

NameDescription
q_in[nPorts] 
substances 
heatPort 
zeroPressureVolume[m3]
compliance[m3/Pa]
externalPressure[Pa]
fluidVolume[m3]
internalSpaceadditional internal volume (e.g. another inserted compartment inside) [m3]
elastance[Pa/m3]

Physiolibrary.Fluid.Components.HydrostaticColumn Physiolibrary.Fluid.Components.HydrostaticColumn

Hydrostatic column pressure between two connectors (with specific muscle pump effect)

Information

The hydrostatic pressure is proportional to height of the column. 

Archimedes law

Extends from Physiolibrary.Icons.HydrostaticGradient, Interfaces.OnePort_UpDown (OnePort with different position of connectors).

Parameters

NameDescription
replaceable package MediumMedium model
HHeight of hydrostatic column if useHeightInput=false [m]
Conditional inputs
useHeightInput=true, if height input is used
usePumpEffect=true, if musce pump effect is used

Connectors

NameDescription
q_upTop site
q_downBottom site
replaceable package MediumMedium model
heightVertical distance between top and bottom connector [m]
pumpEffect[1]

Physiolibrary.Fluid.Components.Inertia Physiolibrary.Fluid.Components.Inertia

Inertia of the volumetric flow

Information

Inertance I of the simple tube could be calculated as I=ro*l/A, where ro is fuid density, l is tube length and A is tube cross-section area.

Extends from Physiolibrary.Fluid.Interfaces.OnePort (Hydraulical OnePort), Physiolibrary.Icons.Inertance.

Parameters

NameDescription
replaceable package MediumMedium model
IInertance [Pa.s2/kg]
Initialization
massFlow_startMass flow start value [kg/s]
Advanced
Performance
EnthalpyNotUsed 

Connectors

NameDescription
q_inInflow
q_outOutflow

Physiolibrary.Fluid.Components.IdealValve Physiolibrary.Fluid.Components.IdealValve

Ideal valve

Information

Ideal Valve allows a volumetric flow in one direction in case of pressure gradient is greater.

Extends from Icons.IdealValve, Physiolibrary.Fluid.Interfaces.OnePort (Hydraulical OnePort).

Parameters

NameDescription
replaceable package MediumMedium model
_GonForward state-on conductance (open valve conductance) [m3/(Pa.s)]
_GoffBackward state-off conductance (closed valve conductance) [m3/(Pa.s)]
PkneeForward threshold pressure [Pa]
Conditional inputs
useLimitationInputs=true, if Gon and Goff are from inputs
Advanced
Performance
EnthalpyNotUsed 

Connectors

NameDescription
q_inInflow
q_outOutflow
Gonopen valve conductance = infinity for ideal case [m3/(Pa.s)]
Goffclosed valve conductance = zero for ideal case [m3/(Pa.s)]

Physiolibrary.Fluid.Components.IdealValveResistance Physiolibrary.Fluid.Components.IdealValveResistance

Ideal valve

Information

Ideal Valve allows a volumetric flow in one direction in case of pressure gradient is greater.

Extends from Physiolibrary.Fluid.Components.IdealValve (Ideal valve).

Parameters

NameDescription
replaceable package MediumMedium model
_GonForward state-on conductance (open valve conductance) [m3/(Pa.s)]
_GoffBackward state-off conductance (closed valve conductance) [m3/(Pa.s)]
PkneeForward threshold pressure [Pa]
_RonForward state resistance [(Pa.s)/m3]
_RoffBackward state-off resistance (closed valve resistance) [(Pa.s)/m3]
Initialization
openSwitching state
passableVariableAuxiliary variable for actual position on the ideal diode characteristic [1]
Conditional inputs
useLimitationInputs=true, if Gon and Goff are from inputs
useResistanceInputs=true, if Ron and Roff are from inputs
Advanced
Performance
EnthalpyNotUsed 

Connectors

NameDescription
q_inInflow
q_outOutflow
Gonopen valve conductance = infinity for ideal case [m3/(Pa.s)]
Goffclosed valve conductance = zero for ideal case [m3/(Pa.s)]
Ronopen valve resistancece = zero for ideal case [(Pa.s)/m3]
Roffclosed valve resistance = infinity for ideal case [(Pa.s)/m3]

Physiolibrary.Fluid.Components.MassPump Physiolibrary.Fluid.Components.MassPump

Prescribed mass flow

Information

This element needs to be connected only to next hydraulic elements, which contain calculation of hydraulic pressure in connector. It is because equation contains only hydraulic volume flow variable, which is set to value of input signal variable.

Extends from Icons.Pump, Physiolibrary.Fluid.Interfaces.OnePort (Hydraulical OnePort), Physiolibrary.Fluid.Interfaces.ConditionalMassFlow (Input of solution mass flow vs. parametric solution mass flow).

Parameters

NameDescription
replaceable package MediumMedium model
SolutionFlowMass flow of solution if useSolutionFlowInput=false [kg/s]
Conditional inputs
useSolutionFlowInput=true, if solution flow input is used instead of parameter SolutionFlow
Advanced
Performance
EnthalpyNotUsed 

Connectors

NameDescription
q_inInflow
q_outOutflow
solutionFlow[kg/s]

Physiolibrary.Fluid.Components.VolumePump Physiolibrary.Fluid.Components.VolumePump

Prescribed mass flow

Information

This element needs to be connected only to next hydraulic elements, which contain calculation of hydraulic pressure in connector. It is because equation contains only hydraulic volume flow variable, which is set to value of input signal variable.

Extends from Icons.Pump, Physiolibrary.Fluid.Interfaces.OnePort (Hydraulical OnePort), Physiolibrary.Fluid.Interfaces.ConditionalVolumeFlow (Input of solution volume flow vs. parametric solution volume flow).

Parameters

NameDescription
replaceable package MediumMedium model
SolutionFlowMass flow of solution if useSolutionFlowInput=false [m3/s]
Conditional inputs
useSolutionFlowInput=true, if solution flow input is used instead of parameter SolutionFlow
Advanced
Performance
EnthalpyNotUsed 

Connectors

NameDescription
q_inInflow
q_outOutflow
solutionFlow[m3/s]

Physiolibrary.Fluid.Components.Reabsorption Physiolibrary.Fluid.Components.Reabsorption

Divide inflow to outflow and reabsorption

Information

Hydraulic Reabsorption

If useOutflowMin=false then the next schema is used.


If useOutflowMin=true then the extended schema is used:

Extends from Physiolibrary.Icons.Reabsorption.

Parameters

NameDescription
replaceable package MediumMedium model
OutflowMinMinimal outflow if useExternalOutflowMin=false [m3/s]
Conditional inputs
useExternalOutflowMin=true, if minimal outflow is garanted

Connectors

NameDescription
replaceable package MediumMedium model
Inflow 
Outflow 
Reabsorption 
FractReab[1]
outflowMin[m3/s]

Physiolibrary.Fluid.Components.BodyFluidMembrane Physiolibrary.Fluid.Components.BodyFluidMembrane

Membrane for BodyFluid medium

Information

Semipermeable membrane for substances of BodyFluid medium.

Extends from Physiolibrary.Icons.Membrane.

Parameters

NameDescription
replaceable package BloodPlasmaMedium model of blood plasma
replaceable package DialysateMedium model of dialysate
Permeabilities[BloodPlasma.nS]Membrane permeability coeficients for {Na,HCO3-,K,Glu,Urea,Cl,Ca,Mg,Alb,Glb,Others,H2O} [mol2.s-1.J-1]

Connectors

NameDescription
replaceable package BloodPlasmaMedium model of blood plasma
replaceable package DialysateMedium model of dialysate
bodyFluid_b 
bodyFluid_a 
Automatically generated Wed Oct 11 14:54:21 2023.