Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Systems

Systems

Topics related to Twin Builder, medini analyze, VRXPERIENCE and more.

LS-PrePost How to export ICFD StreamLine data for all time states (CSV/JSON)?

    • John Doe
      Subscriber

      Hi everyone,

      I’m completely new to LS-PrePost and CFD post-processing, so I would really appreciate some guidance.

      Software:

      LS-PrePost 4.13.5

      Problem:

      I have an ICFD simulation and I created a StreamLine object (StreamLine_30). I need to export the streamline geometry (point coordinates along each streamline) for all time states / frames, not just the current one.

      Preferred output formats:

      • CSV

      • JSON (or any structured format that I can easily convert for frontend visualization with Three.js)

      What I have already tried:

      1. Recorded a macro (.cfile) while doing: texticfd select 30 icfd update 30 output "streamline_state1.k" 34 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1.000000 0 0 The resulting .k file only contains state metadata and no actual node/point data.

      2. Used Post → Output and exported as ASCII STL. This works and gives me geometry, but it converts the streamlines into triangulated surfaces. The file is very large and not ideal for getting clean polyline point data.

      What I need:

      • A way to loop through all time states and export the actual streamline point coordinates

      • Preferably clean ordered points (polylines) rather than triangulated mesh

      • Batch process if possible (command file / script)

      I’m not familiar with LS-PrePost scripting (SCL / command files / Python interface), so even a basic working example would be extremely helpful.

      Has anyone successfully extracted StreamLine geometry over multiple states before? Any recommended workflow or alternative method would be greatly appreciated.

      Thank you in advance!

Viewing 0 reply threads
  • You must be logged in to reply to this topic.
[bingo_chatbox]