-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt v.0.3 to modify STEMMUS_SCOPE for MODFLOW coupling #226
Comments
Hi, I made a couple of changes and made a new branch (SSM_v.0.3.1), which are needed for the coupling as below:
Changes in the
The new function The new function Modifications in other functions:
|
The changes in this branch ((SSM_v.0.3.1) has been updated in the next branch (SSM_v.0.3.2) and approved by @yijianzeng and @SarahAlidoost |
Hi @SarahAlidoost, @BSchilperoort, @yijianzeng
In trying to adapt the code to calculate the groundwater recharge, I have uploaded a new branch and I have some questions
I have made two new functions (
findPhreaticSurface
andcalculateGroundwaterRecharge
).a- The
findPhreaticSurface
function finds the soil layer that includes the phreatic surface (saturated zone). The input to that function is a new variable calledSh
.Sh
is the soil matric potential (but from bottom to top, opposite of the variableh
, following as what was done in STEMMUS_MODFLOW (see here)b- The
calculateGroundwaterRecharge
function calculates the groundwater recharge. Here, I have some questions as follows:1- I need to call the
INBT
variable, which is calculated already in thecalculateBoundaryConditions
function (line 34). In the main time, I had calculated theINBT
again (lines 42-43), but I wonder if there is a way to call thatINBT
variable only without all inputs and outputs of the function?2- A similar issue as in point 1, I need the
QMT
variable from thecalculatesSoilWaterFluxes
function. When I use the lines 65-66, I received an error thatSAVE
andhh
variables are not definable. It is strange to me because in the function itself,SAVE
andhh
variables are not definable. How to call theQMT
variable then?3- Calculations of a new variable called
RTOP
are at lines 52-62, which is the sum ofQL
, andQV
. Those variables are calculated at theenergy/calcualteEnergyParameters
function (lines 62-73). However, the calculations in theenergy/calcualteEnergyParameters
function are over the whole soil profile (see here, while here in theRTOP
calculations, I need the variables at the saturated zone only, which is from theINBT
toNL
(so not from 1 toNL
). What is the best way to do so? Do I need to repeat all the calculations in thecalculateGroundwaterRecharge
function again?4- continue point 3, also something I noticed, QL is calculated for every soil layer (line 63), while Qv and Qa are only single values, how to sum them then?
5- My question in my last comment on the issue 211 is relevant. What does
QMT
mean?6- I need to import new variables (SY and SS) from MODFLOW (similar to line 137 and lines 147-148 in STEMMUS_MODFLOW). Will we do this in BMI or can i make an input for this two variables from txt files?
7- I add the two functions in the
soilmoisture
folder. Is that the best location or maybe can I create a new folder calledgroundwater
and maybe i can also move thereadGroundwaterSettings
to that new folder?I then need to call those two functions in the main script. As I understand from Lianyu, those two functions need to run only with the MODFLOW timestep. However, as we agreed we will not include the MODFLOW timestep in the main code and we will do this in the BMI, then I am not sure where in the code I should call these two functions exactly. I followed what Lianyu did in STEMMUS_MODFLOW and based on what I understood so far as follows:
a- The initialization phase (lines 244-252 and lines 259-260). That was the same as lines 227-234 of STEMMUS_MODFLOW code.
b- The update phase (lines 696-706). That was the same as lines 389-399 of STEMMUS_MODFLOW code.
h
,hh
andTheta_L
,Theta_LL
)The text was updated successfully, but these errors were encountered: