Apply general settings#
The examples on this page show how you use Solver TUI commands to run solver meshing commands and set up units.
Check the mesh#
This example shows a comparison between the TUI command and the Python code for performing mesh consistency checks and displaying a report in the console. This report lists domain extents, volume statistics, face area statistics, any warnings, and information about failures. The level of information shown depends on the setting specified for the verbosity (level 0 to 3).
/mesh/check /mesh/check-verbosity 1
import ansys.fluent.core as pyfluent solver = pyfluent.launch_fluent(precision='double', processor_count=2, mode="solver") solver.tui.file.read_case('file.cas.h5') solver.tui.mesh.check()
Report mesh quality#
This example shows a comparison between the TUI command and the Python code for displaying information about the quality of the mesh in the console, including the minimum orthogonal quality and maximum aspect ratio.
This example shows a comparison between the TUI command and the Python code for scaling the mesh in each of the active Cartesian coordinate directions.
/mesh/scale 1 1 1
The following example shows a comparison between the TUI command and the Python code for setting the unit conversion factors.
/define/units length 'in'