Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Session File in Post Processing

    • Mohamed Abu-bakr
      Subscriber

      I am performing steady simulation on a pipe, and I would like to generate a session file to create 100 planes along flow normal to the pipe. Some suggested to use a loop in session file in CFD post, but I don't know how to write a code for a loop to change plane location and name.
      Thanks

    • seeta gunti
      Ansys Employee

      Open CFD-Post and choose 


      Session/New Session/test.cse


      Session/Start Recording


      File/Load Results Test_001.res


      Insert/Location/Point 1,1,1


      Insert/Location/Plane Z=0


      File/Export Locations Plane 1,Point1 Select Variable Pressure


      Session Stop Recording


      This produces an export file called export.csv and a session file called test.cse


      The session file can be replayed by opening the CFX Launcher, choosing tools/command line and in the resulting command line running the command


      play test.cse


      Now edit the session file to place a for loop around the plane creation. Use the ! operator to indicate the line should be interpreted as Perl. See "Power Syntax" in the CFX documentation for more details. A quick google search will get you the syntax for common tasks (for loops, if statements etc).

Viewing 1 reply thread
  • The topic ‘Session File in Post Processing’ is closed to new replies.