Reaktoro  v2.1.1
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 (const StringList &names)
 Construct a SubstanceCriticalProps instance.
 
 SubstanceCriticalProps (const SubstanceCriticalPropsData &data, const StringList &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 -> const Strings &
 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 -> const SubstanceCriticalPropsData &
 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 ( const SubstanceCriticalPropsData data,
const StringList 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: