Replies: 2 comments
-
@mbakker7, two different sources of confusion here: (1) how do these keywords work in MODFLOW, and (2) what flopy syntax is needed to set the keywords. Regarding the MODFLOW side, these keywords are specified in the options block. They are either included in the options block or not. I can see why they might be confusing.
Regarding the flopy side for specifying these options, as @wpbonelli mentions, it's tricky and confusing but will work once the magic syntax is discovered. Keep in mind that the keyword is either written or not written to the options block, so it's confusing to have them set to none, true, or false. We are hoping to improve this in the next major release. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the clear explanations, @langevin-usgs Regarding translation of Flopy to MODFLOW, I am starting to understand the difference you are talking about. In Python we are used to set a variable to True or False. But in MODFLOW a parameter is included or not. So if something is not set in Flopy (i.e., the default None is used), that means that it is not written to the MODFLOW input file, and MODFLOW uses whatever the default is. I guess from a tranparancy point of view it would be desirable to always set all variables, also in the MODFLOW input file (so they are True or False, or whatever the option is). But that may require quite some changes in MODFLOW that you may not want to make. |
Beta Was this translation helpful? Give feedback.
-
In the
mf6.modflow.ModflowGwtdsp
package you can specifyxt3d_off
andxt3d_rhs
.The first one is clear. When I specify
xt3d_off=True
then xt3d is turned off, which may be a good idea when you are working on a regular grid as it speeds up the code by about a factor of two (thanks telling us, martijn!).But the second one,
xt3d_rhs
is unclear to me. The docs state 'xt3d_rhs (boolean) add xt3d terms to right-hand side, when possible. This option uses less memory, but may require more iterations.' So to turn this off, I guess I should typext3d_rhs=False
, which is the opposite of thext3d_off
term. Am I correct? Or isxt3d_rhs
ignored whenxt3d_off=True
and it doesn't matter?Incidentally, it is unclear what the default values (
None
) are for these parameters (i.e., what happens when a user doesn't specify these), as explained in Discussion #2453.Beta Was this translation helpful? Give feedback.
All reactions