OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
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 // Model the equations
12 
13 constexpr unsigned int v[] = {0,1,2};
14 constexpr unsigned int P = 3;
15 
19 typedef Field<P,lid_nn_3d> Prs;
20 
21 // Eq1 V_x
22 
23 typedef mul<eta,Lap<v_x,lid_nn_3d>,lid_nn_3d> eta_lap_vx;
24 typedef D<x,Prs,lid_nn_3d> p_x;
27 
28 // Eq2 V_y
29 
30 typedef mul<eta,Lap<v_y,lid_nn_3d>,lid_nn_3d> eta_lap_vy;
31 typedef D<y,Prs,lid_nn_3d> p_y;
34 
35 // Eq3 V_z
36 
37 typedef mul<eta,Lap<v_z,lid_nn_3d>,lid_nn_3d> eta_lap_vz;
38 typedef D<z,Prs,lid_nn_3d> p_z;
41 
42 // Eq4 Incompressibility
43 
48 
49 
50 // Directional Avg
53 
56 
59 
60 // Directional Avg
61 
64 
67 
70 
71 #define EQ_1 0
72 #define EQ_2 1
73 #define EQ_3 2
74 #define EQ_4 3
75 
76 
77 #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:81
It model an expression expr1 * expr2.
Definition: mul.hpp:119
Average.
Definition: Average.hpp:31
It model an expression expr1 + ... exprn.
Definition: sum.hpp:92
Test structure used for several test.
Definition: Point_test.hpp:105