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
16
typedef
Field<v[x],lid_nn_3d>
v_x
;
17
typedef
Field<v[y],lid_nn_3d>
v_y
;
18
typedef
Field<v[z],lid_nn_3d>
v_z
;
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
;
25
typedef
minus<p_x,lid_nn_3d>
m_p_x
;
26
typedef
sum<eta_lap_vx,m_p_x,lid_nn_3d>
vx_eq
;
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
;
32
typedef
minus<p_y,lid_nn_3d>
m_p_y
;
33
typedef
sum<eta_lap_vy,m_p_y,lid_nn_3d>
vy_eq
;
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
;
39
typedef
minus<p_z,lid_nn_3d>
m_p_z
;
40
typedef
sum<eta_lap_vz,m_p_z,lid_nn_3d>
vz_eq
;
41
42
// Eq4 Incompressibility
43
44
typedef
D<x,v_x,lid_nn_3d,FORWARD>
dx_vx
;
45
typedef
D<y,v_y,lid_nn_3d,FORWARD>
dy_vy
;
46
typedef
D<z,v_z,lid_nn_3d,FORWARD>
dz_vz
;
47
typedef
sum<dx_vx,dy_vy,dz_vz,lid_nn_3d>
ic_eq
;
48
49
50
// Directional Avg
51
typedef
Avg<x,v_y,lid_nn_3d>
avg_x_vy
;
52
typedef
Avg<z,v_y,lid_nn_3d>
avg_z_vy
;
53
54
typedef
Avg<y,v_x,lid_nn_3d>
avg_y_vx
;
55
typedef
Avg<z,v_x,lid_nn_3d>
avg_z_vx
;
56
57
typedef
Avg<y,v_z,lid_nn_3d>
avg_y_vz
;
58
typedef
Avg<x,v_z,lid_nn_3d>
avg_x_vz
;
59
60
// Directional Avg
61
62
typedef
Avg<x,v_y,lid_nn_3d,FORWARD>
avg_x_vy_f
;
63
typedef
Avg<z,v_y,lid_nn_3d,FORWARD>
avg_z_vy_f
;
64
65
typedef
Avg<y,v_x,lid_nn_3d,FORWARD>
avg_y_vx_f
;
66
typedef
Avg<z,v_x,lid_nn_3d,FORWARD>
avg_z_vx_f
;
67
68
typedef
Avg<y,v_z,lid_nn_3d,FORWARD>
avg_y_vz_f
;
69
typedef
Avg<x,v_z,lid_nn_3d,FORWARD>
avg_x_vz_f
;
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_ */
D
Derivative second order on h (spacing)
Definition:
Derivative.hpp:28
minus
It ancapsulate the minus operation.
Definition:
sum.hpp:141
Field
Definition:
eq.hpp:81
mul
It model an expression expr1 * expr2.
Definition:
mul.hpp:119
Avg
Average.
Definition:
Average.hpp:31
sum
It model an expression expr1 + ... exprn.
Definition:
sum.hpp:92
Point_test
Test structure used for several test.
Definition:
Point_test.hpp:105
openfpm_numerics
src
Equations
stoke_flow_eq_3d.hpp
Generated by
1.8.6