ParMooN
 All Classes Functions Variables Friends Pages
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Example2D Class Reference

store all functions needed to describe an example More...

#include <Example2D.h>

Inheritance diagram for Example2D:
Inheritance graph
[legend]

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
 

Public Attributes

std::vector< DoubleFunct2D * > exact_solution
 
std::vector< BoundCondFunct2D * > boundary_conditions
 
std::vector< BoundValueFunct2D * > boundary_data
 
CoeffFct2D * problem_coefficients
 

Protected Member Functions

 Example2D ()
 default constructor More...
 

Detailed Description

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).

Author
Ulrich Wilbrandt,
Date
13.03.15

Constructor & Destructor Documentation

Example2D::Example2D ( )
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.

Member Function Documentation

const std::vector<DoubleFunct2D*>& Example2D::get_exact ( ) const
inline

getters


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