From 761c2cd79c2cb7596a92cbf0c4fe5dc829119c5f Mon Sep 17 00:00:00 2001 From: Daniel Neves <79768506+danielneves1@users.noreply.github.com> Date: Tue, 21 Mar 2023 17:30:18 +0000 Subject: [PATCH] Update simulation.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit são necessários os dois tipos de vento pois o primeiro caracteriza o tipo, e o segundo, os parâmetros da elipse. --- src/pyfirestation/propagation/simulation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pyfirestation/propagation/simulation.py b/src/pyfirestation/propagation/simulation.py index 583122f..973c907 100755 --- a/src/pyfirestation/propagation/simulation.py +++ b/src/pyfirestation/propagation/simulation.py @@ -215,11 +215,12 @@ def calc_cell_propagation(self, source_cell: CellIndex) -> List[PropagationPath] height_source = self.grid.terrain_grid[source_cell].height_center flux = np.linalg.norm(spread.total_flux) + wind=self.grid.wind_grid[source_cell] wind_speed = spread.equivalent_wind flux_x, flux_y = spread.total_flux flux_direction = np.arctan2(flux_y, flux_x) % (2 * np.pi) - ellipse = FireEllipse(wind_speed=wind_speed, theta=flux_direction) + ellipse = FireEllipse(wind=wind,wind_equiv=wind_speed, theta=flux_direction) propagations = []