MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::DomainLFIntegrator Class Reference

Class for domain integration \( L(v) := (f, v) \). More...

#include <lininteg.hpp>

Inheritance diagram for mfem::DomainLFIntegrator:
[legend]
Collaboration diagram for mfem::DomainLFIntegrator:
[legend]

Public Member Functions

 DomainLFIntegrator (Coefficient &QF, int a=2, int b=0)
 Constructs a domain integrator with a given Coefficient.
 
 DomainLFIntegrator (Coefficient &QF, const IntegrationRule *ir)
 Constructs a domain integrator with a given Coefficient.
 
virtual bool SupportsDevice () const
 Method probing for assembly on device.
 
virtual void AssembleDevice (const FiniteElementSpace &fes, const Array< int > &markers, Vector &b)
 Method defining assembly on device.
 
virtual void AssembleRHSElementVect (const FiniteElement &el, ElementTransformation &Tr, Vector &elvect)
 
virtual void AssembleDeltaElementVect (const FiniteElement &fe, ElementTransformation &Trans, Vector &elvect)
 Assemble the delta coefficient at the IntegrationPoint set in Trans which is assumed to map to the delta coefficient center.
 
virtual void AssembleRHSElementVect (const FiniteElement &el, FaceElementTransformations &Tr, Vector &elvect)
 
virtual void AssembleRHSElementVect (const FiniteElement &el1, const FiniteElement &el2, FaceElementTransformations &Tr, Vector &elvect)
 
- Public Member Functions inherited from mfem::DeltaLFIntegrator
bool IsDelta () const
 Returns true if the derived class instance uses a delta coefficient.
 
void GetDeltaCenter (Vector &center)
 Returns the center of the delta coefficient.
 
- Public Member Functions inherited from mfem::LinearFormIntegrator
virtual void SetIntRule (const IntegrationRule *ir)
 
const IntegrationRuleGetIntRule ()
 
virtual ~LinearFormIntegrator ()
 

Additional Inherited Members

- Protected Member Functions inherited from mfem::DeltaLFIntegrator
 DeltaLFIntegrator (Coefficient &q, const IntegrationRule *ir=NULL)
 This constructor should be used by derived classes that use a scalar DeltaCoefficient.
 
 DeltaLFIntegrator (VectorCoefficient &vq, const IntegrationRule *ir=NULL)
 This constructor should be used by derived classes that use a VectorDeltaCoefficient.
 
- Protected Member Functions inherited from mfem::LinearFormIntegrator
 LinearFormIntegrator (const IntegrationRule *ir=NULL)
 
- Protected Attributes inherited from mfem::DeltaLFIntegrator
DeltaCoefficientdelta
 
VectorDeltaCoefficientvec_delta
 
- Protected Attributes inherited from mfem::LinearFormIntegrator
const IntegrationRuleIntRule
 

Detailed Description

Class for domain integration \( L(v) := (f, v) \).

Definition at line 108 of file lininteg.hpp.

Constructor & Destructor Documentation

◆ DomainLFIntegrator() [1/2]

mfem::DomainLFIntegrator::DomainLFIntegrator ( Coefficient & QF,
int a = 2,
int b = 0 )
inline

Constructs a domain integrator with a given Coefficient.

Definition at line 115 of file lininteg.hpp.

◆ DomainLFIntegrator() [2/2]

mfem::DomainLFIntegrator::DomainLFIntegrator ( Coefficient & QF,
const IntegrationRule * ir )
inline

Constructs a domain integrator with a given Coefficient.

Definition at line 121 of file lininteg.hpp.

Member Function Documentation

◆ AssembleDeltaElementVect()

void mfem::DomainLFIntegrator::AssembleDeltaElementVect ( const FiniteElement & fe,
ElementTransformation & Trans,
Vector & elvect )
virtual

Assemble the delta coefficient at the IntegrationPoint set in Trans which is assumed to map to the delta coefficient center.

Note
This method should be called for one mesh element only, including in parallel, even when the center of the delta coefficient is shared by multiple elements.

Implements mfem::DeltaLFIntegrator.

Definition at line 69 of file lininteg.cpp.

◆ AssembleDevice()

virtual void mfem::DomainLFIntegrator::AssembleDevice ( const FiniteElementSpace & fes,
const Array< int > & markers,
Vector & b )
virtual

Method defining assembly on device.

Reimplemented from mfem::LinearFormIntegrator.

◆ AssembleRHSElementVect() [1/3]

void mfem::DomainLFIntegrator::AssembleRHSElementVect ( const FiniteElement & el,
ElementTransformation & Tr,
Vector & elvect )
virtual

Given a particular Finite Element and a transformation (Tr) computes the element right hand side element vector, elvect.

Implements mfem::LinearFormIntegrator.

Definition at line 38 of file lininteg.cpp.

◆ AssembleRHSElementVect() [2/3]

void mfem::LinearFormIntegrator::AssembleRHSElementVect ( const FiniteElement & el,
FaceElementTransformations & Tr,
Vector & elvect )
virtual

Reimplemented from mfem::LinearFormIntegrator.

Definition at line 46 of file lininteg.cpp.

◆ AssembleRHSElementVect() [3/3]

void mfem::LinearFormIntegrator::AssembleRHSElementVect ( const FiniteElement & el1,
const FiniteElement & el2,
FaceElementTransformations & Tr,
Vector & elvect )
virtual

Reimplemented from mfem::LinearFormIntegrator.

Definition at line 49 of file lininteg.cpp.

◆ SupportsDevice()

virtual bool mfem::DomainLFIntegrator::SupportsDevice ( ) const
inlinevirtual

Method probing for assembly on device.

Reimplemented from mfem::LinearFormIntegrator.

Definition at line 124 of file lininteg.hpp.


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