source: src/samples/discretization_poisson_fd.hpp@ 4571da

Last change on this file since 4571da was 4571da, checked in by Julian Iseringhausen <isering@…>, 14 years ago

vmg: Implement fourth-order discretization of the Poisson equation.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1762 5161e1c8-67bf-11de-9fd5-51895aff932f

  • Property mode set to 100644
File size: 708 bytes
Line 
1/**
2 * @file discretization_poisson_fd.hpp
3 * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
4 * @date Mon Apr 18 13:01:40 2011
5 *
6 * @brief Finite difference discretization of the
7 * Poisson equation.
8 *
9 */
10
11#ifndef DISCRETIZATION_POISSON_FD_HPP_
12#define DISCRETIZATION_POISSON_FD_HPP_
13
14#include "base/discretization.hpp"
15#include "base/helper.hpp"
16
17namespace VMG
18{
19
20class DiscretizationPoissonFD : public Discretization
21{
22public:
23 DiscretizationPoissonFD(const int& order);
24
25 vmg_float OperatorPrefactor(const Grid& grid) const
26 {
27 return 1.0 / Helper::pow_2(grid.Extent().MeshWidth().Max());
28 }
29
30 void ModifyRightHandSide();
31};
32
33}
34
35#endif /* DISCRETIZATION_POISSON_FD_HPP_ */
Note: See TracBrowser for help on using the repository browser.