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.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Loop in journal file

    • A_pathak
      Subscriber
      how can I use a loop in a journal file to extract data from multiple data files?n
    • Rob
      Forum Moderator
      Which solver/software are you using?n
    • DrAmine
      Ansys Employee
      You can do that in Fluent using Scheme Programming Language. In CFX (CFD-Post) using Perl Programming Languange and Ensight using Python.n
    • A_pathak
      Subscriber
      thanks for the reply RobnI am using ANSYS Fluentnn
    • A_pathak
      Subscriber

      You can do that in Fluent using Scheme Programming Language. In CFX (CFD-Post) using Perl Programming Languange and Ensight using Python./forum/discussion/comment/107249#Comment_107249

      DrAmine can you tell me more about that because this is a very new thing for me. n
    • DrAmine
      Ansys Employee
      If it is very new thing then you should get familiar to Scheme Programming Language. There are a couple of example in the net or on our Customer Portal (if you have access) which might be helpful.n
    • Rob
      Forum Moderator
      Scheme isn't for the faint hearted. An alternative is to use a script look at all the filenames in a folder (for example) and combine that with the commands you want to execute in Fluent. Run the script and output the journal. nA simple journal section might look like:nn/file/read-data myfile_001n/report stuffn/file/read-data myfile_002netcnnYou use the external script to create the repetitive bit in the middle. I used t use .awk scripts but I suspect I need to learn Python and use that now.
Viewing 6 reply threads
  • The topic ‘Loop in journal file’ is closed to new replies.
[bingo_chatbox]