libICEpost.src.thermophysicalModels.laminarFlameSpeedModels.TabulatedLFS

@author: F. Ramognino <federico.ramognino@polimi.it> Last update: 12/06/2023

Classes

TabulatedLFS

Class for computation of unstained laminar flame speed from tabulation

Module Contents

class libICEpost.src.thermophysicalModels.laminarFlameSpeedModels.TabulatedLFS.TabulatedLFS(*, Su: Iterable[float], deltaL: Iterable[float] = None, pRange: Iterable[float], TuRange: Iterable[float], phiRange: Iterable[float], egrRange: Iterable[float] = None, path: str = None, noWrite: bool = True, tablePropertiesParameters: dict[str, Any] = None, **kwargs)[source]

Bases: libICEpost.src.base.dataStructures.Tabulation.OFTabulation.OFTabulation, libICEpost.src.thermophysicalModels.laminarFlameSpeedModels.LaminarFlameSpeedModel.LaminarFlameSpeedModel

Class for computation of unstained laminar flame speed from tabulation

__inputNames: list[str] = ['pValues', 'TuValues', 'eqvrValues', 'egrValues']
__order: list[str] = ['p', 'Tu', 'phi', 'egr']
__files: dict[str, str]
classmethod fromFile(path: str, readLaminarFlameThickness: bool = True, noWrite=True, **kwargs) TabulatedLFS[source]

Construct a table from files stored in an OpenFOAM-LibICE tabulation locted at ‘path’. Directory structure as follows:

path |-tableProperties |—constant | |-Su | |-deltaL |—system

|-controlDict |-fvSchemes |-fvSolutions

Parameters:
  • path (str) – The master path where the tabulation is stored.

  • readLaminarFlameThickness (bool, optional) – Is the laminar flame thickness to be loaded? (in case it was not tabulated). Defaults to True.

  • noWrite (bool, optional) – Handle to prevent write access of this class to the tabulation (avoid overwrite). Defaults to True.

  • **kwargs – Optional keyword arguments of Tabulation.__init__ method of each Tabulation object.

Returns:

the tabulation

Return type:

TabulatedLFS

classmethod fromDictionary(dictionary: dict) TabulatedLFS[source]
Construct from dictionary containing:

path (str): The master path where the tabulation is stored. readLaminarFlameThickness (bool, optional): Is the laminar flame thickness to be loaded? (in case it was not tabulated). Defaults to True. noWrite (bool, optional): Handle to prevent write access of this class to the tabulation (avoid overwrite). Defaults to True. kwargs (dict, optional): The optional keyword arguments to pass to Tabulation instance for construction. Defaults to dict().

Parameters:

dictionary (dict) – The input dictionary.

Returns:

TabulatedLFS

SuTable() libICEpost.src.base.dataStructures.Tabulation.Tabulation.Tabulation[source]

The tabulation of laminar flame speed (read-only)

deltaLTable() libICEpost.src.base.dataStructures.Tabulation.Tabulation.Tabulation | None[source]

The tabulation of laminar flame tickness (read-only)

Su(p: float, T: float, phi: float, EGR=None, **kwargs)[source]

Interpolate laminar flame speed from tabulation.

Parameters:
  • p (float) – Pressure [Pa].

  • T (float) – Unburnt gas temperature [K]

  • phi (float) – Equivalence ratio [-].

  • EGR (float, optional) – (optional) mass fraction of recirculated exhaust gasses. Defaults to None.

  • **kwargs – The key-word arguments to pass to Tabulation.__call__ method.

Returns:

The computed laminar flame speed [m/s].

Return type:

float|np.ndarray[float]

deltaL(p, T, phi, EGR=None, **kwargs)[source]

Interpolate laminar flame thickness from tabulation.

Parameters:
  • p (float) – Pressure [Pa].

  • T (float) – Unburnt gas temperature [K]

  • phi (float) – Equivalence ratio [-].

  • EGR (float, optional) – (optional) mass fraction of recirculated exhaust gasses. Defaults to None.

  • **kwargs – The key-word arguments to pass to Tabulation.__call__ method.

Returns:

The computed laminar flame thickness [m].

Return type:

float|np.ndarray[float]