GridFunction

Represents a grid function belonging to some finite element space.

template <
  class FES,
  class Data>
class GridFunction;

Specializations

SpecializationDescription
FES, ::Vec
Full specialization
template <
  class FES>
class GridFunction<
  FES,
  ::Vec>;
Grid function specialization storing DOF coefficients in a PETSc vector (Vec).
FES, Math::Vector<…>
Full specialization
template <
  class FES>
class GridFunction<
  FES,
  Math::Vector< typename FormLanguage::Traits< FES >::ScalarType >> final;
Grid function storing its degrees of freedom in a dense Math::Vector over the space's scalar type (the standard local backend).
Template parameters
FES Type of finite element space

A GridFunction object represents a function whose values are known at the "grid points". These grid points are the node coordinates of the global degrees of freedom in the finite element space.

Interpolation

In general, the GridFunction class represents the global interpolation operator on the $ \mathcal{T}_h $ -based family of finite elements $ \{ K, P_K, \Sigma_K \}_{K \in \mathcal{T}_h } $ . More precisely, it defines the global interpolation operator $ \mathcal{I}_h : D(\mathcal{I}_h) \rightarrow V_h $ , where:

\[ D(\mathcal{I}_h) := \{ v \in V(\mathcal{T}_h) : \forall K \in \mathcal{T}_h, \: v|_K \in V(K) \} \: . \]