MFEM  v4.3.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
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 double GetElementEnergy (const Array< const FiniteElement * > &el, ElementTransformation &Tr, const Array< const Vector * > &elfun) override
 Returns the objective contribution at element level. More...
 
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. More...
 
- 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. More...
 
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

mfem::DiffusionObjIntegrator::DiffusionObjIntegrator ( )
inline

Definition at line 222 of file mtop_integrators.hpp.

Member Function Documentation

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.

double 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: