modelExternalIdealGasSubstance
Ideal gas substance with defined partial pressure
Extends from Interfaces.PartialSubstance.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| stateOfMatter.SubstanceData | substanceData (from PartialSubstance) | Definition of the substance | |
| Modelica.Units.SI.Pressure | PartialPressure | 0 | Fixed partial pressure if usePartialPressureInput=false |
| Modelica.Units.SI.Pressure | TotalPressure | system.p_ambient | Total pressure of the whole gaseous solution |
| Modelica.Units.SI.Temperature | Temperature | system.T_ambient | Temperature |
| Modelica.Units.SI.MoleFraction | MoleFractionBasedIonicStrength | 0 | Ionic strength |
| Modelica.Units.SI.ElectricPotential | ElectricPotential | 0 | Electric potential |
| Modelica.Units.SI.Volume | Volume | 0.001 | Volume of gaseous solution |
| Conditional inputs | |||
| Boolean | usePartialPressureInput | false | =true, if fixed partial pressure is from input instead of parameter |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| SubstancePort_a | port_a (from PartialSubstance) | The substance | |
| Modelica.Blocks.Interfaces.RealInput | partialPressure | p | Partial pressure of gas = total pressure * gas fraction |
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.Pressure | p | Current partial pressure |
Revisions
2009-2015
Marek Matejak, Charles University, Prague, Czech Republic