store all functions needed to describe an example More...
#include <Example2D.h>
Public Member Functions | |
Example2D (std::vector< DoubleFunct2D * > exact, std::vector< BoundCondFunct2D * > bc, std::vector< BoundValueFunct2D * > bd, CoeffFct2D *coeffs) | |
initialize your own example More... | |
const std::vector < DoubleFunct2D * > & | get_exact () const |
DoubleFunct2D * | get_exact (unsigned int i) const |
BoundCondFunct2D ** | get_bc () |
BoundCondFunct2D * | get_bc (unsigned int i) const |
BoundValueFunct2D ** | get_bd () |
BoundValueFunct2D * | get_bd (unsigned int i) const |
CoeffFct2D * | get_coeffs () const |
Protected Member Functions | |
Example2D () | |
default constructor More... | |
store all functions needed to describe an example
Mainly this stores the exact solution (if available), boundary condition, boundary data, and the coefficients of the pde. Note that you almost always want to create an object of a derived class, rather than of type Example2D itself.
Below we use std::vector in case there are multiple solution components (e.g. velocity components and pressure).
|
protected |
default constructor
This is used only by the classes derived from this class.
Example2D::Example2D | ( | std::vector< DoubleFunct2D * > | exact, |
std::vector< BoundCondFunct2D * > | bc, | ||
std::vector< BoundValueFunct2D * > | bd, | ||
CoeffFct2D * | coeffs | ||
) |
initialize your own example
Create an example with all vectors already defined.
|
inline |
getters