timflow.transient.linesink1d.LineSink1DBase#
- class timflow.transient.linesink1d.LineSink1DBase(model, xls=0, tsandbc=[(0, 1)], res=0, wh='H', layers=0, type='', name='LineSink1DBase', label=None, aq=None, inhomelement=False)#
Bases:
timflow.transient.element.ElementLineSink1D Base Class.
All LineSink1D elements are derived from this class
- Parameters:
model (Model object) – Model to which the element is added
xls (float) – x-coordinate of the line sink
tsandbc (list of tuples) – list of tuples of the form (time, bc) for boundary conditions
res (float) – resistance of the line sink
wh (string or float) – wetted perimeter of the linesink, “H” for aquifer height, “2H” for 2x aquifer height (two-sided flow) or specify any float value
layers (int, array or list) – layer (int) or layers (list or array) in which line sink is located
type (string) – type of element, “g” for given, “v” for variable and “z” for zero.
name (string) – name of the element
label (string, optional) – label of the element
aq (Aquifer object) – aquifer in which the element is located
inhomelement (boolean) – set to True if element is part of an inhomogeneity
Methods#
Initialize the element. |
|
Separate function so that this can be overloaded for other types. |
|
|
Can be called with only one x value. |
|
Can be called with only one x,y value. |
|
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. |