Skip to content
GitLab
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
0372a314
Commit
0372a314
authored
Nov 05, 2019
by
Matthieu Constant
Browse files
maj depot wip
parent
4b9d5ebf
Changes
2
Hide whitespace changes
Inline
Side-by-side
testcases/depot-2d/depot.py
View file @
0372a314
...
...
@@ -68,7 +68,7 @@ if not os.path.isdir(outputdir) :
os
.
makedirs
(
outputdir
)
# Physical parameters
g
=
-
9.81
# gravity
g
=
np
.
array
([
0
,
-
9.81
])
# gravity
r
=
1e-3
# particles radius
rhop
=
1500
# particles density
rho
=
1000
# fluid density
...
...
@@ -80,8 +80,8 @@ dt = 2.5e-3 # time step
tEnd
=
100
# final time
# Geometrical parameters
ly
=
7
e-
2
# particles area height
lx
=
2
e-1
# particles area widht
ly
=
1
e-
1
# particles area height
lx
=
4
e-1
# particles area widht
H
=
0.6
# domain height
#
...
...
@@ -114,8 +114,7 @@ fluid.export_vtk(outputdir,0,0)
tic
=
time
.
time
()
G
=
np
.
zeros_like
(
p
.
velocity
())
G
[:,
1
]
=
p
.
mass
()[:,
0
]
*
g
G
=
p
.
mass
()
*
g
#
# COMPUTATION LOOP
#
...
...
testcases/depot-2d/mesh.geo
View file @
0372a314
...
...
@@ -4,8 +4,8 @@ y = 0;
lc = 0.01;
Point(1) = {-L, H, 0,lc};
Point(2) = {-L,
.2
, 0,lc};
Point(3) = {L,
.2
, 0,lc};
Point(2) = {-L,
-H
, 0,lc};
Point(3) = {L,
-H
, 0,lc};
Point(4) = {L, H, 0,lc};
Line(1) = {1, 2};
Line(2) = {2, 3};
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment