timflow.transient.linesink.River#
- class timflow.transient.linesink.River(model, x1=-1, y1=0, x2=1, y2=0, tsandh=[(0, 1)], res=0, wh='H', layers=0, label=None, addtomodel=True)#
Bases:
LineSinkBase,timflow.transient.equation.HeadEquationCreate a head-specified line-sink with optional width and resistance.
Inflow per unit length of line-sink is computed as:
\[\sigma = w(h_{aq} - h_{ls})/c\]where \(c\) is the resistance of the bottom of the line-sink, \(w\) is the width over which water enters the line-sink, \(h_{aq}\) is the head in the aquifer at the center of the line-sink, \(h_{ls}\) is the specified head inside the line-sink Note that all that matters is the conductance term \(w/c\) but both are specified separately
- Parameters:
model (Model object) – Model to which the element is added
x1 (scalar) – x-coordinate of fist point of line-sink
y1 (scalar) – y-coordinate of fist point of line-sink
x2 (scalar) – x-coordinate of second point of line-sink
y2 (scalar) – y-coordinate of second point of line-sink
tsandh (list or 2D array of (time, head) values or string) – if list or 2D array: pairs of time and head after that time if ‘fixed’: head is fixed (no change in head) during entire simulation
res (scalar (default is 0)) – resistance of line-sink
wh (scalar or str) – distance over which water enters line-sink if ‘H’: (default) distance is equal to the thickness of the aquifer layer (when flow comes mainly from one side) if ‘2H’: distance is twice the thickness of the aquifer layer (when flow comes from both sides) if scalar: the width of the stream that partially penetrates the aquifer layer
layers (scalar, list or array) – layer(s) in which element is placed if scalar: element is placed in this layer if list or array: element is placed in all these layers
label (str or None) – label of element
See also
Methods#
Initialize the element. |
|
Separate function so that this can be overloaded for other types. |
|
|
Can be called with only one x,y value. |
|
Can be called with only one x,y value. |
|
The head inside the line-sink. |
|
Plot the element. |
|
Returns complex array of size (ngvbc, naq, npval). |
|
Returns complex array of size (naq, npval). |
|
Returns complex array of size (naq, npval). |
|
Returns 2 complex arrays of size (ngvbc, naq, npval). |
|
Returns 2 complex arrays of size (naq, npval). |
|
Layers can be scalar, list, or array. |
|
Returns complex array of size (ngvbc, len(layers),npval). |
|
Returns complex array of size (len(layers), npval). |
|
Layers can be scalar, list, or array. |
|
Returns 2 complex array of size (ngvbc, len(layers), npval). |
|
Returns complex array of size (len(layers), npval). |
|
The discharge in each layer. |
|
The discharge in each layer. |
Function to run after a solution is completed. |
|
|
Matrix rows for head-specified conditions. |