MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::TPiecewiseConstCoefficient< complex_t > Class Template Reference

#include <tcoefficient.hpp>

Inheritance diagram for mfem::TPiecewiseConstCoefficient< complex_t >:
[legend]
Collaboration diagram for mfem::TPiecewiseConstCoefficient< complex_t >:
[legend]

Public Types

typedef complex_t complex_type
 

Public Member Functions

 TPiecewiseConstCoefficient (const Vector &constants)
 Note: in the input array index i corresponds to mesh attribute i+1.
 
template<typename T_result_t , typename c_layout_t , typename c_data_t >
MFEM_ALWAYS_INLINE void Eval (const T_result_t &T, const c_layout_t &l, c_data_t &c)
 

Static Public Attributes

static const bool uses_attributes = true
 
- Static Public Attributes inherited from mfem::TCoefficient
static const int rank = 0
 
static const bool is_const = false
 
static const bool uses_coordinates = false
 
static const bool uses_Jacobians = false
 
static const bool uses_attributes = false
 
static const bool uses_element_idxs = false
 

Protected Attributes

Vector constants
 

Detailed Description

template<typename complex_t = real_t>
class mfem::TPiecewiseConstCoefficient< complex_t >

Piecewise constant coefficient class. The subdomains where the coefficient is constant are given by the mesh attributes.

Definition at line 167 of file tcoefficient.hpp.

Member Typedef Documentation

◆ complex_type

template<typename complex_t = real_t>
typedef complex_t mfem::TPiecewiseConstCoefficient< complex_t >::complex_type

Definition at line 171 of file tcoefficient.hpp.

Constructor & Destructor Documentation

◆ TPiecewiseConstCoefficient()

template<typename complex_t = real_t>
mfem::TPiecewiseConstCoefficient< complex_t >::TPiecewiseConstCoefficient ( const Vector & constants)
inline

Note: in the input array index i corresponds to mesh attribute i+1.

Definition at line 178 of file tcoefficient.hpp.

Member Function Documentation

◆ Eval()

template<typename complex_t = real_t>
template<typename T_result_t , typename c_layout_t , typename c_data_t >
MFEM_ALWAYS_INLINE void mfem::TPiecewiseConstCoefficient< complex_t >::Eval ( const T_result_t & T,
const c_layout_t & l,
c_data_t & c )
inline

Definition at line 184 of file tcoefficient.hpp.

Member Data Documentation

◆ constants

template<typename complex_t = real_t>
Vector mfem::TPiecewiseConstCoefficient< complex_t >::constants
protected

Definition at line 174 of file tcoefficient.hpp.

◆ uses_attributes

template<typename complex_t = real_t>
const bool mfem::TPiecewiseConstCoefficient< complex_t >::uses_attributes = true
static

Definition at line 170 of file tcoefficient.hpp.


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