Model¶
-
class
phydrus.model.
Model
(exe_name, ws_name, name='model', description=None, length_unit='cm', time_unit='days', mass_units='mmol', print_screen=False)[source]¶ Basic Phydrus model container.
- Parameters
exe_name (str) – String with the path to the Hydrus-1D executable.
ws_name (str) – String with the workspace name. Folder is created if it does not exist.
name (str, optional) – String with the name of the model.
description (str, optional) – String with the description of the model.
length_unit (str, optional) – length units to use in the simulation. Options are “mm”, “cm”, and “m”. Defaults to “cm”.
time_unit (str, optional) – time unit to use in the simulation, options are “seconds”, “minutes”, “hours”, “days, “years”. Defaults to “days”.
mass_units (str, optional) – Mass units to use in the simulation, Options are “mmol”. Defaults to “mmol”. Only used when transport process is added.
print_screen (bool, optional) – Print the results to the screen during code execution.
Examples
>>> import phydrus as ps >>> ws = "example" >>> exe = os.path.join(os.getcwd(), "hydrus")
>>> ml = ps.Model(exe_name=exe, ws_name=ws, mass_units="mmol", >>> time_unit="min", length_unit="cm")
Attributes¶
|
|
|
|
|
Methods¶
Initialize self. |
|
Method to add the atmospheric boundary condition to the model. |
|
Method to add a drain to the model. |
|
Method to add heat transport to the model. |
|
Method to add a material to the model. |
|
Method to add observation points. |
|
Method to add the soil profile to the model. |
|
Method to add root growth to the model. |
|
Method to add rootwater update modeule to the model. |
|
Method to add a solute to the model. |
|
Method to add solute transport to the model. |
|
Method to produce time information. |
|
Method to add a water_flow module to the model. |
|
Get an empty DataFrame to fill in the heat parameters. |
|
Get an empty DataFrame with the soil parameters as columns. |
|
Get an empty DataFrame with the solute parameters as columns. |
|
Method to read the A_LEVEL.OUT output file. |
|
Method to read the BALANCE.OUT output file. |
|
Method to read the I_CHECK.OUT output file. |
|
Method to read the NOD_INF.OUT output file. |
|
Method to read the OBS_NODE.OUT output file. |
|
Method to read the PROFILE.OUT output file. |
|
Method to read the RUN_INF.OUT output file. |
|
Method to read the SOLUTE.OUT output file. |
|
Method to read the T_LEVEL.OUT output file. |
|
Method to set the path to the Hydrus-1D executable. |
|
Method to call the Hydrus-1D executable. |
|
Method to write the ATMOSPH.IN file |
|
Method to write the input files for the HYDRUS-1D simulation. |
|
Method to write the PROFILE.DAT file. |
|
Write the SELECTOR.IN file. |