ttim.linedoublet1d#

Classes#

LineDoublet1DBase

LineDoublet1D Base Class.

LeakyLineDoublet1D

Leaky line doublet with specified resistance.

Module Contents#

class ttim.linedoublet1d.LineDoublet1DBase(model, xld=0, tsandbc=[(0, 0)], res='imp', layers=0, type='', name='LineDoublet1DBase', label=None)[source]#

Bases: ttim.element.Element

LineDoublet1D 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

tiny = 1e-08#
nparam#
xld#
__repr__()[source]#
initialize()[source]#

Initialize the element.

Initialization of terms that cannot be initialized before other elements or the aquifer is defined.

As we don’t want to require a certain order of entering elements, these terms are initialized when Model.solve is called The initialization class needs to be overloaded by all derived classes

setflowcoef()[source]#

Separate function so that this can be overloaded for other types.

potinf(x, y=0, aq=None)[source]#

Can be called with only one x value.

disvecinf(x, y=0, aq=None)[source]#

Can be called with only one x value.

abstractmethod changetrace(xyzt1, xyzt2, aq, layer, ltype, modellayer, direction, hstepmax)[source]#
plot(ax=None)[source]#

Plot the element.

class ttim.linedoublet1d.LeakyLineDoublet1D(model, xld=0, res='imp', layers=0, label=None)[source]#

Bases: LineDoublet1DBase, ttim.equation.LeakyWallEquation

Leaky line doublet with specified resistance.

Parameters:
  • model (Model object) – model to which the element is added

  • xld (float) – x-coordinate of the line doublet

  • 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

  • label (string or None (default: None)) – label of the element

nunknowns#
initialize()[source]#

Initialize the element.

Initialization of terms that cannot be initialized before other elements or the aquifer is defined.

As we don’t want to require a certain order of entering elements, these terms are initialized when Model.solve is called The initialization class needs to be overloaded by all derived classes