OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
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
11constexpr unsigned int x = 0;
12constexpr unsigned int y = 1;
13constexpr unsigned int z = 2;
14
15// Model the equations
16
17constexpr unsigned int v[] = {0,1,2};
18constexpr unsigned int P = 3;
19
24
25// Eq1 V_x
26
27typedef mul<eta,Lap<v_x,lid_nn_3d>,lid_nn_3d> eta_lap_vx;
31
32// Eq2 V_y
33
34typedef mul<eta,Lap<v_y,lid_nn_3d>,lid_nn_3d> eta_lap_vy;
38
39// Eq3 V_z
40
41typedef mul<eta,Lap<v_z,lid_nn_3d>,lid_nn_3d> eta_lap_vz;
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_ */
Average.
Definition Average.hpp:27
Derivative second order on h (spacing)
Definition eq.hpp:83
Test structure used for several test.
It ancapsulate the minus operation.
Definition sum.hpp:142
It model an expression expr1 * expr2.
Definition mul.hpp:120
It model an expression expr1 + ... exprn.
Definition sum.hpp:93