MFEM  v4.6.0
Finite element discretization library
Public Member Functions | List of all members
mfem::MyResidualFunctor< TDataType, TParamVector, TStateVector, residual_size, state_size, param_size > Class Template Reference

#include <example.hpp>

Public Member Functions

void operator() (TParamVector &vparam, TStateVector &uu, TStateVector &rr)
 

Detailed Description

template<typename TDataType, typename TParamVector, typename TStateVector, int residual_size, int state_size, int param_size>
class mfem::MyResidualFunctor< TDataType, TParamVector, TStateVector, residual_size, state_size, param_size >

Example: Implementation of the residual evaluation for p-Laplacian problem. The residual is evaluated at the integration points for PDE parameters vparam and state fields (derivatives with respect to x,y,z and primal field) stored in vector uu.

Definition at line 30 of file example.hpp.

Member Function Documentation

◆ operator()()

template<typename TDataType , typename TParamVector , typename TStateVector , int residual_size, int state_size, int param_size>
void mfem::MyResidualFunctor< TDataType, TParamVector, TStateVector, residual_size, state_size, param_size >::operator() ( TParamVector &  vparam,
TStateVector &  uu,
TStateVector &  rr 
)
inline

The operator returns the first derivative of the energy with respect to all state variables. These are set in vector uu and consist of the derivatives with respect to x,y,z and the primal field. The derivative is stored in vector rr with length equal to the length of vector uu.

Definition at line 37 of file example.hpp.


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