modelPartialSpeciation

Chemical Speciation
Diagram of PartialSpeciation

Information

Notations

Ai

i-th substance

vi

stochiometric coefficients of i-th substance

K

dissociation constant (activity based)

a(Ai)=fi*xi

activity of the substance A

fi

activity coefficient of the substance A

xi

mole fraction of the substance A

ΔfHi

molar enthalpy of formation of i-th substance

ΔfGi

molar Gibbs energy of formation of i-th substance

ΔfSi

molar entropy of formation of i-th substance

Δrω

change of number of microstates of particles by reaction

Parameters

TypeNameDefaultDescription
Advanced
Modelica.Units.SI.MolarFlowRaten_flow_regdropOfCommons.n_flow_regRegularization threshold of mass flow rate
StateSelectn_flowStateSelectStateSelect.defaultState select for n_flow
Modelica.Units.SI.TimeTC0.1Time constant for electro-chemical potential adaption
Utilities.Units.InertanceLdropOfCommons.LInertance of the flow
Initialization › Molar flow
InitializationMethodsinitN_flowChemical.Utilities.Types.InitializationMethods.noneInitialization method for n_flow
Modelica.Units.SI.MolarFlowRaten_flow_00Initial value for n_flow
Utilities.Units.MolarFlowAccelerationn_acceleration_00Initial value for der(n_flow)
General › Ports
IntegernS0Number of subunits in rear macromolecule state
IntegernP0Number of subunits in fore macromolecule state

Connectors

TypeNameDefaultDescription
Chemical.Interfaces.Rear[nS]subunit_rearSubunits in rear macromolecule state
Chemical.Interfaces.Fore[nP]subunit_foreSubunits in fore macromolecule state
Interfaces.SolutionPortsolution_rearTo connect solution of subunits with rear state of macromolecule
Interfaces.SolutionPortsolution_foreTo connect solution of subunits with fore state of macromolecule
Chemical.Interfaces.SolutionPortsolutionTo connect substance with solution, where is pressented

Components

TypeNameDefaultDescription
Modelica.Units.SI.MolarFlowRaterrMolar flow rate of change macromolecule from rear state to fore state
Modelica.Units.SI.AmountOfSubstancenm_foreAmount of the macromolecule in fore state
Modelica.Units.SI.AmountOfSubstancenm_rearAmount of the macromolecule in rear state
Modelica.Units.SI.MoleFractionxm_foreMole fraction of the macromolecule in fore state
Modelica.Units.SI.MoleFractionxm_rearMole fraction of the macromolecule in rear state
Chemical.Interfaces.SolutionStatesolutionState
Chemical.Interfaces.Definitionmacromolecule_rearSpecific rear state of macromolecule composed only with connected subunits
Chemical.Interfaces.Definitionmacromolecule_foreSpecific fore state of macromolecule composed only with connected subunits
Reali
RealdH
RealdV
Realnj
Realmj
RealVj
RealGj
RealQj
RealIj
Real[nS]RTlnxm_rear
Real[nP]RTlnxm_fore

Revisions

2013-2025 by Marek Mateják