modelChemicalReaction
Extends from Physiolibrary.Chemical.Interfaces.ConditionalVolume (Chemical processes can be modeled with or without(normalized to 1 liter) variable solution volume), Physiolibrary.Chemical.Interfaces.ConditionalHeatPort (Partial model to include a conditional HeatPort in order to describe the power loss via a thermal network).
Information
s1·S1 + .. + snS·SnS <-> p1·P1 + .. + pnP·PnP
Relations
forward rate |
|
backward rate |
|
equilibrium |
|
van't Hoff's equation |
|
ΔrG0= ΔH - T·ΔS = -R·T·log(KaT) |
Gibb's energy |
entropy |
Notations
Si |
molar concentration of i-th substrate |
si |
stochiometric coefficients of i-th substrate |
nS |
number of substrates |
Pj |
molar concentration of j-th product |
pj |
stochiometric coefficients of j-th product |
nP |
number of products |
KaT |
dissociation constant at current temperature T |
kf |
forward rate coefficient at current temperature T |
kb |
backward rate coefficient at current temperature T |
volume |
solution volume |
ΔH |
enthalpy of the reaction |
TheatPort |
current temperature T |
KBase |
tabulated dissociation constant at base temperature TK |
TK |
base temperature of tabulated coefficients |
ω |
change of number of microstates of particles |
ΔS |
entropy of the reaction |
ΔrG0 |
Gibb's energy of the reaction |
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Types.Volume | NormalVolume (from ConditionalVolume) | 0.001 | 1 liter |
| Real | K | 1 | Fixed dissociation constant [SI-unit] if useDissociationConstantInput=false |
| Real | kf | 10^8 | Forward reaction rate coefficient [SI unit] |
| Types.Fraction | solventFraction | 1 | Free solvent fraction in liquid (i.e. 'mol/mol' ratio between current solution and pure solvent in one liter; e.g. in plasma=0.96, in RBC=0.717) |
| External inputs/outputs | |||
| Boolean | useNormalizedVolume (from ConditionalVolume) | true | Normalized volume of solution is 1 liter |
| Boolean | useDissociationConstantInput | false | =true, if external dissociation ratio is used |
| Boolean | useForwardRateInput | false | =true, if external forward rate is used |
| Boolean | useHeatPort (from ConditionalHeatPort) | false | =true, if HeatPort is enabled |
| Reaction type › Substrates | |||
| Integer | nS | 1 | Number of substrates types |
| Types.StoichiometricNumber[nS] | s | ones(nS) | Stoichiometric reaction coefficient for substrates |
| Modelica.Units.SI.ActivityCoefficient[nS] | as | ones(nS) | Activity coefficients of substrates |
| Reaction type › Products | |||
| Integer | nP | 1 | Number of products types |
| Types.StoichiometricNumber[nP] | p | ones(nP) | Stoichiometric reaction coefficients for products |
| Modelica.Units.SI.ActivityCoefficient[nP] | ap | ones(nP) | Activity coefficients of products |
| Temperature dependence | |||
| Types.Temperature | T (from ConditionalHeatPort) | 310.15 | Fixed device temperature if useHeatPort = false |
| Types.Temperature | TK | 298.15 | Base temperature |
| Types.MolarEnergy | dH | 0 | Standard Enthalpy Change (negative=exothermic) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Types.RealIO.VolumeInput | solutionVolume (from ConditionalVolume) | volume | Volume of solution |
| Modelica.Blocks.Interfaces.RealInput | dissociationConstant | KBase | Dissociation coefficient [SI-unit] |
| Physiolibrary.Chemical.Interfaces.ChemicalPort_b[nP] | products | Products | |
| Physiolibrary.Chemical.Interfaces.ChemicalPort_a[nS] | substrates | Substrates | |
| Thermal.Interfaces.HeatPort_a | heatPort (from ConditionalHeatPort) | ||
| Modelica.Blocks.Interfaces.RealInput | forwardRateCoefficient | forwardRate | Reaction forward rate coefficient [SI-unit] |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | KaT | Dissociation constant at current temperature | |
| Types.MolarFlowRate | rr | Reaction molar flow rate | |
| Types.Volume | volume (from ConditionalVolume) | Solution volume | |
| Types.Temperature | T_heatPort (from ConditionalHeatPort) | Temperature of HeatPort | |
| Types.HeatFlowRate | lossHeat (from ConditionalHeatPort) | Loss heat leaving component via HeatPort | |
| Real | KBase | dissociation constant at TK | |
| Real | forwardRate |
Revisions
2013-2015 by Marek Matejak, Charles University, Prague, Czech Republic