HybridADRSolver
Loading...
Searching...
No Matches
HybridADRSolver::Problems::ExactSolution< dim > Class Template Reference

Manufactured exact solution: \( u(\mathbf{x}) = \prod \sin(\pi x_i) \). More...

#include <problem_definition.h>

Inheritance diagram for HybridADRSolver::Problems::ExactSolution< dim >:
Collaboration diagram for HybridADRSolver::Problems::ExactSolution< dim >:

Public Member Functions

double value (const Point< dim > &p, const unsigned int) const override
 Evaluates the exact solution at point p.
Tensor< 1, dim > gradient (const Point< dim > &p, const unsigned int) const override
 Evaluates the gradient of the exact solution at point p.

Detailed Description

template<int dim>
class HybridADRSolver::Problems::ExactSolution< dim >

Manufactured exact solution: \( u(\mathbf{x}) = \prod \sin(\pi x_i) \).

This function is used to verify the solver accuracy. It satisfies homogeneous Dirichlet boundary conditions on the unit hypercube (except where we manually apply Neumann).

Member Function Documentation

◆ gradient()

template<int dim>
Tensor< 1, dim > HybridADRSolver::Problems::ExactSolution< dim >::gradient ( const Point< dim > & p,
const unsigned int  ) const
inlineoverride

Evaluates the gradient of the exact solution at point p.

◆ value()

template<int dim>
double HybridADRSolver::Problems::ExactSolution< dim >::value ( const Point< dim > & p,
const unsigned int  ) const
inlineoverride

Evaluates the exact solution at point p.

Parameters
pThe evaluation point.

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