gaspype.fluid_system#

class gaspype.fluid_system(species, t_min=250, t_max=2000)#

Bases: object

A class to represent a fluid_system defined by a set of selected species.

species_names#

List of selected species in the fluid_system

Type:

list[str]

array_molar_mass#

Array of the molar masses of the species in the fluid_system

Type:

FloatArray

array_element_composition#

Array of the element composition of the species in the fluid_system. Dimension is: (number of species, number of elements)

Type:

FloatArray

array_atomic_mass#

Array of the atomic masses of the elements in the fluid_system

Type:

FloatArray

Instantiates a fluid_system.

Parameters:
  • species (list[str] | str) – List of species names to be available in the constructed fluid_system (as list of strings or a comma separated string)

  • t_min (int) – Lower bound of the required temperature range in Kelvin

  • t_max (int) – Upper bound of the required temperature range in Kelvin

get_species_cp(t)#

Get the isobaric molar heat capacity for all species in the fluid system

Parameters:

t (float | ndarray[tuple[Any, ...], dtype[float64]]) – Temperature in Kelvin (can be an array)

Return type:

ndarray[tuple[Any, ...], dtype[float64]]

Returns:

Array with the heat capacities of each specie in J/mol/K

get_species_g_rt(t)#

Get specific gibbs free energy divided by RT for all species in the fluid system (g/R/T == (h/T-s)/R )

Parameters:

t (float | ndarray[tuple[Any, ...], dtype[float64]]) – Temperature in Kelvin (can be an array)

Return type:

ndarray[tuple[Any, ...], dtype[float64]]

Returns:

Array of gibbs free energy divided by RT (dimensionless)

get_species_h(t)#

Get the molar enthalpies for all species in the fluid system

Parameters:

t (float | ndarray[tuple[Any, ...], dtype[float64]]) – Temperature in Kelvin (can be an array)

Return type:

ndarray[tuple[Any, ...], dtype[float64]]

Returns:

Array with the enthalpies of each specie in J/mol

get_species_references()#

Get a string with the references for all fluids of the fluid system

Return type:

str

Returns:

String with the references

get_species_s(t)#

Get the molar entropies for all species in the fluid system

Parameters:

t (float | ndarray[tuple[Any, ...], dtype[float64]]) – Temperature in Kelvin (can be an array)

Return type:

ndarray[tuple[Any, ...], dtype[float64]]

Returns:

Array with the entropies of each specie in J/mol/K