-
|
I'm trying to create a simple Xsection model. I've read the docs on the subject, which seem to show two ways of doing so: (1) create a standard Model and add 1D infinite elements, or (2) use Xsection models. The examples with Xsection models show the use of multiple inhomogeneities, and if I'm not mistaking, setting up an Xsection model requires the use of at least 1 'inhomogeneity element' through either import timflow.steady as tfs
ml = tfs.ModelXsection(naq=1)
tfs.Xsection3D(ml,
x1=-500,
x2=500,
kaq=10.0,
z=[0, -20.0],
topboundary='conf',
N=0.0)
riv = tfs.River1D(ml, xls=0.0, hls=2.0)
rfs = tfs.Constant(ml, xr=-500, yr=0, hr=0.0)
ml.solve()which complains that Perhaps I am misunderstanding the correct use of Xsection models? timflow v0.1.0 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Currently, you should define Xsection elements spanning the x-axis from -infinity to infinity. E.g.: import numpy as np
import timflow.steady as tfs
ml = tfs.ModelXsection(naq=1)
tfs.Xsection3D(ml,
x1=-np.inf,
x2=500,
kaq=10.0,
z=[0, -20.0],
topboundary='conf',
N=0.0)
tfs.Xsection3D(ml,
x1=500,
x2=np.inf,
kaq=10.0,
z=[0, -20.0],
topboundary='conf',
N=0.0)
riv = tfs.River1D(ml, xls=0.0, hls=2.0)
rfs = tfs.Constant(ml, xr=-500, yr=0, hr=0.0)
ml.solve()This works, although I am not sure whether this is what you want to model. |
Beta Was this translation helpful? Give feedback.
See issue #39. Maybe in future versions it is not necessary anymore to span -inf to inf. But I agree it could be useful to clarify this in the documentation.