hp2D::Identity< F > Class Template Referenceabstract
A function class to calculate element matrices for the mass matrix. More...
#include <bf_identity.hh>
Public Member Functions | |
virtual Identity< F > * | clone () const |
Virtual constructor. More... | |
virtual BilinearForm * | clone () const=0 |
Virtual constructor. More... | |
concepts::RCP< concepts::SharedJacobianDet > | data () const |
Gets the pointer to the shared data. More... | |
void | data (const concepts::RCP< concepts::SharedJacobianDet > d) |
Set the pointer to the shared data. More... | |
const concepts::ElementFormulaContainer< Real > | formula () const |
Identity (const concepts::ElementFormulaContainer< F > frm=concepts::ElementFormulaContainer< F >(), bool all=false) | |
Constructor. More... | |
void | operator() (const concepts::Element< Real > &elmX, const concepts::Element< Real > &elmY, concepts::ElementMatrix< F > &em) const |
virtual void | operator() (const Element< Real > &elmX, const Element< Real > &elmY, ElementMatrix< Real > &em) const=0 |
Evaluates the bilinear form for all shape functions on elmX and elmY and stores the result in the matrix em . More... | |
virtual void | operator() (const Element< Real > &elmX, const Element< Real > &elmY, ElementMatrix< Real > &em, const ElementPair< Real > &ep) const |
Evaluates the bilinear form for all shape functions on elmX and elmY and stores the result in the matrix em . More... | |
virtual | ~Identity () |
Protected Member Functions | |
void | computeIntermediate_ (const BaseQuad< concepts::Real > &elm) const |
Compute the intermediate data for element matrix computation. More... | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Protected Attributes | |
concepts::ElementFormulaContainer< Real > | frm_ |
ElementFormula. More... | |
concepts::Array< Real > | intermediateValue_ |
Intermediate value (on each quadrature point) More... | |
concepts::RCP< concepts::SharedJacobianDet > | sharedData_ |
Shared data for vectorial bilinear forms. More... | |
Private Member Functions | |
bool | operator() (const InfiniteLaguerreQuad *elmX, const InfiniteLaguerreQuad *elmY, concepts::ElementMatrix< F > &em) const |
Assembling for hp2D::InfiniteLaguerreQuad. More... | |
bool | operator() (const Quad< Real > *elmX, const Quad< Real > *elmY, concepts::ElementMatrix< F > &em) const |
Assembling for hp2D::Quad. More... | |
Private Attributes | |
bool | all_ |
For SumFactorization: More... | |
concepts::ElementMatrix< Real > | mass1D_ |
Local 1D mass matrix for Karniadakis basis. More... | |
Detailed Description
template<class F = Real>
class hp2D::Identity< F >
A function class to calculate element matrices for the mass matrix.
- Examples
- BGT_0.cc, exactDtN.cc, howToGetStarted.cc, hpFEM2d.cc, inhomDirichletBCs.cc, inhomDirichletBCsLagrange.cc, inhomNeumannBCs.cc, parallelizationTutorial.cc, and RobinBCs.cc.
Definition at line 57 of file bf_identity.hh.
Constructor & Destructor Documentation
◆ Identity()
hp2D::Identity< F >::Identity | ( | const concepts::ElementFormulaContainer< F > | frm = concepts::ElementFormulaContainer< F >() , |
bool | all = false |
||
) |
Constructor.
◆ ~Identity()
|
virtual |
Member Function Documentation
◆ clone() [1/2]
|
virtual |
Virtual constructor.
Returns a pointer to a copy of itself. The caller is responsible to destroy this copy.
Implements concepts::Cloneable.
◆ clone() [2/2]
|
pure virtualinherited |
Virtual constructor.
Returns a pointer to a copy of itself. The caller is responsible to destroy this copy.
◆ computeIntermediate_()
|
protectedinherited |
Compute the intermediate data for element matrix computation.
This method is important for the derivated linear forms.
◆ data() [1/2]
|
inherited |
Gets the pointer to the shared data.
◆ data() [2/2]
|
inherited |
Set the pointer to the shared data.
◆ formula()
|
inlineinherited |
Definition at line 57 of file bilinearFormHelper.hh.
◆ info()
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::BilinearForm< Real, Real >.
◆ operator()() [1/5]
void hp2D::Identity< F >::operator() | ( | const concepts::Element< Real > & | elmX, |
const concepts::Element< Real > & | elmY, | ||
concepts::ElementMatrix< F > & | em | ||
) | const |
◆ operator()() [2/5]
|
pure virtualinherited |
Evaluates the bilinear form for all shape functions on elmX
and elmY
and stores the result in the matrix em
.
- Postcondition
- The returned matrix
em
has the correct size.
- Parameters
-
elmX Left element (test functions) elmY Right element (trial functions) em Return element matrix
◆ operator()() [3/5]
|
inlinevirtualinherited |
Evaluates the bilinear form for all shape functions on elmX
and elmY
and stores the result in the matrix em
.
If this method is not reimplemented in a derived class, the default behaviour is to call the application operator without ep
.
- Postcondition
- The returned matrix
em
has the correct size.
- Parameters
-
elmX Left element elmY Right element em Return element matrix ep Element pair holding more information on the pair elmX
andelmY
Definition at line 57 of file bilinearForm.hh.
◆ operator()() [4/5]
|
private |
Assembling for hp2D::InfiniteLaguerreQuad.
◆ operator()() [5/5]
|
private |
Assembling for hp2D::Quad.
Member Data Documentation
◆ all_
|
private |
For SumFactorization:
Definition at line 76 of file bf_identity.hh.
◆ frm_
|
protectedinherited |
ElementFormula.
Definition at line 77 of file linearFormHelper.hh.
◆ intermediateValue_
|
mutableprotectedinherited |
◆ mass1D_
|
private |
Local 1D mass matrix for Karniadakis basis.
Definition at line 74 of file bf_identity.hh.
◆ sharedData_
|
protectedinherited |
Shared data for vectorial bilinear forms.
Definition at line 79 of file linearFormHelper.hh.
The documentation for this class was generated from the following file:
- hp2D/bf_identity.hh