Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more

Fluent TUI, display mesh options

    • Marcin Nowak
      Subscriber

      Hi,

      I am using a computer cluster without graphical interface, therefore it is necessary to do below using TUI only.
      I would like to display mesh edges only. And save such picture every timestep.

      I got a trouble displaying edges only, without faces. I am using below:

      q
      disp
      sur-me
      12
      ()
      q

      however in the cluster it is set to display faces only. I want to display edges only, like in the below picture:

      Please guide me which TUI commands I need to use to do so

      regards

    • Rob
      Forum Moderator

      Can you set up the images via the GUI prior to running? Also remember that if you can set up the mesh object that it'll retain the settings it's much better than the "old" way where we needed to specify surfaces/edges and which ones every time. The images can then be saved via TUI commands in Execute Commands. 

      However, if you've no GUI on the cluster how are you creating images? Fluent displays the image to then save it, it's not a virtual image. 

    • Marcin Nowak
      Subscriber

      "Can you set up the images via the GUI prior to running?" - Unfortunately no, if I could I would use this solution.

      "Also remember that if you can set up the mesh object that it'll retain the settings  - Yeah I tried to use the "retained settings" of mesh, that you are talking about, by using in TUI a referrrence to saved settings "mesh-1":

      q
      (cx-gui-do cx-set-list-tree-selections "NavigationPane*List_Tree1" (list "Results|Graphics|Mesh|mesh-1"))
      (cx-gui-do cx-list-tree-right-click "NavigationPane*List_Tree1" )
      (cx-gui-do cx-activate-item "MenuBar*PopupMenuTree-mesh-1*Display")
      q
       
      However I get an error, saying that above is not possible to execute because there is no active GUI. Therefore I used instead:
       
      q
      disp
      sur-me
      12
      ()
      q
       
      and it works, images are saved, however with the 'faces only", not "edges only". So now I need the TUI commands to change it.
       
      "However, if you've no GUI on the cluster how are you creating images? Fluent displays the image to then save it, it's not a virtual image. " - There is no problem with saving images (regular files) despite the fact that GUI is not active and Fluent displays images in the background mode.
       
    • Rob
      Forum Moderator

      OK, as you've found the GUI macros won't work, and they're not overly reliable even when the GUI is up. 

      /display/objects/create mesh 

      Then look in options for surface type and surfaces-list to set up what you want to see. You'll finish up with an object called (for example) mesh-1. 

      You then create the contour (or whatever) in another object. Finally, create a scene from the objects. When displaying stuff to then save images you display the final scene and everything should be set. 

      You'll notice the way I wrote the command(s). That ensures that any command starts from the root folder. If I used your command and wasn't in root it would fail or do something interesting. 

    • Marcin Nowak
      Subscriber

       

      I found the solution myself, 
      It is possible to display saved mesh settings “mesh-1″ in TUI by:

      display
      obj
      disp
      mesh-1
      q
      q
      q

      So the problems is solved, however I would appreciate to know whether it is possible to set such edge display in TUI in ‘old’ way

      EDIT: Rob, thank you for this information; the remark about the scene is especially useful, as what I am going to do next, is to create animations using case-and-data files

Viewing 4 reply threads
  • You must be logged in to reply to this topic.