Ansys Learning Forum › Forums › Discuss Simulation › Fluids › Create Pathlines in CFX › Reply To: Create Pathlines in CFX
March 20, 2024 at 1:57 pm
CFD_Friend
Ansys Employee
Hi Christian,
Streamlines are lines everywhere tangent to the velocity vector at a given instant
-Pathlines are the actual path traversed by a fluid particle.
Â
For steady cases, streamlines and pathlines are identical. For transient cases, they're not.Â
Â
To model pathlines in CFD-Post for a transient run, here is one approach:
Â
- In CFD-Post, read in the first timestep. Create streamlines but use the Limiter option set to the timestep size. Export the streamlines from Post.
- In an external tool (i.e. Fortran, Python, etc), read in the streamline export file. Find the endpoints of each streamline. Generate a Cloud of Points file.
- In CFD-Post, read in the next time step. Read in the Cloud of Points from the previous time step.  Create streamlines from these cloud points but use the Limiter option set to the timestep size. Export the new streamlines from Post.
Repeat Step 3 for the remaining time steps.
Â
At the end, you will have a set of exported streamline files. You now may be able to read all those files into CFD-Post to visualize the pathlines