Reaktoro  v2.11.0
A unified framework for modeling chemically reactive systems
ControlVariableP Struct Reference

Used to define a p control variable in a chemical equilibrium problem. More...

#include <EquilibriumSpecs.hpp>

Collaboration diagram for ControlVariableP:
[legend]

Public Types

using ChemicalPotentialFn = Fn< real(ChemicalProps const &props, real const &pk)>
 The signature of functions that evaluate the chemical potential of a species in terms of a p control variable. More...
 

Public Attributes

String name
 The unique name for this p control variable (required).
 
ChemicalFormula substance
 The chemical formula of the substance associated to this p control variable (optional).
 

Detailed Description

Used to define a p control variable in a chemical equilibrium problem.

The p control variables are employed for designating temperature and/or pressure as unknowns in the chemical equilibrium problem. They can also be utilized to represent the quantities of substances, namely titrants, for which the chemical system remains open.

Member Typedef Documentation

◆ ChemicalPotentialFn

using ChemicalPotentialFn = Fn<real(ChemicalProps const& props, real const& pk)>

The signature of functions that evaluate the chemical potential of a species in terms of a p control variable.

Parameters
propsThe current chemical properties of the system in the equilibrium calculation.
pkThe current value of the corresponding p control variable during the equilibrium calculation.

The documentation for this struct was generated from the following file: