Reaktoro  v2.11.0
A unified framework for modeling chemically reactive systems
SubstanceCriticalProps Class Reference

A type used to represent a substance and its critical properties. More...

#include <CriticalProps.hpp>

Public Member Functions

 SubstanceCriticalProps (StringList const &names)
 Construct a SubstanceCriticalProps instance.
 
 SubstanceCriticalProps (SubstanceCriticalPropsData const &data, StringList const &names)
 Construct a SubstanceCriticalProps instance with given data. More...
 
auto setTemperature (real value, String unit) -> void
 Set the critical temperature of the substance with given unit.
 
auto setPressure (real value, String unit) -> void
 Set the critical pressure of the substance with given unit.
 
auto setAcentricFactor (real value) -> void
 Set the acentric factor of the substance.
 
auto names () const -> Strings const &
 Return the names that uniquely identify the substance.
 
auto temperature () const -> real
 Return the critical temperature of the substance (in K)
 
auto pressure () const -> real
 Return the critical pressure of the substance (in Pa)
 
auto acentricFactor () const -> real
 Return the acentric factor of the substance.
 
auto data () const -> SubstanceCriticalPropsData const &
 Return the critical properties data of the substance.
 
 operator SubstanceCriticalPropsData () const
 Return the critical properties data of the substance.
 

Detailed Description

A type used to represent a substance and its critical properties.

Constructor & Destructor Documentation

◆ SubstanceCriticalProps()

SubstanceCriticalProps ( SubstanceCriticalPropsData const &  data,
StringList const &  names 
)

Construct a SubstanceCriticalProps instance with given data.

The given names will be converted to uppercase, suffix will be removed, and spaces will be replaced by dashes. So, for example, the substance name carbon dioxide is replaced by CARBON-DIOXIDE and HCl(g) by HCL.

Parameters
dataThe critical property data of the substance
namesThe names that can uniquely identify the substance *(case-insensitive)*

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