Physiolibrary.Chemical.Sources

Information

Extends from Modelica.Icons.SourcesPackage (Icon for packages containing sources).

Package Content

Name Description
Physiolibrary.Chemical.Sources.UnlimitedSolutePump UnlimitedSolutePump Molar pump of solute to system
Physiolibrary.Chemical.Sources.UnlimitedSolutionStorage UnlimitedSolutionStorage Constant concentration source
Physiolibrary.Chemical.Sources.UnlimitedGasStorage UnlimitedGasStorage Constant ideal gas source
Physiolibrary.Chemical.Sources.UnlimitedSolutePumpOut UnlimitedSolutePumpOut Molar pump of solute out of system

Physiolibrary.Chemical.Sources.UnlimitedSolutePump Physiolibrary.Chemical.Sources.UnlimitedSolutePump

Molar pump of solute to system

Physiolibrary.Chemical.Sources.UnlimitedSolutePump

Information

Extends from Interfaces.ConditionalSoluteFlow (Input of solute molar flow vs. parametric solute molar flow).

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]
ChemicalPort_bq_outOutflow

Modelica definition

model UnlimitedSolutePump "Molar pump of solute to system" extends Interfaces.ConditionalSoluteFlow; Interfaces.ChemicalPort_b q_out "Outflow"; equation q_out.q = - q; end UnlimitedSolutePump;

Physiolibrary.Chemical.Sources.UnlimitedSolutionStorage Physiolibrary.Chemical.Sources.UnlimitedSolutionStorage

Constant concentration source

Physiolibrary.Chemical.Sources.UnlimitedSolutionStorage

Parameters

TypeNameDefaultDescription
ConcentrationConc0Fixed concentration if useConcentrationInput=false [mol/m3]
External inputs/outputs
BooleanuseConcentrationInputfalse=true, if fixed concentration is from input instead of parameter
Equilibrium
Simulation
BooleanisIsolatedInSteadyStatetrue=true, if there is no flow at port in steady state
SimulationTypeSimulationTypes.SimulationType.NormalI...If in equilibrium, then zero-flow equation is added.

Connectors

TypeNameDescription
ChemicalPort_bq_outconstant concentration with any possible flow
input ConcentrationInputconcentration[mol/m3]

Modelica definition

model UnlimitedSolutionStorage "Constant concentration source" Interfaces.ChemicalPort_b q_out "constant concentration with any possible flow"; parameter Boolean useConcentrationInput = false "=true, if fixed concentration is from input instead of parameter"; parameter Types.Concentration Conc = 0 "Fixed concentration if useConcentrationInput=false"; parameter Boolean isIsolatedInSteadyState = true "=true, if there is no flow at port in steady state"; parameter Types.SimulationType Simulation=Types.SimulationType.NormalInit "If in equilibrium, then zero-flow equation is added."; Types.RealIO.ConcentrationInput concentration(start=Conc)=c if useConcentrationInput; protected Types.Concentration c "Current concentration"; initial equation if isIsolatedInSteadyState and (Simulation==Types.SimulationType.InitSteadyState) then q_out.q = 0; end if; equation if not useConcentrationInput then c=Conc; end if; q_out.conc = c; if isIsolatedInSteadyState and (Simulation==Types.SimulationType.SteadyState) then q_out.q = 0; end if; end UnlimitedSolutionStorage;

Physiolibrary.Chemical.Sources.UnlimitedGasStorage Physiolibrary.Chemical.Sources.UnlimitedGasStorage

Constant ideal gas source

Physiolibrary.Chemical.Sources.UnlimitedGasStorage

Information

Extends from Interfaces.ConditionalHeatPort (Partial model to include a conditional HeatPort in order to describe the power loss via a thermal network).

Parameters

TypeNameDefaultDescription
PressurePartialPressure0Fixed partial pressure if usePartialPressureInput=false [Pa]
External inputs/outputs
BooleanuseHeatPortfalse=true, if HeatPort is enabled
BooleanusePartialPressureInputfalse=true, if fixed partial pressure is from input instead of parameter
Temperature dependence
TemperatureT310.15Fixed device temperature if useHeatPort = false [K]
Equilibrium
Simulation
BooleanisIsolatedInSteadyStatetrue=true, if there is no flow at port in steady state
SimulationTypeSimulationTypes.SimulationType.NormalI...If in equilibrium, then zero-flow equation is added.

Connectors

TypeNameDescription
HeatPort_aheatPort 
ChemicalPort_bq_outconstant gas concentration with any possible flow
input PressureInputpartialPressurePartial pressure of Gas = air pressure * gas fraction [Pa]

Modelica definition

model UnlimitedGasStorage "Constant ideal gas source" extends Interfaces.ConditionalHeatPort; Interfaces.ChemicalPort_b q_out "constant gas concentration with any possible flow"; parameter Boolean usePartialPressureInput = false "=true, if fixed partial pressure is from input instead of parameter"; parameter Types.Pressure PartialPressure = 0 "Fixed partial pressure if usePartialPressureInput=false"; Types.RealIO.PressureInput partialPressure(start=PartialPressure) = p if usePartialPressureInput "Partial pressure of Gas = air pressure * gas fraction"; parameter Boolean isIsolatedInSteadyState = true "=true, if there is no flow at port in steady state"; parameter Types.SimulationType Simulation=Types.SimulationType.NormalInit "If in equilibrium, then zero-flow equation is added."; protected Types.Pressure p "Current partial pressure"; initial equation if isIsolatedInSteadyState and (Simulation==Types.SimulationType.InitSteadyState) then q_out.q = 0; end if; equation if not usePartialPressureInput then p=PartialPressure; end if; q_out.conc = p / (Modelica.Constants.R * T_heatPort); //ideal gas equation if isIsolatedInSteadyState and (Simulation==Types.SimulationType.SteadyState) then q_out.q = 0; end if; lossHeat=0; //only read temperature from heat port end UnlimitedGasStorage;

Physiolibrary.Chemical.Sources.UnlimitedSolutePumpOut Physiolibrary.Chemical.Sources.UnlimitedSolutePumpOut

Molar pump of solute out of system

Physiolibrary.Chemical.Sources.UnlimitedSolutePumpOut

Information

Extends from Interfaces.ConditionalSoluteFlow (Input of solute molar flow vs. parametric solute molar flow).

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]
ChemicalPort_aq_inInflow

Modelica definition

model UnlimitedSolutePumpOut "Molar pump of solute out of system" extends Interfaces.ConditionalSoluteFlow; Interfaces.ChemicalPort_a q_in "Inflow"; equation q_in.q = q; end UnlimitedSolutePumpOut;

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