CoolProp  4.2.5
An open-source fluid property and humid air property database
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
FluidsContainer Class Reference

#include <AllFluids.h>

Public Member Functions

 FluidsContainer ()
 
 ~FluidsContainer ()
 
Fluidget_fluid (std::string name)
 
Fluidget_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...
 

Detailed Description

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.

Constructor & Destructor Documentation

FluidsContainer::FluidsContainer ( )

Constructor for the FluidsContainer class

See also
FluidsContainer

Definition at line 79 of file AllFluids.cpp.

FluidsContainer::~FluidsContainer ( )

Destructor for the FluidsContainer class. Deletes each fluid in tern

See also
FluidsContainer

Definition at line 245 of file AllFluids.cpp.

Member Function Documentation

bool FluidsContainer::add_REFPROP_fluid ( std::string  FluidName,
std::vector< double >  xmol 
)

Add a REFPROP fluid to the container

Parameters
FluidName
xmolstd::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

Parameters
nameFluid to be searched for

Definition at line 275 of file AllFluids.cpp.

Fluid * FluidsContainer::get_fluid ( long  iFluid)

Accessor. Throws a NotImplementedError if the fluid index is invalid

Parameters
nameFluid index to be used

Definition at line 264 of file AllFluids.cpp.

long FluidsContainer::get_fluid_index ( Fluid pFluid)

Get the index of the fluid name

Parameters
pFluidpointer to Fluid instance

Definition at line 298 of file AllFluids.cpp.

Member Data Documentation

std::vector<Fluid*> FluidsContainer::FluidsList

A list of pointers to the instances of the fluids.

Definition at line 20 of file AllFluids.h.


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