| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * interface_sinus.hpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: 31.03.2011
|
|---|
| 5 | * Author: Julian Iseringhausen
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef INTERFACE_SINUS_HPP_
|
|---|
| 9 | #define INTERFACE_SINUS_HPP_
|
|---|
| 10 |
|
|---|
| 11 | #include "interface/interface.hpp"
|
|---|
| 12 |
|
|---|
| 13 | namespace VMG
|
|---|
| 14 | {
|
|---|
| 15 | class MGGrid;
|
|---|
| 16 | class MGMultigrid;
|
|---|
| 17 | }
|
|---|
| 18 |
|
|---|
| 19 | namespace VMGInterfaces
|
|---|
| 20 | {
|
|---|
| 21 |
|
|---|
| 22 | class InterfaceSinus : public VMG::Interface
|
|---|
| 23 | {
|
|---|
| 24 | public:
|
|---|
| 25 | InterfaceSinus(vmg_float sine_factor,
|
|---|
| 26 | VMG::Boundary boundary, int levelMin, int levelMax,
|
|---|
| 27 | vmg_float box_begin, vmg_float box_end,
|
|---|
| 28 | int coarseningSteps=0, double alpha=1.6) :
|
|---|
| 29 | VMG::Interface(boundary, levelMin, levelMax,
|
|---|
| 30 | box_begin, box_end, coarseningSteps, alpha),
|
|---|
| 31 | sine_factor(sine_factor)
|
|---|
| 32 | {}
|
|---|
| 33 |
|
|---|
| 34 | virtual ~InterfaceSinus() {}
|
|---|
| 35 |
|
|---|
| 36 | void ImportRightHandSide(VMG::Multigrid& multigrid);
|
|---|
| 37 | void ExportSolution(VMG::Grid& grid);
|
|---|
| 38 |
|
|---|
| 39 | private:
|
|---|
| 40 | vmg_float sine_factor;
|
|---|
| 41 | };
|
|---|
| 42 |
|
|---|
| 43 | }
|
|---|
| 44 |
|
|---|
| 45 | #endif /* INTERFACE_SINUS_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.