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 QuadratureRules::name | ( | const QuadratureType | t | ) |
Returns a standard string representation for the specific quadrature rule.
Definition at line 30 of file quadrature_rules.C.
References libMeshEnums::QGAUSS, libMeshEnums::QJACOBI_1_0, libMeshEnums::QJACOBI_2_0, libMeshEnums::QSIMPSON, and libMeshEnums::QTRAP.
Referenced by GetPot::__find_variable(), Utility::complex_filename(), Parameters::get(), ReferenceCounter::get_info(), XdrMGF::init(), SparseMatrix< Real >::print_matlab(), NumericVector< Real >::print_matlab(), PltLoader::read_header(), ReferenceCountedObject< SparseMatrix< T > >::ReferenceCountedObject(), VTKIO::solution_to_vtk(), Parameters::Parameter< T >::type(), TecplotIO::write_binary(), and ReferenceCountedObject< SparseMatrix< T > >::~ReferenceCountedObject().
00031 { 00032 std::string its_name; 00033 00034 switch (q) 00035 { 00036 00037 case QGAUSS: 00038 its_name = "Gauss-Legendre Quadrature"; 00039 break; 00040 00041 case QJACOBI_1_0: 00042 its_name = "Jacobi(1,0)-Gauss Quadrature"; 00043 break; 00044 00045 case QJACOBI_2_0: 00046 its_name = "Jacobi(2,0)-Gauss Quadrature"; 00047 break; 00048 00049 case QSIMPSON: 00050 its_name = "Simpson Rule"; 00051 break; 00052 00053 case QTRAP: 00054 its_name = "Trapezoidal Rule"; 00055 break; 00056 00057 00058 default: 00059 { 00060 std::cerr << "ERROR: Bad qt=" << q << std::endl; 00061 libmesh_error(); 00062 } 00063 } 00064 00065 return its_name; 00066 }
Variable Documentation
| const unsigned int 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 45 of file quadrature_rules.h.
| const unsigned int QuadratureRules::num_valid_elem_rules = 3 |
The number of valid quadrature rules for numerical integration over geometric entities.
Definition at line 60 of file quadrature_rules.h.
| const QuadratureType QuadratureRules::valid_elem_rules[] |
Initial value:
The types of quadrature rules that may be used for numerical integration over geometric entities.Definition at line 52 of file quadrature_rules.h.