![]() |
NLMech
0.1.0
|
A class for mapping and quadrature related operations for bi-linear quadrangle element. More...
#include <quadElem.h>


Public Member Functions | |
| double | elemSize (const std::vector< util::Point3 > &nodes) override |
| Returns the area of element. More... | |
| std::vector< fe::QuadData > | getQuadDatas (const std::vector< util::Point3 > &nodes) override |
| Get vector of quadrature data. More... | |
| std::vector< fe::QuadData > | getQuadPoints (const std::vector< util::Point3 > &nodes) override |
| Get vector of quadrature data. More... | |
| void | print (int nt=0, int lvl=0) const |
| Prints the information about the instance of the object. More... | |
| std::string | printStr (int nt=0, int lvl=0) const |
| Returns the string containing information about the instance of the object. More... | |
| QuadElem (size_t order) | |
| Constructor for quadrangle element. More... | |
Public Member Functions inherited from fe::BaseElem | |
| BaseElem (size_t order, size_t element_type) | |
| Constructor. More... | |
| virtual std::vector< std::vector< double > > | getDerShapes (const util::Point3 &p, const std::vector< util::Point3 > &nodes) |
| Returns the values of derivative of shape function at point p. More... | |
| size_t | getElemType () |
| Get element type. More... | |
| size_t | getNumQuadPoints () |
| Get number of quadrature points in the data. More... | |
| size_t | getQuadOrder () |
| Get order of quadrature approximation. More... | |
| virtual std::vector< double > | getShapes (const util::Point3 &p, const std::vector< util::Point3 > &nodes) |
| Returns the values of shape function at point p. More... | |
| void | print (int nt=0, int lvl=0) const |
| Prints the information about the instance of the object. More... | |
| std::string | printStr (int nt=0, int lvl=0) const |
| Returns the string containing information about the instance of the object. More... | |
Private Member Functions | |
| std::vector< std::vector< double > > | getDerShapes (const util::Point3 &p) override |
| Returns the values of derivative of shape function at point p on reference element. More... | |
| double | getJacobian (const util::Point3 &p, const std::vector< util::Point3 > &nodes, std::vector< std::vector< double >> *J) override |
Computes the Jacobian of map . More... | |
| std::vector< double > | getShapes (const util::Point3 &p) override |
| Returns the values of shape function at point p on reference element. More... | |
| void | init () override |
| Compute the quadrature points for quadrangle element. | |
A class for mapping and quadrature related operations for bi-linear quadrangle element.
The reference quadrangle element
is given by vertices
.
are
are as follows
is given by
are vertices of element
.
is given by
|
explicit |
Constructor for quadrangle element.
| order | Order of quadrature point approximation |
|
overridevirtual |
Returns the area of element.
If quadrangle
is given by points
then the area is
where
are the x and y component of point
.
Note that area and Jacobian of map
are related as
where
and
is the Jacobian of map at point
.
| nodes | Vertices of element |
Implements fe::BaseElem.
|
overrideprivatevirtual |
Returns the values of derivative of shape function at point p on reference element.
| p | Location of point |
Implements fe::BaseElem.
|
overrideprivatevirtual |
Computes the Jacobian of map
.
| p | Location of point in reference element |
| nodes | Vertices of element |
| J | Matrix to store the Jacobian (if not nullptr) |
Implements fe::BaseElem.
|
overridevirtual |
Get vector of quadrature data.
Given element vertices, this method returns the list of quadrature point and essential quantities at quadrature points. Here, order of quadrature approximation is set in the constructor. List of data
Let
is the given element with vertices
and let
is the reference element.
, and then map the point on
to the point on
using the map
.
. Suppose
is the quadrature weight associated to quadrature point
, then the quadrature point
associated to the mapped point
is given by
is the determinant of the Jacobian
of map
.
is the value of
at point
.
associated to
at the quadrature point
using formula
associated to
, we use the relation between derivatives of shape function in
and
described in fe::TriElem::getDerShapes.| nodes | Vector of vertices of an element |
Implements fe::BaseElem.
|
overridevirtual |
Get vector of quadrature data.
Given element vertices, this method returns the list of quadrature point and essential quantities at quadrature points. Here, order of quadrature approximation is set in the constructor. List of data
This function is lite version of QuadElem::getQuadDatas.
| nodes | Vector of vertices of an element |
Implements fe::BaseElem.
|
overrideprivatevirtual |
Returns the values of shape function at point p on reference element.
| p | Location of point |
Implements fe::BaseElem.
|
inline |
Prints the information about the instance of the object.
| nt | Number of tabs to append before each line of string |
| lvl | Level of information sought (higher level means more information) |

| std::string fe::QuadElem::printStr | ( | int | nt = 0, |
| int | lvl = 0 |
||
| ) | const |
Returns the string containing information about the instance of the object.
| nt | Number of tabs to append before each line of string |
| lvl | Level of information sought (higher level means more information) |
Referenced by print().

