OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
stoke_flow_eq_3d.hpp
1 /*
2  * stoke_flow_eq_3d.hpp
3  *
4  * Created on: May 28, 2016
5  * Author: i-bird
6  */
7 
8 #ifndef OPENFPM_NUMERICS_SRC_EQUATIONS_STOKE_FLOW_EQ_3D_HPP_
9 #define OPENFPM_NUMERICS_SRC_EQUATIONS_STOKE_FLOW_EQ_3D_HPP_
10 
11 constexpr unsigned int x = 0;
12 constexpr unsigned int y = 1;
13 constexpr unsigned int z = 2;
14 
15 // Model the equations
16 
17 constexpr unsigned int v[] = {0,1,2};
18 constexpr unsigned int P = 3;
19 
23 typedef Field<P,lid_nn_3d> Prs;
24 
25 // Eq1 V_x
26 
27 typedef mul<eta,Lap<v_x,lid_nn_3d>,lid_nn_3d> eta_lap_vx;
28 typedef D<x,Prs,lid_nn_3d> p_x;
31 
32 // Eq2 V_y
33 
34 typedef mul<eta,Lap<v_y,lid_nn_3d>,lid_nn_3d> eta_lap_vy;
35 typedef D<y,Prs,lid_nn_3d> p_y;
38 
39 // Eq3 V_z
40 
41 typedef mul<eta,Lap<v_z,lid_nn_3d>,lid_nn_3d> eta_lap_vz;
42 typedef D<z,Prs,lid_nn_3d> p_z;
45 
46 // Eq4 Incompressibility
47 
52 
53 
54 // Directional Avg
57 
60 
63 
64 // Directional Avg
65 
68 
71 
74 
75 #define EQ_1 0
76 #define EQ_2 1
77 #define EQ_3 2
78 #define EQ_4 3
79 
80 
81 #endif /* OPENFPM_NUMERICS_SRC_EQUATIONS_STOKE_FLOW_EQ_3D_HPP_ */
Derivative second order on h (spacing)
Definition: Derivative.hpp:28
It ancapsulate the minus operation.
Definition: sum.hpp:141
Definition: eq.hpp:82
It model an expression expr1 * expr2.
Definition: mul.hpp:119
Average.
Definition: Average.hpp:26
It model an expression expr1 + ... exprn.
Definition: sum.hpp:92
Test structure used for several test.
Definition: Point_test.hpp:105