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

#include <mtop_integrators.hpp>

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

Public Member Functions

 DiffusionObjIntegrator ()
 
virtual real_t GetElementEnergy (const Array< const FiniteElement * > &el, ElementTransformation &Tr, const Array< const Vector * > &elfun) override
 Returns the objective contribution at element level.
 
virtual void AssembleElementVector (const Array< const FiniteElement * > &el, ElementTransformation &Tr, const Array< const Vector * > &elfun, const Array< Vector * > &elvec) override
 Returns the gradient of the objective contribution at element level.
 
- Public Member Functions inherited from mfem::BlockNonlinearFormIntegrator
virtual void AssembleFaceVector (const Array< const FiniteElement * > &el1, const Array< const FiniteElement * > &el2, FaceElementTransformations &Tr, const Array< const Vector * > &elfun, const Array< Vector * > &elvect)
 
virtual void AssembleElementGrad (const Array< const FiniteElement * > &el, ElementTransformation &Tr, const Array< const Vector * > &elfun, const Array2D< DenseMatrix * > &elmats)
 Assemble the local gradient matrix.
 
virtual void AssembleFaceGrad (const Array< const FiniteElement * > &el1, const Array< const FiniteElement * > &el2, FaceElementTransformations &Tr, const Array< const Vector * > &elfun, const Array2D< DenseMatrix * > &elmats)
 
virtual ~BlockNonlinearFormIntegrator ()
 

Detailed Description

Computes an example of nonlinear objective \(\int \rm{field}*\rm{field}*\rm{weight})\rm{d}\Omega_e\).

Definition at line 218 of file mtop_integrators.hpp.

Constructor & Destructor Documentation

◆ DiffusionObjIntegrator()

mfem::DiffusionObjIntegrator::DiffusionObjIntegrator ( )
inline

Definition at line 222 of file mtop_integrators.hpp.

Member Function Documentation

◆ AssembleElementVector()

void mfem::DiffusionObjIntegrator::AssembleElementVector ( const Array< const FiniteElement * > & el,
ElementTransformation & Tr,
const Array< const Vector * > & elfun,
const Array< Vector * > & elvec )
overridevirtual

Returns the gradient of the objective contribution at element level.

Reimplemented from mfem::BlockNonlinearFormIntegrator.

Definition at line 342 of file mtop_integrators.cpp.

◆ GetElementEnergy()

real_t mfem::DiffusionObjIntegrator::GetElementEnergy ( const Array< const FiniteElement * > & el,
ElementTransformation & Tr,
const Array< const Vector * > & elfun )
overridevirtual

Returns the objective contribution at element level.

Reimplemented from mfem::BlockNonlinearFormIntegrator.

Definition at line 298 of file mtop_integrators.cpp.


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