ideal_gases.py
def grid_points(volume_array,
                temperature_array,
                n_mol=1,
                R=constants.gas_constant):
    """Creates grid points to a 3D plot pressure x volume x temperature.
    The pressure data are calculated with ideal gas formula from volume
    and temperature arrays.

    The R value is taken from SciPy constants by default. So the values are
    considered to be in SI units. The user can change the parameter R to use
    another unit system.

    Parameters
    ----------
    volume_array : array
        volume array
    temperature_array : array
        volume array
    n_mol : int, optional
        number of moles of gas, by default 1
    R : float, optional
        ideal gas constant, by default constants.gas_constant

    Returns
    -------
    tuple
        volume, temperature and pressure matrices
    """
    volume_matrix, temperature_matrix = np.meshgrid(
        volume_array, temperature_array)

    pressure_matrix = n_mol * R * temperature_matrix / volume_matrix

    return volume_matrix, temperature_matrix, pressure_matrix
Creates grid points to a 3D plot pressure x volume x temperature.
    The pressure data are calculated with ideal gas formula from volume
    and temperature arrays.

    The R value is taken from SciPy constants by default. So the values are
    considered to be in SI units. The user can change the parameter R to use
    another unit system.

    Parameters
    ----------
    volume_array : array
        volume array
    temperature_array : array
        volume array
    n_mol : int, optional
        number of moles of gas, by default 1
    R : float, optional
        ideal gas constant, by default constants.gas_constant

    Returns
    -------
    tuple
        volume, temperature and pressure matrices
    
Creates grid points to a 3D plot pressure x volume x temperature.
The pressure data are calculated with ideal gas formula from volume
and temperature arrays.

The R value is taken from SciPy constants by default. So the values are
considered to be in SI units. The user can change the parameter R to use
another unit system.

Parameters

volume_array : array
volume array
temperature_array : array
volume array
n_mol : int, optional
number of moles of gas, by default 1
R : float, optional
ideal gas constant, by default constants.gas_constant

Returns

tuple
volume, temperature and pressure matrices
Creates grid points to a 3D plot pressure x volume x temperature . The pressure data are calculated with ideal gas formula from volume and temperature arrays . The R value is taken from SciPy constants by default . So the values are considered to be in SI units . The user can change the parameter R to use another unit system . Parameters volume_array : array volume array temperature_array : array volume array n_mol : int optional number of moles of gas by default 1 R : float optional ideal gas constant by default constants . gas_constant Returns tuple volume temperature and pressure matrices
def grid_points(volume_array,
                temperature_array,
                n_mol=1,
                R=constants.gas_constant):
    volume_matrix, temperature_matrix = np.meshgrid(
        volume_array, temperature_array)
    pressure_matrix = n_mol * R * temperature_matrix / volume_matrix
    return volume_matrix, temperature_matrix, pressure_matrix
def grid_points ( volume_array , temperature_array , n_mol = 1 , R = constants . gas_constant ) : volume_matrix , temperature_matrix = np . meshgrid ( volume_array , temperature_array ) pressure_matrix = n_mol * R * temperature_matrix / volume_matrix return volume_matrix , temperature_matrix , pressure_matrix
Creates grid points to a 3D plot pressure x volume x temperature.
Creates grid points to a 3D plot pressure x volume x temperature .
"""Creates grid points to a 3D plot pressure x volume x temperature.
    The pressure data are calculated with ideal gas formula from volume
    and temperature arrays.

    The R value is taken from SciPy constants by default. So the values are
    considered to be in SI units. The user can change the parameter R to use
    another unit system.

    Parameters
    ----------
    volume_array : array
        volume array
    temperature_array : array
        volume array
    n_mol : int, optional
        number of moles of gas, by default 1
    R : float, optional
        ideal gas constant, by default constants.gas_constant

    Returns
    -------
    tuple
        volume, temperature and pressure matrices
    """
volume_array
temperature_array
n_mol
R