Physiolibrary.Osmotic.Sources

Information

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

Package Content

Name Description
Physiolibrary.Osmotic.Sources.SolventInflux SolventInflux Prescribed solvent inflow
Physiolibrary.Osmotic.Sources.SolventOutflux SolventOutflux Prescribed solvent outflow
Physiolibrary.Osmotic.Sources.UnlimitedSolution UnlimitedSolution Prescribed osmolarity

Physiolibrary.Osmotic.Sources.SolventInflux Physiolibrary.Osmotic.Sources.SolventInflux

Prescribed solvent inflow

Physiolibrary.Osmotic.Sources.SolventInflux

Information

Extends from Hydraulic.Interfaces.ConditionalSolutionFlow (Input of solution volumetric flow vs. parametric solution volumetric flow).

Parameters

TypeNameDefaultDescription
VolumeFlowRateSolutionFlow0Volumetric flow of solution if useSolutionFlowInput=false [m3/s]
External inputs/outputs
BooleanuseSolutionFlowInputfalse=true, if solution flow input is used instead of parameter SolutionFlow

Connectors

TypeNameDescription
input VolumeFlowRateInputsolutionFlow[m3/s]
OsmoticPort_bq_out 

Modelica definition

model SolventInflux "Prescribed solvent inflow" extends Hydraulic.Interfaces.ConditionalSolutionFlow; Interfaces.OsmoticPort_b q_out; equation q_out.q = - q; end SolventInflux;

Physiolibrary.Osmotic.Sources.SolventOutflux Physiolibrary.Osmotic.Sources.SolventOutflux

Prescribed solvent outflow

Physiolibrary.Osmotic.Sources.SolventOutflux

Information

Extends from Hydraulic.Interfaces.ConditionalSolutionFlow (Input of solution volumetric flow vs. parametric solution volumetric flow).

Parameters

TypeNameDefaultDescription
VolumeFlowRateSolutionFlow0Volumetric flow of solution if useSolutionFlowInput=false [m3/s]
External inputs/outputs
BooleanuseSolutionFlowInputfalse=true, if solution flow input is used instead of parameter SolutionFlow

Connectors

TypeNameDescription
input VolumeFlowRateInputsolutionFlow[m3/s]
OsmoticPort_aq_in 

Modelica definition

model SolventOutflux "Prescribed solvent outflow" extends Hydraulic.Interfaces.ConditionalSolutionFlow; Interfaces.OsmoticPort_a q_in; equation q_in.q = q; end SolventOutflux;

Physiolibrary.Osmotic.Sources.UnlimitedSolution Physiolibrary.Osmotic.Sources.UnlimitedSolution

Prescribed osmolarity

Physiolibrary.Osmotic.Sources.UnlimitedSolution

Information

This model defines a fixed temperature T at its port in Kelvin, i.e., it defines a fixed temperature as a boundary condition.


Parameters

TypeNameDefaultDescription
OsmolarityOsm0Fixed osmolarity at port if useOsmolarityInput=false [mol/m3]
External inputs/outputs
BooleanuseOsmolarityInputfalse=true, if fixed osmolarity at port 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
OsmoticPort_bport 
input TemperatureInputosmolarity[K]

Modelica definition

model UnlimitedSolution "Prescribed osmolarity" parameter Boolean useOsmolarityInput = false "=true, if fixed osmolarity at port is from input instead of parameter"; parameter Types.Osmolarity Osm = 0 "Fixed osmolarity at port if useOsmolarityInput=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."; Interfaces.OsmoticPort_b port; protected Types.Osmolarity o "Current osmolarity"; public Types.RealIO.TemperatureInput osmolarity(start=Osmolarity)=o if useOsmolarityInput; initial equation if isIsolatedInSteadyState and (Simulation==Types.SimulationType.InitSteadyState) then port.q = 0; end if; equation if not useOsmolarityInput then o=Osm; end if; port.o = o; if isIsolatedInSteadyState and (Simulation==Types.SimulationType.SteadyState) then port.q = 0; end if; end UnlimitedSolution;

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