Thanks for your reply.
I did check the output list of my simulation, it seems the river package is indeed included, e.g., there is 'RIV' included in the cell-by-cell budget file as:
>>cbc = fp.utils.CellBudgetFile(f"{modelws}/{modelname}.cbc")
>>rec_names = cbc.get_unique_record_names()
>>print(rec_names)
>>[b' STO-SS', b' FLOW-JA-FACE', b' DATA-SPDIS', b' RIV', b' GHB', b' RCHA']
I also checked the water mass in/out of the system at SP1. There is only water flows in from recharge, but not water loss to river and the two boundaries. But for the SP1 simulation, I follow exactly tutorial2 here:
https://flopy.readthedocs.io/en/3.3.5/_notebooks/tutorial02_mf.html, except I replaced the well by a river. My river model is built as:
#adding river
riv_row = [0,1,1,2,3,3,4,5,6,6,7,8,9]
riv_col = [4,4,5,5,5,6,6,6,6,7,7,7,7]
riv_len = delr #river length
riv_wdt = delc #river width
riv_bdp = 2. #riverbed depth
riv_bk = 5e-5 #hydraulic conductivity of river bed
riv_rbot = 4 #river bottom
riv_cond = riv_bk*riv_len*riv_wdt/riv_bdp #conductance of the riverbed material
#stress period 1
riv_sp1 = []
stage_sp1 = 10 #river head at stress period 1
for inum in range(len(riv_row)):
riv_sp1.append([0, riv_row[inum], riv_col[inum], stage_sp1, riv_cond, riv_rbot])
print("Adding ", len(riv_sp1), "Stages for stress period 1.")
#stress period 2
riv_sp2 = []
stage_sp2 = 10 #river head at stress period 2
for inum in range(len(riv_row)):
riv_sp2.append([0, riv_row[inum], riv_col[inum], stage_sp2, riv_cond, riv_rbot])
print("Adding ", len(riv_sp2), "Stages for stress period 2.")
stress_period_data = {0: riv_sp1, 1: riv_sp2}
#create river obj
riv = fp.mf6.ModflowGwfriv(gwf,
stress_period_data = stress_period_data)
I'm so sorry for showing directly the code but really I cannot see any bug here myself...
Would be really appreciated if I can hear you back.