In [1]:
import numpy as np
import flopy
reload(flopy)
from flopy.modflow import *
from flopy.mt3d import *
In [2]:
nlay, nrow, ncol = 3, 10, 10
ml = Modflow("test")
dis = ModflowDis(ml,nlay=nlay, nrow=nrow, ncol=ncol)
for btn, sconc is passed as a normal util_3d-compatible argument, no need for the list anymore
In [3]:
mt = Mt3dms(modflowmodel=ml)
btn = Mt3dBtn(mt, sconc=1.0,ncomp=2)
or we pass in the sconc2 kwarg explicitly
In [4]:
mt = Mt3dms(modflowmodel=ml)
btn = Mt3dBtn(mt,sconc=1.0,ncomp=2,sconc2=1.5)
print btn.sconc[1].name_base
error raised for unrecognized kwargs
In [5]:
mt = Mt3dms(modflowmodel=ml)
btn = Mt3dBtn(mt,sconc=1.0,ncomp=2,sconc3=1.5)
same behavior for SSM
In [6]:
mt = Mt3dms(modflowmodel=ml)
btn = Mt3dBtn(mt,sconc=1.0,ncomp=2, mcomp=2, sconc2=1.5)
ssm = Mt3dSsm(mt,crch=1.0,crch2=1.0,cevt=0.5,cevt2=1.5)
print ssm.crch,ssm.cevt
DSP does not need multDiff flag for multi species. But in this case, arrays are by layer, not by layer, row, column.
In [7]:
dsp = Mt3dDsp(mt,dmcoef2=1.0)
If we set multiDiff to True, then there will be mcomp (not ncomp, according to mt3d supplemental guide) number of 3d dmcoef arrays.
In [8]:
dsp = Mt3dDsp(mt,dmcoef2=1.0,multiDiff=True)
print dsp.dmcoef
In [ ]: