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 amFAQParticipant
This 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.
- How to overcome the model information incompatible with incoming mesh error?
- What are the requirements for an axisymmetric analysis?
- How to create and execute a FLUENT journal file?
- How can I Export and import boxes / Systems from one Workbench Project to another?
- Skewness in ANSYS Meshing
- What is a .wbpz file and how can I use it?
- How can I select interior faces and other entities that are inside the model?
- Error: Update failed for the Mesh component in Fluid Flow (Fluent). Error updating cell Mesh in system Fluid Flow (Fluent). View the messages in the Meshing editor for more details.
- Left-handed faces troubleshooting
- What are pressure-based solver vs. density-based solver in FLUENT?
© 2024 Copyright ANSYS, Inc. All rights reserved.