Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openfpm_numerics
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
yaskovet
openfpm_numerics
Commits
a0ce791f
Commit
a0ce791f
authored
8 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Adding missing files
parent
6b60d554
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Equations/stoke_flow_eq_3d.hpp
+78
-0
78 additions, 0 deletions
src/Equations/stoke_flow_eq_3d.hpp
with
78 additions
and
0 deletions
src/Equations/stoke_flow_eq_3d.hpp
0 → 100644
+
78
−
0
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_ */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment