Class documentation of Concepts

Loading...
Searching...
No Matches
concepts::QuadRuleFactoryTensor2d Class Reference

#include <quadRule.hh>

Inheritance diagram for concepts::QuadRuleFactoryTensor2d:
concepts::QuadRuleFactoryBase2d concepts::OutputOperator concepts::QuadRuleFactoryTensorDuffy2d

Public Member Functions

 QuadRuleFactoryTensor2d (enum intRule type=GAUSS_JACOBI, uint constPoints=10, uint addPoints=2, bool constant=false)
 
virtual QuadratureRule2doperator() (const concepts::QuadNd &cell, const ushort *p) const
 
virtual void setTensor (enum concepts::intRule rule, bool constant, uint points)
 
void reset ()
 Set the standard type of integration.
 
const uint count () const
 Returns counter of changes.
 
enum intRule type () const
 Returns the integration type.
 
virtual const std::string integrationRule () const
 Returns information on the settings of the quadrature rule.
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
 

Protected Attributes

enum intRule integrationType_
 
uint constNumerOfPoints_
 
uint addNumberOfPoints_
 
bool useConstantNumberOfPoints_
 
uint cnt_
 Counter for changes.
 

Detailed Description

This class is the same as QuadRuleFactory, but returning integration rules in 2d.

Definition at line 594 of file quadRule.hh.

Member Function Documentation

◆ count()

const uint concepts::QuadRuleFactoryTensor2d::count ( ) const
inline

Returns counter of changes.

Definition at line 615 of file quadRule.hh.

◆ info()

virtual std::ostream & concepts::QuadRuleFactoryTensor2d::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Reimplemented in concepts::QuadRuleFactoryTensorDuffy2d.

◆ integrationRule()

virtual const std::string concepts::QuadRuleFactoryTensor2d::integrationRule ( ) const
virtual

Returns information on the settings of the quadrature rule.

Implements concepts::QuadRuleFactoryBase2d.

Reimplemented in concepts::QuadRuleFactoryTensorDuffy2d.

◆ operator()()

virtual QuadratureRule2d * concepts::QuadRuleFactoryTensor2d::operator() ( const concepts::QuadNd cell,
const ushort p 
) const
virtual

Returns the quadrature rule, i.e. pre-computed abscissas and weights. Created dynamically and has to be deleted by the user.

Parameters
cellCell for which quadrature Rule should be returned.
pmaximal polynomial degree

Implements concepts::QuadRuleFactoryBase2d.

Reimplemented in concepts::QuadRuleFactoryTensorDuffy2d.

◆ setTensor()

virtual void concepts::QuadRuleFactoryTensor2d::setTensor ( enum concepts::intRule  rule,
bool  constant,
uint  points 
)
virtual

Sets the integration rule for cells with tensor rule

Parameters
ruleType of integration
constantFlag, true = constant number of points
pointsNumber of points, constant or to add

◆ type()

enum intRule concepts::QuadRuleFactoryTensor2d::type ( ) const
inline

Returns the integration type.

Definition at line 618 of file quadRule.hh.

Member Data Documentation

◆ addNumberOfPoints_

uint concepts::QuadRuleFactoryTensor2d::addNumberOfPoints_
protected

Number of integration points to add to approximation order when varying number of integration points is requested. Default is 2.

Definition at line 642 of file quadRule.hh.

◆ cnt_

uint concepts::QuadRuleFactoryTensor2d::cnt_
protected

Counter for changes.

Definition at line 649 of file quadRule.hh.

◆ constNumerOfPoints_

uint concepts::QuadRuleFactoryTensor2d::constNumerOfPoints_
protected

Number of integration points to use when constant number is requested. Default value is 10.

Definition at line 638 of file quadRule.hh.

◆ integrationType_

enum intRule concepts::QuadRuleFactoryTensor2d::integrationType_
protected

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 634 of file quadRule.hh.

◆ useConstantNumberOfPoints_

bool concepts::QuadRuleFactoryTensor2d::useConstantNumberOfPoints_
protected

Use constant number of integration points (true) or not (false). Default is false (ie. varying number of points).

Definition at line 646 of file quadRule.hh.


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