imod.mf6.Modflow6Simulation.regrid_like#

Modflow6Simulation.regrid_like(regridded_simulation_name: str, target_grid: DataArray | UgridDataArray, validate: bool = True) Modflow6Simulation[source]#

This method creates a new simulation object. The models contained in the new simulation are regridded versions of the models in the input object (this). Time discretization and solver settings are copied.

Parameters:
  • regridded_simulation_name (str) – name given to the output simulation

  • target_grid (xr.DataArray or xu.UgridDataArray) – discretization onto which the models in this simulation will be regridded

  • validate (bool) – set to true to validate the regridded packages

Return type:

a new simulation object with regridded models

Examples

>>> target_grid = imod.util.empty_2d(
...     dx=5.0, xmin=500.0, xmax=1000.0, dy=5.0, ymin=500.0, ymax=1000.0
... )
>>> regridded_sim = simulation.regrid_like(
...     regridded_simulation_name="regridded_sim",
...     target_grid=target_grid,
... )