MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::MyEnergyFunctor< TDataType, TParamVector, TStateVector, state_size, param_size > Class Template Reference

#include <example.hpp>

Public Member Functions

TDataType operator() (TParamVector &vparam, TStateVector &uu)
 

Detailed Description

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

Defines template class (functor) for evaluating the energy of the p-Laplacian problem. The input parameters vparam are: vparam[0] - the p-Laplacian power, vparam[1] small value ensuring exciting of an unique solution, and vparam[2] - the distributed external input to the PDE. The template parameter TDataType will be replaced by the compiler with the appropriate AD type for automatic differentiation. The TParamVector represents the vector type used for the parameter vector, and TStateVector the vector type used for the state vector. The template parameters state_size and param_size provide information for the size of the state and the parameters vectors.

Definition at line 72 of file example.hpp.

Member Function Documentation

◆ operator()()

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

Returns the energy of a p-Laplacian for state field input provided in vector uu and parameters provided in vector vparam.

Definition at line 77 of file example.hpp.


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