Skip to content
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

add rechargeTemp to BMI variables #257

Merged
merged 10 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified run_model_on_snellius/exe/STEMMUS_SCOPE
Binary file not shown.
5 changes: 5 additions & 0 deletions src/+groundwater/calculateGroundwaterRecharge.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ gwfluxes structure that includes the outputs (groundwater recharg
indxRchrg index of the soil layer where the recharge is calculated
recharge groundwater recharge, which is the upper boundary flux of the top layer of the phreatic aquifer (after the correction of the specific yield)
recharge_init upper boundary flux into the moving balancing domain (before the correction of the specific yield)
rechargeTemp temperature of the groundwater recharge
SS specific storage of MODFLOW aquifers
SY large-scale specific yield of the phreatic aquifer
sy small-scale specific yield (dynamically changing water yield) caused by fluctuation of the water table
Expand Down Expand Up @@ -97,6 +98,10 @@ soilThick cumulative soil layers thickness (from top to bottom)
gwfluxes.recharge = 0;
end

% Get rechrage temperature
TT_flip(1:1:ModelSettings.NN) = SoilVariables.TT(ModelSettings.NN:-1:1);
gwfluxes.rechargeTemp = TT_flip(indxRchrg);

SarahAlidoost marked this conversation as resolved.
Show resolved Hide resolved
% check 1
diff = abs(GroundwaterSettings.indxBotmLayer_R - indxRchrg);
if diff > 1
Expand Down
3 changes: 3 additions & 0 deletions src/STEMMUS_SCOPE.m
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@
if isnan(GroundwaterSettings.tempBotm)
GroundwaterSettings.tempBotm = SoilVariables.TT(GroundwaterSettings.indxBotmLayer);
end

% Initialize groundwater recharge temperature
gwfluxes.rechargeTemp = 0;
SarahAlidoost marked this conversation as resolved.
Show resolved Hide resolved
end

% Will do one timestep in "update mode", and run until the end if in "full run" mode.
Expand Down
Loading