modelExternalConcentration
Constant source of molar concentration
Extends from Interfaces.PartialSubstance.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| stateOfMatter.SubstanceData | substanceData (from PartialSubstance) | Definition of the substance | |
| Real | MolarConcentration | 1e-8 | Fixed molarity of the substance if useMolarityInput=false |
| Modelica.Units.SI.AmountOfSubstance | AmountOfSolutionIn1L | 55.508 | Amount of all particles in the solution one liter of solvent |
| Modelica.Units.SI.Temperature | Temperature | system.T_ambient | Temperature |
| Modelica.Units.SI.Pressure | Pressure | system.p_ambient | Pressure |
| Modelica.Units.SI.MoleFraction | MoleFractionBasedIonicStrength | 0 | Ionic strength |
| Modelica.Units.SI.ElectricPotential | ElectricPotential | 0 | Electric potential |
| Conditional inputs | |||
| Boolean | useMolarityInput | false | Is amount of substance an input? |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| SubstancePort_a | port_a (from PartialSubstance) | The substance | |
| Modelica.Blocks.Interfaces.RealInput | molarConcentrationInput | n/L |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.System | system (from PartialSubstance) | System wide properties | |
| Modelica.Units.SI.MoleFraction | x (from PartialSubstance) | Mole fraction of the substance | |
| Modelica.Units.SI.ActivityOfSolute | a (from PartialSubstance) | Activity of the substance (mole-fraction based) | |
| Modelica.Units.SI.AmountOfSubstance | n | Current amount of the substance |
Revisions
2009-2015
Marek Matejak, Charles University, Prague, Czech Republic