Class for creation of a quadrature rule. More...
#include <quadRule.hh>


Public Member Functions | |
| const uint | count () const |
| Returns counter of changes. | |
| const std::string | integrationRule () const |
| Returns information on the settings of the quadrature rule. | |
| QuadratureRule * | operator() (const ushort p=1) const |
| Returns the quadrature rule, i.e. | |
| QuadRuleFactory (enum intRule type=GAUSS_JACOBI, uint constPoints=10, uint addPoints=2, bool constant=false) | |
| void | reset () |
| Set the standard type of integration. | |
| void | set (enum concepts::intRule rule, bool constant, uint points) |
| Sets the integration rule. | |
| enum intRule | type () const |
| Returns the integration type. | |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Private Attributes | |
| uint | addNumberOfPoints_ |
| Number of integration points to add to approximation order when varying number of integration points is requested. | |
| uint | cnt_ |
| Counter for changes. | |
| uint | constNumerOfPoints_ |
| Number of integration points to use when constant number is requested. | |
| enum intRule | integrationType_ |
| Default behaviour: integration rule Gauss Jacobi (highest order). | |
| bool | useConstantNumberOfPoints_ |
| Use constant number of integration points (true) or not (false). | |
Class for creation of a quadrature rule.
There is possiblity to specify a constant number of points or a number dependent from a maximal polynomial degree.
Definition at line 215 of file quadRule.hh.
| concepts::QuadRuleFactory::QuadRuleFactory | ( | enum intRule | type = GAUSS_JACOBI, |
| uint | constPoints = 10, |
||
| uint | addPoints = 2, |
||
| bool | constant = false |
||
| ) |
| const uint concepts::QuadRuleFactory::count | ( | ) | const [inline] |
Returns counter of changes.
Definition at line 240 of file quadRule.hh.
| virtual std::ostream& concepts::QuadRuleFactory::info | ( | std::ostream & | os | ) | const [protected, virtual] |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
| const std::string concepts::QuadRuleFactory::integrationRule | ( | ) | const |
Returns information on the settings of the quadrature rule.
| QuadratureRule* concepts::QuadRuleFactory::operator() | ( | const ushort | p = 1 | ) | const |
Returns the quadrature rule, i.e.
pre-computed abscissas and weights.
Created dynamically and has to be deleted by the user.
| p | maximal polynomial degree |
| void concepts::QuadRuleFactory::reset | ( | ) |
Set the standard type of integration.
| void concepts::QuadRuleFactory::set | ( | enum concepts::intRule | rule, |
| bool | constant, | ||
| uint | points | ||
| ) |
Sets the integration rule.
| rule | Type of integration |
| constant | Flag, true = constant number of points |
| points | Number of points, constant or to add |
| enum intRule concepts::QuadRuleFactory::type | ( | ) | const [inline] |
Returns the integration type.
Definition at line 246 of file quadRule.hh.
uint concepts::QuadRuleFactory::addNumberOfPoints_ [private] |
Number of integration points to add to approximation order when varying number of integration points is requested.
Default is 2.
Definition at line 263 of file quadRule.hh.
uint concepts::QuadRuleFactory::cnt_ [private] |
Counter for changes.
Definition at line 270 of file quadRule.hh.
uint concepts::QuadRuleFactory::constNumerOfPoints_ [private] |
Number of integration points to use when constant number is requested.
Default value is 10.
Definition at line 259 of file quadRule.hh.
enum intRule concepts::QuadRuleFactory::integrationType_ [private] |
Default behaviour: integration rule Gauss Jacobi (highest order).
The default value is 4 (Gauss Jacobi). Other possible values are 0 (Gauss Lobatto) for better graphics (connected elements). Use setIntegrationRule() to change it.
Definition at line 255 of file quadRule.hh.
bool concepts::QuadRuleFactory::useConstantNumberOfPoints_ [private] |
Use constant number of integration points (true) or not (false).
Default is false (ie. varying number of points).
Definition at line 267 of file quadRule.hh.