Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fluidparticles
MigFlow
Commits
de947f31
Commit
de947f31
authored
Jan 08, 2019
by
Matthieu Constant
Browse files
fluid wall friction wip
parent
742938fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
validation/poiseuille/poiseuille.py
View file @
de947f31
...
...
@@ -65,15 +65,11 @@ class Poiseuille(unittest.TestCase) :
#Object fluid creation + Boundary condition of the fluid (field 0 is horizontal velocity; field 1 is vertical velocity; field 2 is pressure)
fluid
=
mbfluid
.
FluidProblem
(
2
,
g
,
nu
*
rho
,
rho
)
fluid
.
set_strong_boundary
(
"Top"
,
0
,
0
)
fluid
.
set_strong_boundary
(
"Bottom"
,
0
,
0
)
fluid
.
set_strong_boundary
(
"RightUp"
,
1
,
0
)
fluid
.
set_strong_boundary
(
"RightDown"
,
1
,
0
)
fluid
.
load_msh
(
"mesh.msh"
)
fluid
.
set_open_boundary
(
"LeftUp"
,
velocity
=
[
lambda
x
:
1
/
(
20
*
mu
)
*
x
[:,
1
]
*
(
1
-
x
[:,
1
]),
0
])
fluid
.
set_open_boundary
(
"LeftDown"
,
velocity
=
[
lambda
x
:
1
/
(
20
*
mu
)
*
x
[:,
1
]
*
(
1
-
x
[:,
1
]),
0
])
fluid
.
set_wall_boundary
(
"Bottom"
)
fluid
.
set_wall_boundary
(
"Top"
)
fluid
.
set_wall_boundary
(
"Bottom"
,
velocity
=
[
0
,
0
]
)
fluid
.
set_wall_boundary
(
"Top"
,
velocity
=
[
0
,
0
]
)
fluid
.
set_open_boundary
(
"RightUp"
,
pressure
=
0
)
fluid
.
set_open_boundary
(
"RightDown"
,
pressure
=
0
)
...
...
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