Physiolibrary.Chemical.Interfaces

Information

Extends from Modelica.Icons.InterfacesPackage (Icon for packages containing interfaces).

Package Content

Name Description
Physiolibrary.Chemical.Interfaces.ChemicalPort ChemicalPort Concentration and Solute flow
Physiolibrary.Chemical.Interfaces.ChemicalPort_a ChemicalPort_a Concentration and expected positive Solute inflow
Physiolibrary.Chemical.Interfaces.ChemicalPort_b ChemicalPort_b Concentration and expected negative Solute outflow
Physiolibrary.Chemical.Interfaces.OnePort OnePort Partial transfer of solute between two ports without its accumulation
Physiolibrary.Chemical.Interfaces.ConditionalHeatPort ConditionalHeatPort Partial model to include a conditional HeatPort in order to describe the power loss via a thermal network
Physiolibrary.Chemical.Interfaces.ConditionalVolume ConditionalVolume Chemical processes can be modeled with or without(normalized to 1 liter) variable solution volume
Physiolibrary.Chemical.Interfaces.ConditionalSoluteFlow ConditionalSoluteFlow Input of solute molar flow vs. parametric solute molar flow
Physiolibrary.Chemical.Interfaces.SubstanceDefinition SubstanceDefinition Invariant properties of substance (molar weight, enthalpy, entropy, ...)

Physiolibrary.Chemical.Interfaces.ChemicalPort

Concentration and Solute flow

Contents

TypeNameDescription
ConcentrationconcSolute concentration [mol/m3]
flow MolarFlowRateqSolute flow [mol/s]

Modelica definition

connector ChemicalPort "Concentration and Solute flow" Types.Concentration conc "Solute concentration"; flow Types.MolarFlowRate q "Solute flow"; end ChemicalPort;

Physiolibrary.Chemical.Interfaces.ChemicalPort_a Physiolibrary.Chemical.Interfaces.ChemicalPort_a

Concentration and expected positive Solute inflow

Physiolibrary.Chemical.Interfaces.ChemicalPort_a

Information

Connector with one flow signal of type Real.

Extends from ChemicalPort (Concentration and Solute flow).

Contents

TypeNameDescription
ConcentrationconcSolute concentration [mol/m3]
flow MolarFlowRateqSolute flow [mol/s]

Modelica definition

connector ChemicalPort_a "Concentration and expected positive Solute inflow" extends ChemicalPort; end ChemicalPort_a;

Physiolibrary.Chemical.Interfaces.ChemicalPort_b Physiolibrary.Chemical.Interfaces.ChemicalPort_b

Concentration and expected negative Solute outflow

Physiolibrary.Chemical.Interfaces.ChemicalPort_b

Information

Connector with one flow signal of type Real.

Extends from ChemicalPort (Concentration and Solute flow).

Contents

TypeNameDescription
ConcentrationconcSolute concentration [mol/m3]
flow MolarFlowRateqSolute flow [mol/s]

Modelica definition

connector ChemicalPort_b "Concentration and expected negative Solute outflow" extends ChemicalPort; end ChemicalPort_b;

Physiolibrary.Chemical.Interfaces.OnePort Physiolibrary.Chemical.Interfaces.OnePort

Partial transfer of solute between two ports without its accumulation

Physiolibrary.Chemical.Interfaces.OnePort

Connectors

TypeNameDescription
ChemicalPort_bq_out 
ChemicalPort_aq_in 

Modelica definition

partial model OnePort "Partial transfer of solute between two ports without its accumulation" ChemicalPort_b q_out; ChemicalPort_a q_in; equation q_in.q + q_out.q = 0; end OnePort;

Physiolibrary.Chemical.Interfaces.ConditionalHeatPort Physiolibrary.Chemical.Interfaces.ConditionalHeatPort

Partial model to include a conditional HeatPort in order to describe the power loss via a thermal network

Physiolibrary.Chemical.Interfaces.ConditionalHeatPort

Information

This partial model provides a conditional heating port for the connection to a thermal network.

If this model is used, the loss power has to be provided by an equation in the model which inherits from ConditionalHeatingPort model (lossPower = ...). As device temperature T_heatPort can be used to describe the influence of the device temperature on the model behaviour.

Parameters

TypeNameDefaultDescription
External inputs/outputs
BooleanuseHeatPortfalse=true, if HeatPort is enabled
Temperature dependence
TemperatureT310.15Fixed device temperature if useHeatPort = false [K]

Connectors

TypeNameDescription
HeatPort_aheatPort 

Modelica definition

partial model ConditionalHeatPort "Partial model to include a conditional HeatPort in order to describe the power loss via a thermal network" parameter Boolean useHeatPort = false "=true, if HeatPort is enabled"; parameter Types.Temperature T=310.15 "Fixed device temperature if useHeatPort = false"; Thermal.Interfaces.HeatPort_a heatPort(T(start=T)=T_heatPort, Q_flow=-lossHeat) if useHeatPort; Types.Temperature T_heatPort "Temperature of HeatPort"; Types.HeatFlowRate lossHeat "Loss heat leaving component via HeatPort"; equation if not useHeatPort then T_heatPort = T; end if; end ConditionalHeatPort;

Physiolibrary.Chemical.Interfaces.ConditionalVolume Physiolibrary.Chemical.Interfaces.ConditionalVolume

Chemical processes can be modeled with or without(normalized to 1 liter) variable solution volume

Physiolibrary.Chemical.Interfaces.ConditionalVolume

Parameters

TypeNameDefaultDescription
External inputs/outputs
BooleanuseNormalizedVolumetrueNormalized volume of solution is 1 liter

Connectors

TypeNameDescription
input VolumeInputsolutionVolumeVolume of solution [m3]

Modelica definition

partial model ConditionalVolume "Chemical processes can be modeled with or without(normalized to 1 liter) variable solution volume" constant Types.Volume NormalVolume=0.001 "1 liter"; parameter Boolean useNormalizedVolume = true "Normalized volume of solution is 1 liter"; Types.Volume volume "Solution volume"; //annotation(HideResult=useNormalizedVolume); Types.RealIO.VolumeInput solutionVolume=volume if not useNormalizedVolume "Volume of solution"; equation if useNormalizedVolume then volume = NormalVolume; end if; end ConditionalVolume;

Physiolibrary.Chemical.Interfaces.ConditionalSoluteFlow Physiolibrary.Chemical.Interfaces.ConditionalSoluteFlow

Input of solute molar flow vs. parametric solute molar flow

Physiolibrary.Chemical.Interfaces.ConditionalSoluteFlow

Parameters

TypeNameDefaultDescription
MolarFlowRateSoluteFlow0Volumetric flow of solute if useSoluteFlowInput=false [mol/s]
External inputs/outputs
BooleanuseSoluteFlowInputfalse=true, if solute flow input is used instead of parameter SoluteFlow

Connectors

TypeNameDescription
input MolarFlowRateInputsoluteFlow[mol/s]

Modelica definition

partial model ConditionalSoluteFlow "Input of solute molar flow vs. parametric solute molar flow" parameter Boolean useSoluteFlowInput = false "=true, if solute flow input is used instead of parameter SoluteFlow"; parameter Types.MolarFlowRate SoluteFlow=0 "Volumetric flow of solute if useSoluteFlowInput=false"; Types.RealIO.MolarFlowRateInput soluteFlow(start=SoluteFlow)=q if useSoluteFlowInput; Types.MolarFlowRate q "Current solute flow"; equation if not useSoluteFlowInput then q = SoluteFlow; end if; end ConditionalSoluteFlow;

Physiolibrary.Chemical.Interfaces.SubstanceDefinition

Invariant properties of substance (molar weight, enthalpy, entropy, ...)

Parameters

TypeNameDefaultDescription
StringfullNamegetInstanceName()Full physiological name of substance
StringshortNamegetInstanceName()Short physiological name of substance
MolarMassmw Molar weight in kg/mol or kDa [kg/mol]
MolarEnergydH0Enthalpy [J/mol]
MolarEnergydS0Entropy [J/mol]
AmountOfSubstancemolpIU1Pharmacological international unit conversion: mols per IU (or 1 if unknown) [mol]
AmountOfSubstancemolpGU1Goldblatt unit conversion: mols per GU (or 1 if unknown) [mol]
StringstoreUnit"mmol/l"Default substance unit in files or databaseses
RealTypeRecordunitConversions[:]cat(1, Types.Utilities.UnitC... 

Modelica definition

record SubstanceDefinition "Invariant properties of substance (molar weight, enthalpy, entropy, ...)" parameter String fullName=getInstanceName() "Full physiological name of substance"; parameter String shortName=getInstanceName() "Short physiological name of substance"; parameter Types.MolarMass mw "Molar weight in kg/mol or kDa"; parameter Types.MolarEnergy dH=0 "Enthalpy"; parameter Types.MolarEnergy dS=0 "Entropy"; parameter Types.AmountOfSubstance molpIU=1 "Pharmacological international unit conversion: mols per IU (or 1 if unknown)"; parameter Types.AmountOfSubstance molpGU=1 "Goldblatt unit conversion: mols per GU (or 1 if unknown)"; parameter String storeUnit="mmol/l" "Default substance unit in files or databaseses"; parameter Types.Utilities.UnitConversions.RealTypeRecord[:] unitConversions = cat(1, Types.Utilities.UnitConversions.GenerateSubstanceUnits("g",1e-3/mw), Types.Utilities.UnitConversions.GenerateSubstanceUnits("IU",molpIU), Types.Utilities.UnitConversions.GenerateSubstanceUnits("GU",molpGU)); end SubstanceDefinition;

Automatically generated Tue Sep 15 22:56:35 2015.