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
dg
dg
Commits
2aa35b3c
Commit
2aa35b3c
authored
Sep 11, 2017
by
David Vincent
Committed by
Jonathan Lambrechts
Sep 20, 2017
Browse files
Commented version of the particle post-processing file
parent
82c5b420
Changes
1
Hide whitespace changes
Inline
Side-by-side
dgpy/scripts/particle.py
View file @
2aa35b3c
...
...
@@ -6,10 +6,10 @@
SLIM solves the governing equations on adaptative unstructured meshes using the discontinuous Galerkin finite element method.
slimPost contains some
post processing tools usable with results from slim (for simulations, see slim.py file)
, such as fourier series ..
.
particle is a
post processing tools usable with results from slim (for simulations, see slim.py file)
allowing for particle(s) tracking
.
To generate the post processing results, run the script my_postpro_script.py:
- On a single core: rundgpy my_p
re
pro_script.py
- On a single core: rundgpy my_p
ost
pro_script.py
"""
...
...
@@ -86,7 +86,7 @@ class Particle_tracker:
def
loop
(
self
,
path_output
):
"""
Return the fourier serie at a node of the mesh
"""
Compute the particle(s) position at each time step and store it in a .pos file
keyword arguments:
...
...
@@ -137,4 +137,4 @@ class Particle_tracker:
self
.
_particleTracker
.
particleMove
(
self
.
_hydro_sol_dof
,
connectivityMatrix
,
i
)
self
.
_particles
.
printPositions
(
self
.
_path_output
+
'/particlesAlive_%06d'
%
(
i
),
'pos'
,
0
)
\ No newline at end of file
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