timflow.transient.linesink1d.LineSink1D#
- class timflow.transient.linesink1d.LineSink1D(model, xls=0, tsandq=[(0, 1)], res=0, wh='H', vres=0.0, wv=1.0, layers=0, label=None)#
Bases:
LineSink1DBase,timflow.transient.equation.MscreenEquationLinesink1D with a specified discharge.
- Parameters:
model (Model object) – model to which the element is added
x (float) – x-coordinate of the linesink
tsandq (list of tuples) – tuples of starting time and specific discharge after starting time
res (float) – resistance of the linesink
layers (int, array or list) – layer (int) or layers (list or array) in which linesink is located
label (string or None (default: None)) – label of the linesink
Examples
Example of an infinitely long linesink that pumps with a specific discharge of 100 between times 10 and 50, with a specific discharge of 20 between times 50 and 200, and zero specific discharge after time 200.
>>> LineSink1D(ml, tsandq=[(10, 100), (50, 20), (200, 0)])
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. |
|
|
Matrix rows for multi-screen conditions where total discharge is specified. |