CriticalProps.hpp
A type used store a collection of substances and their critical properties.
Definition: CriticalProps.hpp:92
static auto size() -> Index
Return the number of substances in the database.
static auto get(String const &substance) -> Optional< SubstanceCriticalProps >
Return the substance and its critical properties with given name (e.g. "WATER", "CARBON-DIOXIDE",...
static auto instance() -> CriticalProps &
Return the single CriticalProps object.
static auto append(SubstanceCriticalProps crprops) -> void
Append critical properties for a substance in the database.
static auto data() -> Deque< SubstanceCriticalProps > const &
Return the critical properties data in the database.
static auto find(String const &substance) -> Index
Return the index of a substance in the database or number of substances if not found.
static auto defaultCriticalProps() -> Optional< SubstanceCriticalProps > const &
Return the default critical properties used for missing substances in the database.
static auto setMissingAs(String const &substance) -> void
Set a given existing substance in the database as the default choice for missing substances when usin...
auto end()
Return end iterator of this ChemicalProps instance.
Definition: CriticalProps.hpp:140
static auto overwrite(SubstanceCriticalProps crprops) -> void
Append critical properties for a substance in the database or overwrite if data already exists for th...
static auto get(StringList const &substances) -> Optional< SubstanceCriticalProps >
Return the substance and its critical properties with given alternative names.
CriticalProps(CriticalProps const &)=delete
Construct a copy of a CriticalProps object [deleted].
auto begin() const
Return begin const iterator of this ChemicalProps instance.
Definition: CriticalProps.hpp:131
auto begin()
Return begin iterator of this ChemicalProps instance.
Definition: CriticalProps.hpp:134
auto end() const
Return end const iterator of this ChemicalProps instance.
Definition: CriticalProps.hpp:137
auto operator=(CriticalProps const &) -> CriticalProps &=delete
Assign a CriticalProps object to this [deleted].
A class for representing a list of strings with special constructors.
Definition: StringList.hpp:28
A type used to represent a substance and its critical properties.
Definition: CriticalProps.hpp:42
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 setAcentricFactor(real value) -> void
Set the acentric factor of the substance.
auto acentricFactor() const -> real
Return the acentric factor of the substance.
auto data() const -> SubstanceCriticalPropsData const &
Return the critical properties data of the substance.
auto names() const -> Strings const &
Return the names that uniquely identify the substance.
auto setTemperature(real value, String unit) -> void
Set the critical temperature of the substance with given unit.
SubstanceCriticalProps(StringList const &names)
Construct a SubstanceCriticalProps instance.
SubstanceCriticalProps(SubstanceCriticalPropsData const &data, StringList const &names)
Construct a SubstanceCriticalProps instance with given data.
auto setPressure(real value, String unit) -> void
Set the critical pressure of the substance with given unit.
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
auto unit(Index rows, Index i) -> decltype(VectorXd::Unit(rows, i))
Return an expression of a unit vector.
Definition: Matrix.hpp:546
autodiff::real real
The number type used throughout the library.
Definition: Real.hpp:26
std::vector< std::string > Strings
Convenient alias for std::vector<String>.
Definition: Types.hpp:55
std::optional< T > Optional
Convenient alias for std::optional<T>.
Definition: Types.hpp:114
A type used to represent the critical properties of a substance.
Definition: CriticalProps.hpp:29
real omega
The acentric factor of the substance.
Definition: CriticalProps.hpp:37
real Tcr
The critical temperature of the substance (in K).
Definition: CriticalProps.hpp:31
real Pcr
The critical pressure of the substance (in Pa).
Definition: CriticalProps.hpp:34