12 #include <util/point.h>
13 #include <util/utilIO.h>
56 std::vector<std::vector<double>>
d_J;
77 std::string
printStr(
int nt = 0,
int lvl = 0)
const {
80 std::ostringstream oss;
81 oss << tabS <<
"------- QuadData --------" << std::endl << std::endl;
82 oss << tabS <<
"Weight = " <<
d_w << std::endl;
83 oss << tabS <<
"Point = " <<
d_p.
printStr() << std::endl;
89 oss << tabS <<
"Det(J) = " <<
d_detJ << std::endl;
101 void print(
int nt = 0,
int lvl = 0)
const { std::cout <<
printStr(nt, lvl); };
Collection of methods and data related to finite element and mesh.
Definition: baseElem.h:15
std::string printStr(const std::vector< T > &list, int nt=0)
Concatenates the elements of the vector separated with a comma.
Definition: utilIO.h:40
std::string getTabS(int nt)
Generate a string contaning nt tabs.
Definition: utilIO.h:26
Collection of methods useful in simulation.
Definition: DataManager.h:50
A struct to store the quadrature data. List of data are.
Definition: quadData.h:21
std::vector< double > d_shapes
Value of shape functions at quad point p.
Definition: quadData.h:35
std::vector< std::vector< double > > d_derShapes
Value of derivative of shape functions at quad point p.
Definition: quadData.h:48
QuadData()
Constructor.
Definition: quadData.h:67
double d_w
Quadrature weight.
Definition: quadData.h:24
void print(int nt=0, int lvl=0) const
Prints the information.
Definition: quadData.h:101
std::vector< std::vector< double > > d_J
Jacobian of the map from reference element to the element.
Definition: quadData.h:56
util::Point3 d_p
Quadrature point in 1-d, 2-d or 3-d.
Definition: quadData.h:27
std::string printStr(int nt=0, int lvl=0) const
Prints the information.
Definition: quadData.h:77
double d_detJ
Determinant of the Jacobian of the map from reference element to the element.
Definition: quadData.h:62
A structure to represent 3d vectors.
Definition: point.h:29
std::string printStr(int nt=0, int lvl=0) const
Prints the information.
Definition: point.h:94