21 #include <MooNMD_Io.h>
22 #include <Constants.h>
41 Example2D(std::vector <DoubleFunct2D*> exact,
42 std::vector <BoundCondFunct2D*> bc,
43 std::vector <BoundValueFunct2D*> bd, CoeffFct2D *coeffs);
48 std::vector <DoubleFunct2D*> exact_solution;
50 std::vector <BoundCondFunct2D*> boundary_conditions;
52 std::vector <BoundValueFunct2D*> boundary_data;
54 CoeffFct2D *problem_coefficients;
59 const std::vector <DoubleFunct2D*> &
get_exact()
const
60 {
return exact_solution; }
62 DoubleFunct2D*
get_exact(
unsigned int i)
const
63 {
return exact_solution.at(i); }
65 BoundCondFunct2D** get_bc()
66 {
return &boundary_conditions[0]; }
68 BoundCondFunct2D* get_bc(
unsigned int i)
const
69 {
return boundary_conditions.at(i); }
71 BoundValueFunct2D** get_bd()
72 {
return &boundary_data[0]; }
74 BoundValueFunct2D* get_bd(
unsigned int i)
const
75 {
return boundary_data.at(i); }
77 CoeffFct2D* get_coeffs()
const
78 {
return problem_coefficients; }
81 #endif // __EXAMPLE2D__
Example2D()
default constructor
Definition: Example2D.C:3
const std::vector< DoubleFunct2D * > & get_exact() const
Definition: Example2D.h:59
store all functions needed to describe an example
Definition: Example2D.h:26