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.

Bug report in ANSYS Forté 24R2 and 25R1

TAGGED: 

    • Etienne Tachouzin
      Subscriber

      When a chemical component contains parentheses in its name, there is a bug during CLI import and export.

      For example, I have a .ftsim project with the components oil(l) and oil(vapor). I want to automate part of the setup using the CLI.

      My initial approach was to export the data using:

      forte.sh CLI -project my_project.ftsim -export my_setup.txt

      Then I edited the exported file (for example, to change the pressure and other parameters).

      After that, I tried to import the modified file using:

      forte.sh CLI -project my_project.ftsim -import my_new_setup.txt

      However, the import fails because the file contains the component name oil(l).

      The most surprising part is that exporting a file and then importing the exact same file—without making any changes—also causes the import to fail.

      In other words, the export operation produces a file that cannot be imported back, making the export/import process non-reversible.

      Exception in thread "main" com.reactiondesign.core.textio.TokenMgrError: Lexical error at line 481, column 10.  Encountered: "(" (40), after : ""
              at com.reactiondesign.core.textio.ForteGrammarTokenManager.getNextToken(ForteGrammarTokenManager.java:648)
              at com.reactiondesign.core.textio.ForteGrammar.jj_scan_token(ForteGrammar.java:667)
              at com.reactiondesign.core.textio.ForteGrammar.jj_3R_7(ForteGrammar.java:521)
              at com.reactiondesign.core.textio.ForteGrammar.jj_3_4(ForteGrammar.java:384)
              at com.reactiondesign.core.textio.ForteGrammar.jj_3_3(ForteGrammar.java:391)
              at com.reactiondesign.core.textio.ForteGrammar.jj_2_3(ForteGrammar.java:234)
              at com.reactiondesign.core.textio.ForteGrammar.section(ForteGrammar.java:61)
              at com.reactiondesign.core.textio.ForteGrammar.section(ForteGrammar.java:69)
              at com.reactiondesign.core.textio.ForteGrammar.section(ForteGrammar.java:69)
              at com.reactiondesign.core.textio.ForteGrammar.parse(ForteGrammar.java:38)
              at com.reactiondesign.cfd.amg.commands.ImportProjectText.findParameterInTextFile(ImportProjectText.java:311)
              at com.reactiondesign.cfd.amg.commands.ImportProjectText.importText(ImportProjectText.java:430)
              at com.reactiondesign.cfd.amg.commands.ImportProjectText.main(ImportProjectText.java:1121)

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