imod.mf6.GroundwaterFlowModel.write#
- GroundwaterFlowModel.write(modelname: str, globaltimes: list[datetime64] | ndarray, directory: str | Path, binary: bool = True, use_absolute_paths: bool = False, validate: bool = True)#
Write MODFLOW6 model to file. Note that this method is purely intended for debugging purposes. It does not result in a functional model. For that the model needs to be part of a
imod.mf6.Modflow6Simulation
, of which thewrite
method should be called.- Parameters:
modelname (str) – Model name
globaltimes (list[np.datetime64] | np.ndarray) – Times of the simulation’s stress periods.
directory (str | Path) – Directory in which the simulation will be written.
binary (bool = True) – Whether to write time-dependent input for stress packages as binary files, which are smaller in size, or more human-readable text files.
use_absolute_paths (bool = False) – True if all paths written to the mf6 inputfiles should be absolute.
validate (bool = True) – Whether to validate the Modflow6 simulation, including models, at write. If True, erronous model input will throw a
ValidationError
.