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
8b03e234
Commit
8b03e234
authored
Nov 15, 2018
by
Matthieu Constant
Browse files
good validation test cases
parent
51004f3f
Pipeline
#4619
passed with stage
in 22 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
validation/cavity/cavity.py
View file @
8b03e234
...
...
@@ -73,10 +73,16 @@ class Poiseuille(unittest.TestCase) :
fluid
.
set_strong_boundary
(
"Bottom"
,
0
,
0.
)
fluid
.
set_strong_boundary
(
"Left"
,
1
,
0.
)
fluid
.
set_strong_boundary
(
"Right"
,
1
,
0.
)
fluid
.
set_weak_boundary
(
"Left"
,
"Wall"
)
fluid
.
set_weak_boundary
(
"Bottom"
,
"Wall"
,[
0
],
wall_pressure
=
True
)
fluid
.
set_weak_boundary
(
"Top"
,
"Velocity"
,[
vUp
,
0
])
fluid
.
set_weak_boundary
(
"Right"
,
"Wall"
)
fluid
.
set_strong_boundary
(
"Top"
,
0
,
vUp
)
fluid
.
set_strong_boundary
(
"Top"
,
1
,
0.
)
fluid
.
set_strong_boundary
(
"Bottom"
,
1
,
0.
)
fluid
.
set_strong_boundary
(
"Left"
,
0
,
0.
)
fluid
.
set_strong_boundary
(
"Right"
,
0
,
0.
)
fluid
.
set_wall_boundary
(
"Left"
)
fluid
.
set_wall_boundary
(
"Bottom"
)
fluid
.
set_wall_boundary
(
"Top"
,
pressure
=
0
)
fluid
.
set_wall_boundary
(
"Right"
)
ii
=
0
t
=
0
...
...
validation/oneGrain/oneGrain.py
View file @
8b03e234
...
...
@@ -78,9 +78,9 @@ class Poiseuille(unittest.TestCase) :
fluid
=
mbfluid
.
FluidProblem
(
2
,
g
,
nu
*
rho
,
rho
)
fluid
.
load_msh
(
"mesh.msh"
)
fluid
.
set_w
eak
_boundary
(
"Bottom"
,
"Wall"
)
fluid
.
set_w
eak
_boundary
(
"Lateral"
,
"Wall"
)
fluid
.
set_w
eak
_boundary
(
"Top"
,
"Wall"
,[
0
],
wall_
pressure
=
True
)
fluid
.
set_w
all
_boundary
(
"Bottom"
)
fluid
.
set_w
all
_boundary
(
"Lateral"
)
fluid
.
set_w
all
_boundary
(
"Top"
,
pressure
=
0
)
ii
=
0
t
=
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