modelChemicalReaction

Chemical Reaction

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

kf·volume·product(S.^s)

forward rate

kb·volume·product(P.^p)

backward rate

KaT = kf/kb = product(P.^p) / product(S.^s) 

equilibrium

log(KaT/KBase) = (-ΔH/R)·(1/TheatPort - 1/TK) 

van't Hoff's equation

ΔrG0= ΔH - T·ΔS = -R·T·log(KaT)

Gibb's energy

ΔS = k·log(ω)

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

TypeNameDefaultDescription
Types.VolumeNormalVolume (from ConditionalVolume)0.0011 liter
RealK1Fixed dissociation constant [SI-unit] if useDissociationConstantInput=false
Realkf10^8Forward reaction rate coefficient [SI unit]
Types.FractionsolventFraction1Free 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
BooleanuseNormalizedVolume (from ConditionalVolume)trueNormalized volume of solution is 1 liter
BooleanuseDissociationConstantInputfalse=true, if external dissociation ratio is used
BooleanuseForwardRateInputfalse=true, if external forward rate is used
BooleanuseHeatPort (from ConditionalHeatPort)false=true, if HeatPort is enabled
Reaction type › Substrates
IntegernS1Number of substrates types
Types.StoichiometricNumber[nS]sones(nS)Stoichiometric reaction coefficient for substrates
Modelica.Units.SI.ActivityCoefficient[nS]asones(nS)Activity coefficients of substrates
Reaction type › Products
IntegernP1Number of products types
Types.StoichiometricNumber[nP]pones(nP)Stoichiometric reaction coefficients for products
Modelica.Units.SI.ActivityCoefficient[nP]apones(nP)Activity coefficients of products
Temperature dependence
Types.TemperatureT (from ConditionalHeatPort)310.15Fixed device temperature if useHeatPort = false
Types.TemperatureTK298.15Base temperature
Types.MolarEnergydH0Standard Enthalpy Change (negative=exothermic)

Connectors

TypeNameDefaultDescription
Types.RealIO.VolumeInputsolutionVolume (from ConditionalVolume)volumeVolume of solution
Modelica.Blocks.Interfaces.RealInputdissociationConstantKBaseDissociation coefficient [SI-unit]
Physiolibrary.Chemical.Interfaces.ChemicalPort_b[nP]productsProducts
Physiolibrary.Chemical.Interfaces.ChemicalPort_a[nS]substratesSubstrates
Thermal.Interfaces.HeatPort_aheatPort (from ConditionalHeatPort)
Modelica.Blocks.Interfaces.RealInputforwardRateCoefficientforwardRateReaction forward rate coefficient [SI-unit]

Components

TypeNameDefaultDescription
RealKaTDissociation constant at current temperature
Types.MolarFlowRaterrReaction molar flow rate
Types.Volumevolume (from ConditionalVolume)Solution volume
Types.TemperatureT_heatPort (from ConditionalHeatPort)Temperature of HeatPort
Types.HeatFlowRatelossHeat (from ConditionalHeatPort)Loss heat leaving component via HeatPort
RealKBasedissociation constant at TK
RealforwardRate

Revisions

2013-2015 by Marek Matejak, Charles University, Prague, Czech Republic