pyrolib.blaze package

Submodules

pyrolib.blaze.subgrid_burning_area module

Blaze computing methods

pyrolib.blaze.subgrid_burning_area.SGBA_EFFR(phi, nx, ny)

Compute Sub-Grid Burning Area (SGBA) with Explicit Fire Front Reconstruction (EFFR) method[2]_.

Parameters:
  • phi (np.ndarray) – Level-set array (ny, nx)

  • nx (int) – Size of fire array in x direction

  • ny (int) – Size of fire array in x direction

Returns:

S – Sub-Grid Burning Area computed with Weighted Average method

Return type:

np.ndarray

pyrolib.blaze.subgrid_burning_area.SGBA_WA(phi, nx, ny)

Compute Sub-Grid Burning Area (SGBA) with Weighted Average (WA) method.

The SGBA \(\mathcal S\) is computed by the following expression:

\[\begin{split}\mathcal S_{i, j} =& \frac{9}{16} \phi_{i, j} + \frac{3}{32} \left ( \phi_{i-1, j} + \phi_{i, j-1} + \phi_{i+1, j} + \phi_{i, j+1} \right ) + \\ & \frac{1}{64} \left ( \phi_{i-1, j-1} + \phi_{i+1, j-1} + \phi_{i+1, j+1} + \phi_{i-1, j+1} \right ).\end{split}\]
Parameters:
  • phi (np.ndarray) – Level-set array (ny, nx)

  • nx (int) – Size of fire array in x direction

  • ny (int) – Size of fire array in x direction

Returns:

S – Sub-Grid Burning Area computed with Weighted Average method

Return type:

np.ndarray