NLMech  0.1.0
fe::QuadData Struct Reference

A struct to store the quadrature data. List of data are. More...

#include <quadData.h>

Collaboration diagram for fe::QuadData:
Collaboration graph

Public Member Functions

void print (int nt=0, int lvl=0) const
 Prints the information. More...
 
std::string printStr (int nt=0, int lvl=0) const
 Prints the information. More...
 
 QuadData ()
 Constructor.
 

Data Fields

std::vector< std::vector< double > > d_derShapes
 Value of derivative of shape functions at quad point p. More...
 
double d_detJ
 Determinant of the Jacobian of the map from reference element to the element.
 
std::vector< std::vector< double > > d_J
 Jacobian of the map from reference element to the element. More...
 
util::Point3 d_p
 Quadrature point in 1-d, 2-d or 3-d.
 
std::vector< double > d_shapes
 Value of shape functions at quad point p. More...
 
double d_w
 Quadrature weight.
 

Detailed Description

A struct to store the quadrature data. List of data are.

Member Function Documentation

◆ print()

void fe::QuadData::print ( int  nt = 0,
int  lvl = 0 
) const
inline

Prints the information.

Parameters
ntNumber of tabs to append before printing
lvlInformation level (higher means more information)
Here is the call graph for this function:

◆ printStr()

std::string fe::QuadData::printStr ( int  nt = 0,
int  lvl = 0 
) const
inline

Prints the information.

Parameters
ntNumber of tabs to append before printing
lvlInformation level (higher means more information)
Returns
The resulting string

Referenced by print().

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ d_derShapes

std::vector<std::vector<double> > fe::QuadData::d_derShapes

Value of derivative of shape functions at quad point p.

Size will be the number of vertices the element has. E.g. for triangle element shapes will have three entries.

x-derivative of ith shape function is d_derShapes[i][0]

y-derivative of ith shape function is d_derShapes[i][1]

Referenced by fe::LineElem::init(), fe::QuadElem::init(), fe::TetElem::init(), fe::TriElem::init(), and printStr().

◆ d_J

std::vector<std::vector<double> > fe::QuadData::d_J

Jacobian of the map from reference element to the element.

In 1-d, size is 1, 2-d size is $ 2\times 2$, and in 3-d size is $ 3\times 3$.

Referenced by fe::LineElem::init(), fe::QuadElem::init(), fe::TetElem::init(), fe::TriElem::init(), and printStr().

◆ d_shapes

std::vector<double> fe::QuadData::d_shapes

Value of shape functions at quad point p.

Size will be the number of vertices the element has. E.g. for triangle element shapes will have three entries.

Referenced by fe::LineElem::init(), fe::QuadElem::init(), fe::TetElem::init(), fe::TriElem::init(), printStr(), and test::testTriElemTime().


The documentation for this struct was generated from the following file: