You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the method callback in the class FluxMonitor. I assume the name "RIVER" in above code comes from the line RIV6 model.riv river in the file temp/model.nam:
BEGIN options
PRINT_INPUT
SAVE_FLOWS
END options
BEGIN packages
DIS6 model.dis dis
NPF6 model.npf npf
IC6 model.ic ic
RIV6 model.riv river
CHD6 model.chd chd_0
OC6 model.oc oc
END packages
that is generated by flopy.
How do get a list of all SIMVALS?
I would like to know what SIMVALS such as RIVER are available for the use in modlfowapi. Can I get list of all names that I could use instead of MYVARNAME in the this code (extracted from above code):
How can I do this? Ideally, I would like to get this list dynamically with Python during initialization, i.e. in the block below callback_step == Callbacks.initialize.
What do the variables stand for?
I tried to get the constant head data during run time. From the line CHD6 model.chd chd_0 in the file temp/model.nam I concluded that the name I can use to get a pointer to CHD values is CHD_0. Therefore, I modified the code in callback:
So SIMVALS are always the flux, correct? fmon.flux contains them at all river locations from the "river perspective" and fmon.chd contains them at all CHD cells from from the "chd perspective". Due to the two-element model, one cell containing the river and other cell containing chd, both fluxes have the sam absolute values with opposite signs. Is this correct?
The text was updated successfully, but these errors were encountered:
Context
I am trying to understand the example for using
modflowapi
presented by @jdhughes-usgs during the MODFLW6 training at DSD24, November 22, 2024 .The example Notebook has these lines of code:
in the method
callback
in the classFluxMonitor
. I assume the name "RIVER" in above code comes from the lineRIV6 model.riv river
in the filetemp/model.nam
:that is generated by
flopy
.How do get a list of all
SIMVALS
?I would like to know what
SIMVALS
such asRIVER
are available for the use inmodlfowapi
. Can I get list of all names that I could use instead ofMYVARNAME
in the this code (extracted from above code):How can I do this? Ideally, I would like to get this list dynamically with Python during initialization, i.e. in the block below
callback_step == Callbacks.initialize
.What do the variables stand for?
I tried to get the constant head data during run time. From the line
CHD6 model.chd chd_0
in the filetemp/model.nam
I concluded that the name I can use to get a pointer to CHD values isCHD_0
. Therefore, I modified the code incallback
:The import lines are creating
self.sim_chd
:in the block
callback_step == Callbacks.initialize
and appending its values at each time step toself.chd
:in the block
callback_step == Callbacks.timestep_end
.The result are the fluxes with opposite sign, i.e.
self.chd == -self.flux
:So
SIMVALS
are always the flux, correct?fmon.flux
contains them at all river locations from the "river perspective" andfmon.chd
contains them at all CHD cells from from the "chd perspective". Due to the two-element model, one cell containing the river and other cell containing chd, both fluxes have the sam absolute values with opposite signs. Is this correct?The text was updated successfully, but these errors were encountered: