libMesh::QuadratureRules Namespace Reference

Functions

std::string name (const QuadratureType t)
 

Variables

const unsigned int num_rules = 5
 
const QuadratureType valid_elem_rules []
 
const unsigned int num_valid_elem_rules = 3
 

Detailed Description

A namespace for utility functions for quadrature rules.

Function Documentation

std::string libMesh::QuadratureRules::name ( const QuadratureType  t)

Returns a standard string representation for the specific quadrature rule.

Definition at line 31 of file quadrature_rules.C.

References libMesh::err, libMeshEnums::QGAUSS, libMeshEnums::QJACOBI_1_0, libMeshEnums::QJACOBI_2_0, libMeshEnums::QSIMPSON, and libMeshEnums::QTRAP.

32 {
33  std::string its_name;
34 
35  switch (q)
36  {
37 
38  case QGAUSS:
39  its_name = "Gauss-Legendre Quadrature";
40  break;
41 
42  case QJACOBI_1_0:
43  its_name = "Jacobi(1,0)-Gauss Quadrature";
44  break;
45 
46  case QJACOBI_2_0:
47  its_name = "Jacobi(2,0)-Gauss Quadrature";
48  break;
49 
50  case QSIMPSON:
51  its_name = "Simpson Rule";
52  break;
53 
54  case QTRAP:
55  its_name = "Trapezoidal Rule";
56  break;
57 
58 
59  default:
60  {
61  libMesh::err << "ERROR: Bad qt=" << q << std::endl;
62  libmesh_error();
63  }
64  }
65 
66  return its_name;
67 }

Variable Documentation

const unsigned int libMesh::QuadratureRules::num_rules = 5

The number of quadrature rules that are defined (INVALD_Q_RULE excluded). You might have to update this if you add a new one!

Definition at line 46 of file quadrature_rules.h.

const unsigned int libMesh::QuadratureRules::num_valid_elem_rules = 3

The number of valid quadrature rules for numerical integration over geometric entities.

Definition at line 61 of file quadrature_rules.h.

const QuadratureType libMesh::QuadratureRules::valid_elem_rules[]
Initial value:

The types of quadrature rules that may be used for numerical integration over geometric entities.

Definition at line 53 of file quadrature_rules.h.


Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:33 UTC

Hosted By:
SourceForge.net Logo