ttim.element#
Classes#
Helper class that provides a standard way to create an ABC using |
Module Contents#
- class ttim.element.Element(model, nparam=1, nunknowns=0, layers=0, tsandbc=[(0, 0)], type='z', name='', label=None, inhomelement=False)[source]#
Bases:
abc.ABCHelper class that provides a standard way to create an ABC using inheritance.
- model#
- aq = None#
- nparam = 1#
- nunknowns = 0#
- layers#
- nlayers#
- inhomelement = False#
- type = 'z'#
- name = ''#
- label = None#
- rzero = 30#
- abstractmethod 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
- unitpotential(x, y, aq=None)[source]#
Returns complex array of size (naq, npval).
Can be more efficient for given elements.
- unitpotentialone(x, y, jtime, aq=None)[source]#
Returns complex array of size (naq, npval).
Can be more efficient for given elements.
- abstractmethod disvecinf(x, y, aq=None)[source]#
Returns 2 complex arrays of size (nparam, naq, npval).
- unitdisvec(x, y, aq=None)[source]#
Returns 2 complex arrays of size (naq, npval).
Can be more efficient for given elements.
- potinflayers(x, y, layers=0, aq=None)[source]#
Layers can be scalar, list, or array.
returns array of size (len(layers),nparam,npval) only used in building equations
- potentiallayers(x, y, layers=0, aq=None)[source]#
Returns complex array of size (ngvbc, len(layers),npval).
Only used in building equations.
- unitpotentiallayers(x, y, layers=0, aq=None)[source]#
Returns complex array of size (len(layers), npval).
Only used in building equations.
- disvecinflayers(x, y, layers=0, aq=None)[source]#
Layers can be scalar, list, or array.
returns 2 arrays of size (len(layers),nparam,npval) only used in building equations
- disveclayers(x, y, layers=0, aq=None)[source]#
Returns 2 complex array of size (ngvbc, len(layers), npval).
Only used in building equations.
- unitdisveclayers(x, y, layers=0, aq=None)[source]#
Returns complex array of size (len(layers), npval).
Only used in building equations.