Skip to content

Commit

Permalink
restore main pathline example
Browse files Browse the repository at this point in the history
  • Loading branch information
mariostieriansys committed Jan 9, 2024
1 parent 80b97dd commit e1e1a81
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions doc/source/examples_source/00-basic/04-ptrace_pathline.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Pathline (transient streamline) Creation
========================================
Utilze EnSight Particle Trace for Pathline (transient streamline)
Create Pathline and Animate.
Utilize EnSight Particle Trace for Pathline (transient streamline).
Create a Pathline and Animate it.
"""

Expand All @@ -26,8 +26,8 @@
###############################################################################
# Load a dataset
# --------------
# Load Flow2D dataset included in the EnSight installation and render
# Set the timestep to be the minimum timestep.
# Load Flow2D dataset included in the EnSight installation
# set the timestep to the minimum timestep and render.
#
# .. image:: /_static/04_pathline_0.png

Expand Down Expand Up @@ -68,7 +68,7 @@
# "VITESSE" as the vector, and 25 points along the Clip line as emitter locations.
# We also setup to first emit the Pathlines at time = 4 seconds.
# and Emit NEW pathlines ever 20 seconds after that. (They will follow NEW path)

#
# .. image:: /_static/04_pathline_1.png

emitter_part = clip
Expand All @@ -92,7 +92,7 @@
# Change Visual Attributes
# ----------------------------------------------------------
# Modify the attributes of the pathlines and animate over time

#
# .. image:: /_static/04_pathline_2.png

pathline_part.REPRESENTATION = eonums.TRACE_TUBE
Expand All @@ -106,8 +106,11 @@
# Turn OFF the pathline lines visibility (to see the animate under)
# Turn ON the animate pathlines.
# Change to Sphere representation, size, and adjust speed and length.

# .. image:: /_static/04_pathline_3.mp4
#
# .. video:: ../../_static/04_pathline_3.mp4
# :width: 640
# :height: 360
#

pathline_part.VISIBLE = False
pathline_part.ANIMATE = True
Expand All @@ -117,8 +120,7 @@
session.show("animation", width=800, height=600, fps=15)

###############################################################################
# Thumbnail
# sphinx_gallery_thumbnail_path = '_static/04_pathline_2.png'

# Close the session

# sphinx_gallery_thumbnail_path = '_static/04_pathline_2.png'
session.close()

0 comments on commit e1e1a81

Please sign in to comment.