timflow.transient.linedoublet1d.LineDoublet1DBase#
- class timflow.transient.linedoublet1d.LineDoublet1DBase(model, xld=0, tsandbc=[(0, 0)], res='imp', layers=0, type='', name='LineDoublet1DBase', label=None)#
Bases:
timflow.transient.element.ElementLineDoublet1D Base Class.
All LineDoublet1D elements are derived from this class
- Parameters:
model (Model object) – Model to which the element is added
xld (float) – x-coordinate of the line doublet
tsandbc (list of tuples) – list of tuples of the form (time, bc) for boundary conditions
res (float) – resistance of the line doublet
layers (int, array or list) – layer (int) or layers (list or array) in which line doublet 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
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 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. |