Dendro  5.01
Dendro in Greek language means tree. The Dendro library is a large scale (262K cores on ORNL's Titan) distributed memory adaptive octree framework. The main goal of Dendro is to perform large scale multiphysics simulations efficeiently in mordern supercomputers. Dendro consists of efficient parallel data structures and algorithms to perform variational ( finite element) methods and finite difference mthods on 2:1 balanced arbitary adaptive octrees which enables the users to perform simulations raning from black holes (binary black hole mergers) to blood flow in human body, where applications ranging from relativity, astrophysics to biomedical engineering.
fdCoefficient.h
1 //
2 // Created by milinda on 1/30/17.
3 //
4 
13 #ifndef SFCSORTBENCH_FDCOEFFICIENT_H
14 #define SFCSORTBENCH_FDCOEFFICIENT_H
15 
16 namespace fd {
17 //centered differencing,
18 
20  static double D1_ORDER_2_CENTERED[3] = {0.5, 0, 0.5};
21 
23  static double D1_ORDER_4_CENTERED[5] = {1.0 / 12.0, -2.0 / 3.0, 0, 2.0 / 3.0, -1.0 / 12.0};
24 
26  static double D1_ORDER_6_CENTERED[7] = {-1.0 / 60.0, 3.0 / 20.0, -3.0 / 4.0, 0, 3.0 / 4.0, -3.0 / 20.0, 1.0 / 60.0};
27 
29  static double D1_ORDER_8_CENTERED[9] = {1.0 / 280.0, -4.0 / 105.0, 1.0 / 5.0, -4.0 / 5.0, 0, 4.0 / 5.0, -1.0 / 5.0,
30  4.0 / 105.0, -1 / 280.0};
31 
32 
34  static double D2_ORDER_4_CENTERED[5] = {-1.0 / 12.0, 4.0 / 3.0, -5.0 / 2.0, 4.0 / 3.0, -1.0 / 12.0};
35 
36 
37 
38 // forward differencing
40  static double D1_ORDER_4_FORWARD[5] = {-25.0 / 12.0, 4.0, -3.0, 4.0 / 3.0, -1.0 / 4.0};
42  static double D1_ORDER_4_UPWIND[5]={-3.0/12.0,-10.0/12.0,18.0/12.0,-6.0/12.0,1.0/12.0};
44  static double D2_ORDER_4_FORWARD[6] = {15.0 / 4.0, -77.0 / 6.0, 107.0 / 6.0, -13.0, 61.0 / 12.0, -5.0 / 6.0};
45 
46 
47 //backward differencing
49  static double D1_ORDER_4_BACKWARD[5] = {1.0 / 4.0, -4.0 / 3.0 , 3.0 , -4.0, 25.0 / 12.0};
51  static double D1_ORDER_4_DOWNWIND[5]={-1.0/12.0,6.0/12.0,-18.0/12.0,10.0/12.0,3.0/12.0};
52 
54  static double D2_ORDER_4_BACKWARD[6] = {15.0 / 4.0, -77.0 / 6.0, 107.0 / 6.0, -13.0, 61.0 / 12.0, -5.0 / 6.0};
55 
56 } // end namespace fd
57 
58 #endif //SFCSORTBENCH_FDCOEFFICIENT_H
This file contains coefficients for finite difference computations.
Definition: fdCoefficient.h:16