CoolProp
4.2.5
An open-source fluid property and humid air property database
|
#include <AllFluids.h>
Public Member Functions | |
FluidsContainer () | |
~FluidsContainer () | |
Fluid * | get_fluid (std::string name) |
Fluid * | get_fluid (long iFluid) |
bool | add_REFPROP_fluid (std::string FluidName, std::vector< double > xmol) |
long | get_fluid_index (Fluid *pFluid) |
std::string | FluidList () |
Returns a std::string of a comma-separated list of the CoolProp names of all the fluids that are loaded. More... | |
Public Attributes | |
std::vector< Fluid * > | FluidsList |
A list of pointers to the instances of the fluids. More... | |
This class contains pointers to all the classes of the fluids that can be used in addition to some convenience functions
Definition at line 11 of file AllFluids.h.
FluidsContainer::FluidsContainer | ( | ) |
Constructor for the FluidsContainer class
Definition at line 79 of file AllFluids.cpp.
FluidsContainer::~FluidsContainer | ( | ) |
Destructor for the FluidsContainer class. Deletes each fluid in tern
Definition at line 245 of file AllFluids.cpp.
bool FluidsContainer::add_REFPROP_fluid | ( | std::string | FluidName, |
std::vector< double > | xmol | ||
) |
Add a REFPROP fluid to the container
FluidName | |
xmol | std::vector of mole fractions - must add to 1 |
Definition at line 254 of file AllFluids.cpp.
std::string FluidsContainer::FluidList | ( | ) |
Returns a std::string of a comma-separated list of the CoolProp names of all the fluids that are loaded.
Definition at line 313 of file AllFluids.cpp.
Fluid * FluidsContainer::get_fluid | ( | std::string | name | ) |
Accessor. Throws a NotImplementedError if the fluid given by name is not found. Also searches aliases
name | Fluid to be searched for |
Definition at line 275 of file AllFluids.cpp.
Accessor. Throws a NotImplementedError if the fluid index is invalid
name | Fluid index to be used |
Definition at line 264 of file AllFluids.cpp.
Get the index of the fluid name
pFluid | pointer to Fluid instance |
Definition at line 298 of file AllFluids.cpp.
std::vector<Fluid*> FluidsContainer::FluidsList |
A list of pointers to the instances of the fluids.
Definition at line 20 of file AllFluids.h.