MFnwtModel class

class mfsetup.mfnwtmodel.MFnwtModel(parent=None, cfg=None, modelname='model', exe_name='mfnwt', version='mfnwt', model_ws='.', external_path='external/', **kwargs)[source]

Bases: MFsetupMixin, Modflow

Class representing a MODFLOW-NWT model

property ibound

3D array indicating which cells will be included in the simulation. Made a property so that it can be easily updated when any packages it depends on change.

property ipakcb

By default write everything to one cell budget file.

classmethod load(yamlfile, load_only=None, verbose=False, forgive=False, check=False)[source]

Load a model from a config file and set of MODFLOW files.

property perioddata

DataFrame summarizing stress period information. Columns: ============== ========================================= start_datetime Start date of each model stress period end_datetime End date of each model stress period time MODFLOW elapsed time, in days* per Model stress period number perlen Stress period length (days) nstp Number of timesteps in stress period tsmult Timestep multiplier steady Steady-state or transient oc Output control setting for MODFLOW parent_sp Corresponding parent model stress period ============== =========================================

TODO: the code here might still need to be adapted to parallel the code in MF6model.perioddata, to work with parent models that are already loaded but have no configuration.

setup_chd(**kwargs)[source]

Set up the CHD Package.

setup_drn(**kwargs)[source]

Set up the Drain Package.

setup_ghb(**kwargs)[source]

Set up the General Head Boundary Package.

setup_hyd(**kwargs)[source]

TODO: generalize hydmod setup with specific input requirements

setup_riv(rivdata=None, **kwargs)[source]

Set up the River Package.

setup_tdis(**kwargs)[source]

Calls the _set_perioddata, to establish time discretization. Only purpose is to conform to same syntax as mf6 for MFsetupMixin.setup_from_yaml()

setup_upw(**kwargs)[source]
setup_wel(**kwargs)[source]

Set up the Well Package.

write_input()[source]

Write the model input.