I would like to make my own menu form in order to set values and select items for a Tcl script I have written for ICEM CFD. Looking at the ‘Programmers Guide’ this seems best done building up from a form_init command.
Tagged: 14.5, fluid-dynamics, General, icem-cfd
-
-
March 17, 2023 at 8:58 am
FAQ
ParticipantThis can be done with the “form_” functions, but I would probably stay away from them, since they are really done in the older GUI style, and if you create your own Tk widgets, you can then run ICEM in batch, but use only your windows without loading the main ICEM window. Then you can do everything with all the basic Tcl/Tk commands. All the base commands of Tcl/Tk are available within ICEM. Below is an example script which creates one window and selects surfaces. It is meant to be used with ICEM’s GUI loaded. You can save this as “Tcl_gui_example.tcl”, and type “source Tcl_gui_example.tcl†in the ICEM message window with this script in the working directory. proc create_top_window {w} { toplevel $w wm title $w “ICEM CFD Script ($w)” button $w.surfs -text “Select” -command “set ${w}_surfs [geo_select surface]” entry $w.ent -textvariable ${w}_surfs label $w.surfs_label -text “Surfaces” set endb [frame $w.end_buttons -bd 0] button $endb.apply -text “Apply” -command “do_proc [set ${w}_surfs]” button $endb.done -text “Done” -command “destroy $w” grid $w.surfs_label $w.ent $w.surfs -sticky we -padx 2 -pady 2 grid $endb.apply $endb.done -padx 2 grid $endb – – -sticky we -pady 2 grid columnconfigure $w 1 -weight 1 } proc do_proc {surfaces} { # This procedure performs the action mess “selected surfaces: $surfacesn” } # This line sets everything going when the script is sourced create_top_window .icem_win1 # Multiple windows can be created with a different window, such as “create_top_window .icem_win2”
-

Introducing Ansys Electronics Desktop on Ansys Cloud
The Watch & Learn video article provides an overview of cloud computing from Electronics Desktop and details the product licenses and subscriptions to ANSYS Cloud Service that are...

How to Create a Reflector for a Center High-Mounted Stop Lamp (CHMSL)
This video article demonstrates how to create a reflector for a center high-mounted stop lamp. Optical Part design in Ansys SPEOS enables the design and validation of multiple...

Introducing the GEKO Turbulence Model in Ansys Fluent
The GEKO (GEneralized K-Omega) turbulence model offers a flexible, robust, general-purpose approach to RANS turbulence modeling. Introducing 2 videos: Part 1 provides background information on the model and a...

Postprocessing on Ansys EnSight
This video demonstrates exporting data from Fluent in EnSight Case Gold format, and it reviews the basic postprocessing capabilities of EnSight.
- ANSYS Fluent: Introduction to the GEKO Turbulence Model Part I
- ANSYS System Coupling: Two Way Fluid Structure Interaction – Part 1
- Delete or Deactivate Zone in Fluent
- ANSYS Polyflow: Adaptive Meshing Based on Contact
- Apply Custom Material Properties in Fluent
- What is meant by Warning: Flow boundary zone 18 is adjacent to a solid zone?
- Aero-Mechanical Simulation of Turbomachinery Blading
- Check CPU Time in ANSYS FLUENT
- Running Python Script from Workbench
- How can I create a Cell Register from a Cell Zone?
© 2023 Copyright ANSYS, Inc. All rights reserved.