| |
- methodsnm.fe.FE(abc.ABC)
-
- FE_2D
-
- TriangleFE
-
- P1Edge_Triangle_FE(TriangleFE, methodsnm.fe.Lagrange_FE)
- P1_Triangle_FE(TriangleFE, methodsnm.fe.Lagrange_FE)
- P2_Triangle_FE(TriangleFE, methodsnm.fe.Lagrange_FE)
- P3_Triangle_FE(TriangleFE, methodsnm.fe.Lagrange_FE)
class FE_2D(methodsnm.fe.FE) |
|
Abstract base class for finite elements in 2D.
It implements a derivative evaluation using numerical differentiation. |
|
- Method resolution order:
- FE_2D
- methodsnm.fe.FE
- abc.ABC
- builtins.object
Methods defined here:
- __init__(self)
- Initialize self. See help(type(self)) for accurate signature.
Data and other attributes defined here:
- __abstractmethods__ = frozenset()
- num_diff_warned = False
Methods inherited from methodsnm.fe.FE:
- evaluate(self, ip, deriv=False)
- Evaluates the (derivative of) finite element at given integration point(s).
Parameters:
ip (numpy.array): The integration point(s) at which to evaluate the finite element.
deriv (bool): Whether to evaluate the derivative of the finite element (or identity).
Returns:
numpy.array: The values of the finite element basis fcts. at the given integration point.
shape: (ndof) (for single ip)
or (dim, ndof) (for single ip and deriv = True)
or (len(ip), ndof) (for multiple ips)
or (len(ip), dim, ndof) (for multiple ips and deriv = True)
Data descriptors inherited from methodsnm.fe.FE:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
Data and other attributes inherited from methodsnm.fe.FE:
- dim = None
- eltype = None
- ndof = None
- order = None
|
class P1Edge_Triangle_FE(TriangleFE, methodsnm.fe.Lagrange_FE) |
|
This class represents a P1 triangle finite element. |
|
- Method resolution order:
- P1Edge_Triangle_FE
- TriangleFE
- FE_2D
- methodsnm.fe.Lagrange_FE
- methodsnm.fe.FE
- abc.ABC
- builtins.object
Methods defined here:
- __init__(self)
- Initialize self. See help(type(self)) for accurate signature.
- __str__(self)
- Return str(self).
Data and other attributes defined here:
- __abstractmethods__ = frozenset()
- ndof = 3
- order = 1
Data and other attributes inherited from FE_2D:
- num_diff_warned = False
Data and other attributes inherited from methodsnm.fe.Lagrange_FE:
- nodes = None
Methods inherited from methodsnm.fe.FE:
- evaluate(self, ip, deriv=False)
- Evaluates the (derivative of) finite element at given integration point(s).
Parameters:
ip (numpy.array): The integration point(s) at which to evaluate the finite element.
deriv (bool): Whether to evaluate the derivative of the finite element (or identity).
Returns:
numpy.array: The values of the finite element basis fcts. at the given integration point.
shape: (ndof) (for single ip)
or (dim, ndof) (for single ip and deriv = True)
or (len(ip), ndof) (for multiple ips)
or (len(ip), dim, ndof) (for multiple ips and deriv = True)
Data descriptors inherited from methodsnm.fe.FE:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
Data and other attributes inherited from methodsnm.fe.FE:
- dim = None
- eltype = None
|
class P1_Triangle_FE(TriangleFE, methodsnm.fe.Lagrange_FE) |
|
This class represents a P1 triangle finite element. |
|
- Method resolution order:
- P1_Triangle_FE
- TriangleFE
- FE_2D
- methodsnm.fe.Lagrange_FE
- methodsnm.fe.FE
- abc.ABC
- builtins.object
Methods defined here:
- __init__(self)
- Initialize self. See help(type(self)) for accurate signature.
- __str__(self)
- Return str(self).
Data and other attributes defined here:
- __abstractmethods__ = frozenset()
- ndof = 3
- order = 1
Data and other attributes inherited from FE_2D:
- num_diff_warned = False
Data and other attributes inherited from methodsnm.fe.Lagrange_FE:
- nodes = None
Methods inherited from methodsnm.fe.FE:
- evaluate(self, ip, deriv=False)
- Evaluates the (derivative of) finite element at given integration point(s).
Parameters:
ip (numpy.array): The integration point(s) at which to evaluate the finite element.
deriv (bool): Whether to evaluate the derivative of the finite element (or identity).
Returns:
numpy.array: The values of the finite element basis fcts. at the given integration point.
shape: (ndof) (for single ip)
or (dim, ndof) (for single ip and deriv = True)
or (len(ip), ndof) (for multiple ips)
or (len(ip), dim, ndof) (for multiple ips and deriv = True)
Data descriptors inherited from methodsnm.fe.FE:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
Data and other attributes inherited from methodsnm.fe.FE:
- dim = None
- eltype = None
|
class P2_Triangle_FE(TriangleFE, methodsnm.fe.Lagrange_FE) |
|
This class represents a P2 triangle (Lagrange) finite element. |
|
- Method resolution order:
- P2_Triangle_FE
- TriangleFE
- FE_2D
- methodsnm.fe.Lagrange_FE
- methodsnm.fe.FE
- abc.ABC
- builtins.object
Methods defined here:
- __init__(self)
- Initialize self. See help(type(self)) for accurate signature.
- __str__(self)
- Return str(self).
Data and other attributes defined here:
- __abstractmethods__ = frozenset()
- ndof = 6
- order = 2
Data and other attributes inherited from FE_2D:
- num_diff_warned = False
Data and other attributes inherited from methodsnm.fe.Lagrange_FE:
- nodes = None
Methods inherited from methodsnm.fe.FE:
- evaluate(self, ip, deriv=False)
- Evaluates the (derivative of) finite element at given integration point(s).
Parameters:
ip (numpy.array): The integration point(s) at which to evaluate the finite element.
deriv (bool): Whether to evaluate the derivative of the finite element (or identity).
Returns:
numpy.array: The values of the finite element basis fcts. at the given integration point.
shape: (ndof) (for single ip)
or (dim, ndof) (for single ip and deriv = True)
or (len(ip), ndof) (for multiple ips)
or (len(ip), dim, ndof) (for multiple ips and deriv = True)
Data descriptors inherited from methodsnm.fe.FE:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
Data and other attributes inherited from methodsnm.fe.FE:
- dim = None
- eltype = None
|
class P3_Triangle_FE(TriangleFE, methodsnm.fe.Lagrange_FE) |
|
This class represents a P3 triangle (Lagrange) finite element.
(first draft : Warning: we may want to change some things later on!) |
|
- Method resolution order:
- P3_Triangle_FE
- TriangleFE
- FE_2D
- methodsnm.fe.Lagrange_FE
- methodsnm.fe.FE
- abc.ABC
- builtins.object
Methods defined here:
- __init__(self)
- Initialize self. See help(type(self)) for accurate signature.
- __str__(self)
- Return str(self).
Data and other attributes defined here:
- __abstractmethods__ = frozenset()
- ndof = 10
- order = 3
Data and other attributes inherited from FE_2D:
- num_diff_warned = False
Data and other attributes inherited from methodsnm.fe.Lagrange_FE:
- nodes = None
Methods inherited from methodsnm.fe.FE:
- evaluate(self, ip, deriv=False)
- Evaluates the (derivative of) finite element at given integration point(s).
Parameters:
ip (numpy.array): The integration point(s) at which to evaluate the finite element.
deriv (bool): Whether to evaluate the derivative of the finite element (or identity).
Returns:
numpy.array: The values of the finite element basis fcts. at the given integration point.
shape: (ndof) (for single ip)
or (dim, ndof) (for single ip and deriv = True)
or (len(ip), ndof) (for multiple ips)
or (len(ip), dim, ndof) (for multiple ips and deriv = True)
Data descriptors inherited from methodsnm.fe.FE:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
Data and other attributes inherited from methodsnm.fe.FE:
- dim = None
- eltype = None
|
class TriangleFE(FE_2D) |
|
Abstract base class for finite elements on triangles. |
|
- Method resolution order:
- TriangleFE
- FE_2D
- methodsnm.fe.FE
- abc.ABC
- builtins.object
Methods defined here:
- __init__(self)
- Initialize self. See help(type(self)) for accurate signature.
Data and other attributes defined here:
- __abstractmethods__ = frozenset({'_evaluate_id'})
Data and other attributes inherited from FE_2D:
- num_diff_warned = False
Methods inherited from methodsnm.fe.FE:
- evaluate(self, ip, deriv=False)
- Evaluates the (derivative of) finite element at given integration point(s).
Parameters:
ip (numpy.array): The integration point(s) at which to evaluate the finite element.
deriv (bool): Whether to evaluate the derivative of the finite element (or identity).
Returns:
numpy.array: The values of the finite element basis fcts. at the given integration point.
shape: (ndof) (for single ip)
or (dim, ndof) (for single ip and deriv = True)
or (len(ip), ndof) (for multiple ips)
or (len(ip), dim, ndof) (for multiple ips and deriv = True)
Data descriptors inherited from methodsnm.fe.FE:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
Data and other attributes inherited from methodsnm.fe.FE:
- dim = None
- eltype = None
- ndof = None
- order = None
| |