Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Fluent 20.1 – bug in writing a pathlines file by GUI

TAGGED: , ,

    • Guangpu Lv
      Subscriber

      I recorded a journal about write a pathlines file by GUI as shown below, cause the TUI lacks some parameters ("Steps", "Step Size" ).  And I cannot get the pathlines file when reading this journal, the "Select File" dialog didn't appear. However, the "Select File" dialog  appears after input the codes into console, still need to select file. It's seems the seconde code doesn't work.

       

      (cx-gui-do cx-activate-item "Pathlines*PanelButtons*PushButton1(OK)")
      (cx-gui-do cx-set-file-dialog-entries "Select File" '( "entryNameTest.fvp") "Fieldview Files (*.fvp)")

       

      And the full journal texts are given as below:

      /display/objects/create pathlines pathlines-1 accuracy-control step-size 0.02 step 3000 skip 5 field temperature surface 14 () q
      (cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Results|Graphics|Pathlines|pathlines-1"))
      (cx-gui-do cx-list-tree-right-click "NavigationPane*List_Tree1" )
      (cx-gui-do cx-activate-item "MenuBar*PopupMenuTree-pathlines-1*Edit...")
      (cx-gui-do cx-set-toggle-button2 "Pathlines*Frame2*ToggleBox1(Options)*CheckButton9(Write to File)" #t)
      (cx-gui-do cx-activate-item "Pathlines*Frame2*ToggleBox1(Options)*CheckButton9(Write to File)")
      (cx-gui-do cx-set-list-selections "Pathlines*Frame2*DropDownList2(Type)" '( 1))
      (cx-gui-do cx-activate-item "Pathlines*PanelButtons*PushButton1(OK)")
      (cx-gui-do cx-set-file-dialog-entries "Select File" '( "entryNameTest.fvp") "Fieldview Files (*.fvp)")

       

      Could anyone tell me how to fix it?  Thanks

      Best regards.

      Guangpu

    • Federico
      Ansys Employee

      Hello, 

      can you try the following TUI command for your journal

      /display/path-lines/write-to-files

      followed by your pathlines settings (try this in the console first to check the order).

      • Guangpu Lv
        Subscriber

        Thank you for your reply.

        the TUI command "/display/path-lines/write-to-files" in Fluent 20.1 cannot define the "Steps" and "Step size" of the pathlines settings.

         

    • Federico
      Ansys Employee

      You can find TUI commands documentation in the help page for latest releases up to 21R2:

      Chapter 3: display/ (ansys.com)

      • Guangpu Lv
        Subscriber

        Thank you for your reply.

        the TUI command "/display/path-lines/write-to-files" in Fluent 21.2 is the same as that in Fluent 20.1, and also cannot define the "Steps" and "Step size" of the pathlines settings.

    • Rob
      Forum Moderator

      Have a look in /display/objects/create  the TUI has been rearranged over the last few versions so rather than creating a unique pathline image instead create the object and then display that. 

    • Guangpu Lv
      Subscriber

      Thank you for your reply.

      The TUI commands "/display/objects/create" and "/display/objects/display" could create and display pathlines as I  tested in Fluent 22.1. And the TUI command "/display/path-lines/write-to-files" have been removed in Fluent 22.1.

      However, the final goal is to write a pathlines file. No matter how the pathlines are created, GUI command seems the only way to write a pathlines file in Fluent 22.1.  And when i read the GUI command of wirte a pathlines file as shown above, the bug would reappears. 

    • Rob
      Forum Moderator

      GUI journals can be unreliable depending on what panels are open/closed during the period you record the commands. As we don't use CFD Post in the Fluent workflows in the more recent versions commands may have been omitted. Why are you trying to write the pathline file as opposed to the image?

      • Guangpu Lv
        Subscriber

        I want to get data that varies along the streamline. And I think that write streamlines data is a simple way to alternative interpolation, which does not require importing data into other software. I also want to know if there are other ways to interpolate and export interpolation data in Fluent.

    • Rob
      Forum Moderator

      OK, good news is it's possible, and fairly easy. Bad news it's a hidden command, so I need to check it's technically in the public domain to allow me to share it. 

      • Guangpu Lv
        Subscriber

        Thank you very much for your reply. I look forward to your next reply with good news.

Viewing 6 reply threads
  • The topic ‘Fluent 20.1 – bug in writing a pathlines file by GUI’ is closed to new replies.