ChemicalEditor.hpp
A class for representing a list of strings with special constructors.
Definition: StringList.hpp:28
Provides operations to retrieve physical and thermodynamic data of chemical species.
Definition: Database.hpp:78
auto mineralPhases() const -> const std::vector< MineralPhase > &
Return the mineral phases in the chemical editor.
Definition: ChemicalEditor.cpp:683
Definition: MineralReaction.hpp:38
auto addLiquidPhaseWithElements(const StringList &elements) -> LiquidPhase &
Add a liquid phase in the chemical editor.
Definition: ChemicalEditor.cpp:618
A class to represent a system and its attributes and properties.
Definition: ChemicalSystem.hpp:38
auto addPhase(const AqueousPhase &phase) -> AqueousPhase &
Add an aqueous phase in the chemical editor.
Definition: ChemicalEditor.cpp:558
auto gaseousPhase() const -> const GaseousPhase &
Return the gaseous phase in the chemical editor.
Definition: ChemicalEditor.cpp:663
auto addMineralPhase(const StringList &species) -> MineralPhase &
Add a mineral phase in the chemical editor.
Definition: ChemicalEditor.cpp:628
Provides convenient operations to initialize ChemicalSystem and ReactionSystem instances.
Definition: ChemicalEditor.hpp:87
auto database(std::string name) -> std::string
Return the contents of a built-in database as a string.
Definition: DatabaseUtils.cpp:65
auto setTemperatures(std::vector< double > values, std::string units) -> void
Set the temperatures for constructing interpolation tables of thermodynamic properties.
Definition: ChemicalEditor.cpp:543
ChemicalEditor()
Construct a default ChemicalEditor instance.
Definition: ChemicalEditor.cpp:518
auto addAqueousPhase(const StringList &species) -> AqueousPhase &
Add an aqueous phase in the chemical editor.
Definition: ChemicalEditor.cpp:583
auto addAqueousPhaseWithElementsOf(const StringList &compounds) -> AqueousPhase &
Add an aqueous phase in the chemical editor.
Definition: ChemicalEditor.cpp:593
The namespace containing all components of the Reaktoro library.
Definition: ChemicalScalar.hpp:24
auto addMineralPhaseWithElementsOf(const StringList &compounds) -> MineralPhase &
Add a mineral phase in the chemical editor.
Definition: ChemicalEditor.cpp:638
auto elements() -> std::vector< std::string >
Return a vector of all known 116 chemical elements.
Definition: ElementUtils.cpp:155
auto addReaction(const MineralReaction &reaction) -> MineralReaction &
Add a mineral reaction in the chemical editor.
Definition: ChemicalEditor.cpp:578
auto addMineralPhaseWithElements(const StringList &elements) -> MineralPhase &
Add a mineral phase in the chemical editor.
Definition: ChemicalEditor.cpp:633
virtual ~ChemicalEditor()
Destroy the ChemicalEditor instance.
Definition: ChemicalEditor.cpp:534
auto createChemicalSystem() const -> ChemicalSystem
Create a ChemicalSystem instance with the current state of the chemical editor.
Definition: ChemicalEditor.cpp:693
Definition: GaseousPhase.hpp:32
auto liquidPhase() const -> const LiquidPhase &
Return the liquid phase in the chemical editor.
Definition: ChemicalEditor.cpp:673
auto addGaseousPhase(const StringList &species) -> GaseousPhase &
Add a gaseous phase in the chemical editor.
Definition: ChemicalEditor.cpp:598
A class that represents a system of chemical reactions.
Definition: ReactionSystem.hpp:42
auto addMineralReaction(const MineralReaction &reaction) -> MineralReaction &
Add a mineral reaction in the chemical editor.
Definition: ChemicalEditor.cpp:643
Definition: LiquidPhase.hpp:32
auto addAqueousPhaseWithElements(const StringList &elements) -> AqueousPhase &
Add an aqueous phase in the chemical editor.
Definition: ChemicalEditor.cpp:588
auto createReactionSystem() const -> ReactionSystem
Create a ReactionSystem instance with the current state of the chemical editor.
Definition: ChemicalEditor.cpp:698
auto addGaseousPhaseWithElementsOf(const StringList &compounds) -> GaseousPhase &
Add a gaseous phase in the chemical editor.
Definition: ChemicalEditor.cpp:608
auto operator=(const ChemicalEditor &other) -> ChemicalEditor &
Assign this ChemicalEditor instance with another.
Definition: ChemicalEditor.cpp:537
auto setPressures(std::vector< double > values, std::string units) -> void
Set the pressures for constructing interpolation tables of thermodynamic properties.
Definition: ChemicalEditor.cpp:548
auto initializePhasesWithElements(const StringList &elements) -> void
Initialize all possible phases that can exist with given elements.
Definition: ChemicalEditor.cpp:553
auto addGaseousPhaseWithElements(const StringList &elements) -> GaseousPhase &
Add a gaseous phase in the chemical editor.
Definition: ChemicalEditor.cpp:603
auto addLiquidPhase(const StringList &species) -> LiquidPhase &
Add a liquid phase in the chemical editor.
Definition: ChemicalEditor.cpp:613
auto aqueousPhase() const -> const AqueousPhase &
Return the aqueous phase in the chemical editor.
Definition: ChemicalEditor.cpp:653
auto addLiquidPhaseWithElementsOf(const StringList &compounds) -> LiquidPhase &
Add a liquid phase in the chemical editor.
Definition: ChemicalEditor.cpp:623