#include <ElmDefs.h>
Inheritance diagram for ElmB2n1D::

Public Methods | |
| ElmB2n1D () | |
| ~ElmB2n1D () | |
| virtual void | geomtFunc (Vec(real) &N, const Ptv(real) &loc_pt) const |
| virtual void | dLocGeomtFunc (Mat(real) &dNloc, const Ptv(real) &loc_pt) const |
| virtual void | d2LocBasisFunc (ArrayGen(real) &d2Nloc, const Ptv(real) &loc_pt) const |
| virtual void | fillNodePath (MatSimplest(int) &nodes, bool vertices_only) |
NAME: ElmB2n1D - definition of 1D linear finite element
DESCRIPTION:
The class is derived from class "ElmTensorProd" and restricts the interpolation to be of order one and the number of space dimensions to equal one. That is, this is the standard 1D linear finite element with 2 nodes. Since the geometry and basis functions are hardcoded for this particular element, "geomtFunc" and "basisFunc" are more efficient than the corresponding functions in "ElmTensorProd1".
Most of the operations on this element type are defined through virtual functions or member functions of the base class "ElmDef." Some of the functions defined in base classes may be found reimplemented in this class in order to increase efficiency by taking advantage of the information on the interpolation order and the number of space dimensions.
|
|
The only constructor performs all the initialization. |
|
|
|
|
|
the second order derivatives in the local element coordinates of the functions defined by "basisFunc". Reimplemented from ElmTensorProd. Reimplemented in ElmBH2n1D, and ElmB2gn1bn1D. |
|
|
the derivatives in the local element coordinates of the functions defined by "geomtFunc." As for the "geomtFunc" and "basisFunc" functions the return array can be empty or have wrong dimension at input. The function will redimension the array properly. Reimplemented from ElmTensorProd. |
|
|
returns an array "nodes" such that side number "s" of the element passes through the nodes "nodes(s,j)" where "j" runs from 1 to the number of nodes on the given side. In case of varying number of nodes per side, the rest of the array row is padded with zeros. The delivered data will deal with local side number "i" in row "i" of "nodes". The orientation of each side is coordinated such that the array describes a counterclockwise traversal of the element boundary. If the flag "vertices_only" is "true", only vertex nodes are returned. Otherwise, non-vertex nodes located on a side (such as midnodes) will also contribute. Reimplemented from ElmDef. |
|
|
calculates the geometry functions on the element (see the description above). These functions are used for the isoparametric mapping associated with the element (these functions determine the geometric shape of the element in the global, physical coordinate system). Recall that the geometry functions are defined with respect to the local element coordinate system and the local node numbering of the element. The return array "N" can be empty (not ok) at input; the "geomtFunc" will redimension the array properly. The "N" array contains the values of the geometry functions at the evaluation point. The length of the "N" array equals the number of (geometry) nodes in the element, and the ordering of the entries in "N" follow the ordering of the local nodes Reimplemented from ElmTensorProd. |