pytanksim.classes.excessisothermclass

Contains the ExcessIsotherm class.

Classes

ExcessIsotherm

Stores experimental excess isotherm measurement results.

Module Contents

class pytanksim.classes.excessisothermclass.ExcessIsotherm(adsorbate: str, sorbent: str, temperature: float, loading: List[float], pressure: List[float])

Stores experimental excess isotherm measurement results.

This class can be provided values directly in Python or it can import the values from a csv file.

adsorbate

Name of the adsorbate gas.

Type:

str

sorbent

Name of the sorbent material.

Type:

str

temperature

Temperature (K) at which the isotherm was measured.

Type:

float

loading

A list of excess adsorption values (mol/kg).

Type:

List[float]

pressure

A list of pressures (Pa) corresponding to points at which the excess adsorption values were measured.

Type:

list[float]

Initialize the ExcessIsotherm class.

Parameters:
  • adsorbate (str) – Name of the adsorbate gas.

  • sorbent (str) – Name of the sorbent material.

  • temperature (float) – Temperature (K) at which the isotherm was measured.

  • loading (List[float]) – A list of excess adsorption values (mol/kg).

  • pressure (list[float]) – A list of pressures (Pa) corresponding to points at which the excess adsorption values were measured.

Raises:

ValueError – If the lengths of the loading and pressure data don’t match.

Returns:

A class which stores experimental excess adsorption data.

Return type:

ExcessIsotherm

classmethod from_csv(filename: str, adsorbate: str, sorbent: str, temperature: float) ExcessIsotherm

Import loading and pressure data from a csv file.

Parameters:
  • filename (str) – Path leading to the file from which the data is to be imported.

  • adsorbate (str) – Name of adsorbate gas.

  • sorbent (str) – Name of sorbent material.

  • temperature (float) – Temperature (K) at which the data was measured.

Returns:

A class which stores experimental excess adsorption data.

Return type:

ExcessIsotherm