Fluids

Fluids

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
      Ansys Employee
      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.https://forum.ansys.com/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
      Ansys Employee
      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
  • You must be logged in to reply to this topic.