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
dd6df073
Commit
dd6df073
authored
Dec 01, 2020
by
Michel Henry
Browse files
write/read VTK
parent
ea65329d
Changes
1
Hide whitespace changes
Inline
Side-by-side
testcases/periodicTest/3D/grains.py
View file @
dd6df073
...
...
@@ -58,14 +58,14 @@ outf = 5 # number of iterations between o
#
p
=
scontact
.
ParticleProblem
(
3
)
# Initialise particles boundary
#
p.load_msh_boundaries("mesh.msh", ["Bottom", "Top", "X", "Z"])
#
p.add_particle((r,0.5,0.5), r, 4/3*r**3*np.pi*rhop)
#
p.add_particle((L-2*r,0.5,0.5), r, 4/3*r**3*np.pi*rhop)
#
p.velocity()[1,0] = 0.5
p
.
load_msh_boundaries
(
"mesh.msh"
,
[
"Bottom"
,
"Top"
,
"X"
,
"Z"
])
p
.
add_particle
((
r
,
0.5
,
0.5
),
r
,
4
/
3
*
r
**
3
*
np
.
pi
*
rhop
)
p
.
add_particle
((
L
-
2
*
r
,
0.5
,
0.5
),
r
,
4
/
3
*
r
**
3
*
np
.
pi
*
rhop
)
p
.
velocity
()[
1
,
0
]
=
0.5
# p.write_vtk(outputdir,0,0)
p
.
read_vtk
(
outputdir
,
0
)
p
.
write_vtk
(
outputdir
,
0
,
0
)
p
.
read_vtk
(
outputdir
,
0
)
# p.write_vtk(outputdir,0,0)
#Initial time and iteration
t
=
0
...
...
Write
Preview
Supports
Markdown
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