-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathPoissonSource.h
More file actions
43 lines (34 loc) · 1.01 KB
/
PoissonSource.h
File metadata and controls
43 lines (34 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// $Id$
//==============================================================================
//!
//! \file PoissonSource.h
//!
//! \date Jan 29 2025
//!
//! \author Arne Morten Kvarving / SINTEF
//!
//! \brief Class for Poisson source function.
//!
//==============================================================================
#ifndef POISSON_SOURCE_H_
#define POISSON_SOURCE_H_
#include "Function.h"
class AnaSol;
class Poisson;
/*!
\brief Class that derives the Poisson source function from the analytic solution.
*/
class PoissonAnaSolSource : public RealFunc
{
public:
//! \brief Constructor for constant kappa
//! \param aSol Analytic solution to use
//! \param prob Reference to problem integrand (for material properties)
PoissonAnaSolSource(const AnaSol& aSol, const Poisson& prob);
protected:
//! \brief Evaluates the function.
double evaluate(const Vec3& X) const override;
const AnaSol& anaSol; //!< Reference to analytic solution
const Poisson& poisson; //!< Reference to integrand
};
#endif