modelExternalMolality
Constant source of substance molality
Extends from Interfaces.PartialSubstance.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| stateOfMatter.SubstanceData | substanceData (from PartialSubstance) | Definition of the substance | |
| Real | Molality | 1e-8 | Fixed molality of the substance if useMolalityInput=false |
| Modelica.Units.SI.AmountOfSubstance | AmountOfSolutionPer1KgSolvent | 55.508 | Amount of all particles in the solution per one kilogram 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 | useMolalityInput | false | Is amount of substance an input? |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| SubstancePort_a | port_a (from PartialSubstance) | The substance | |
| Modelica.Blocks.Interfaces.RealInput | molalityInput | n/KG |
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