Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_numerics
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
argupta
openfpm_numerics
Commits
a0ce791f
Commit
a0ce791f
authored
Jun 02, 2016
by
Pietro Incardona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding missing files
parent
6b60d554
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
78 additions
and
0 deletions
+78
-0
src/Equations/stoke_flow_eq_3d.hpp
src/Equations/stoke_flow_eq_3d.hpp
+78
-0
No files found.
src/Equations/stoke_flow_eq_3d.hpp
0 → 100644
View file @
a0ce791f
/*
* stoke_flow_eq_3d.hpp
*
* Created on: May 28, 2016
* Author: i-bird
*/
#ifndef OPENFPM_NUMERICS_SRC_EQUATIONS_STOKE_FLOW_EQ_3D_HPP_
#define OPENFPM_NUMERICS_SRC_EQUATIONS_STOKE_FLOW_EQ_3D_HPP_
// Model the equations
constexpr
unsigned
int
v
[]
=
{
0
,
1
,
2
};
constexpr
unsigned
int
P
=
3
;
constexpr
unsigned
int
ic
=
3
;
typedef
Field
<
v
[
x
],
lid_nn_3d
>
v_x
;
typedef
Field
<
v
[
y
],
lid_nn_3d
>
v_y
;
typedef
Field
<
v
[
z
],
lid_nn_3d
>
v_z
;
typedef
Field
<
P
,
lid_nn_3d
>
Prs
;
// Eq1 V_x
typedef
mul
<
eta
,
Lap
<
v_x
,
lid_nn_3d
>
,
lid_nn_3d
>
eta_lap_vx
;
typedef
D
<
x
,
Prs
,
lid_nn_3d
>
p_x
;
typedef
minus
<
p_x
,
lid_nn_3d
>
m_p_x
;
typedef
sum
<
eta_lap_vx
,
m_p_x
,
lid_nn_3d
>
vx_eq
;
// Eq2 V_y
typedef
mul
<
eta
,
Lap
<
v_y
,
lid_nn_3d
>
,
lid_nn_3d
>
eta_lap_vy
;
typedef
D
<
y
,
Prs
,
lid_nn_3d
>
p_y
;
typedef
minus
<
p_y
,
lid_nn_3d
>
m_p_y
;
typedef
sum
<
eta_lap_vy
,
m_p_y
,
lid_nn_3d
>
vy_eq
;
// Eq3 V_z
typedef
mul
<
eta
,
Lap
<
v_z
,
lid_nn_3d
>
,
lid_nn_3d
>
eta_lap_vz
;
typedef
D
<
z
,
Prs
,
lid_nn_3d
>
p_z
;
typedef
minus
<
p_z
,
lid_nn_3d
>
m_p_z
;
typedef
sum
<
eta_lap_vz
,
m_p_z
,
lid_nn_3d
>
vz_eq
;
// Eq4 Incompressibility
typedef
D
<
x
,
v_x
,
lid_nn_3d
,
FORWARD
>
dx_vx
;
typedef
D
<
y
,
v_y
,
lid_nn_3d
,
FORWARD
>
dy_vy
;
typedef
D
<
z
,
v_z
,
lid_nn_3d
,
FORWARD
>
dz_vz
;
typedef
sum
<
dx_vx
,
dy_vy
,
dz_vz
,
lid_nn_3d
>
ic_eq
;
// Directional Avg
typedef
Avg
<
x
,
v_y
,
lid_nn_3d
>
avg_x_vy
;
typedef
Avg
<
z
,
v_y
,
lid_nn_3d
>
avg_z_vy
;
typedef
Avg
<
y
,
v_x
,
lid_nn_3d
>
avg_y_vx
;
typedef
Avg
<
z
,
v_x
,
lid_nn_3d
>
avg_z_vx
;
typedef
Avg
<
y
,
v_z
,
lid_nn_3d
>
avg_y_vz
;
typedef
Avg
<
x
,
v_z
,
lid_nn_3d
>
avg_x_vz
;
// Directional Avg
typedef
Avg
<
x
,
v_y
,
lid_nn_3d
,
FORWARD
>
avg_x_vy_f
;
typedef
Avg
<
z
,
v_y
,
lid_nn_3d
,
FORWARD
>
avg_z_vy_f
;
typedef
Avg
<
y
,
v_x
,
lid_nn_3d
,
FORWARD
>
avg_y_vx_f
;
typedef
Avg
<
z
,
v_x
,
lid_nn_3d
,
FORWARD
>
avg_z_vx_f
;
typedef
Avg
<
y
,
v_z
,
lid_nn_3d
,
FORWARD
>
avg_y_vz_f
;
typedef
Avg
<
x
,
v_z
,
lid_nn_3d
,
FORWARD
>
avg_x_vz_f
;
#define EQ_1 0
#define EQ_2 1
#define EQ_3 2
#define EQ_4 3
#endif
/* OPENFPM_NUMERICS_SRC_EQUATIONS_STOKE_FLOW_EQ_3D_HPP_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment