-
-
September 27, 2017 at 11:19 amadminAnsys Employee
Often loops are used in session files and sometimes these session files can take tens of minutes to run. A session file cannot be stopped with the CFD-Post “Stop” button, however having a method to break the loop in the session file can save time. The following Perl code can be inserted into the loop in the session file which will exit the loop if a specified file is detected. If the user wishes to stop the execution of the loop in the session file, they need to create that specified file. In the example below if the user creates the file “stop.txt” in “”, the loop will be exited. Note that the file does not need to contain any data and can be empty. ! if (-f "Dstop.txt") {#if the file “stop.txt” is found then… ! last;#last command will exit the loop !}
-
September 27, 2017 at 11:19 amadminAnsys Employee
How can the execution of a loop in a CFD-Post session file be stopped?
-
- The topic ‘Execution of a loop in a CFD-Post session file be stopped’ is closed to new replies.
- How do you approach this?
- Convective Augmentation Factor in DEFINE_HEAT_FLUX
- Non-Premixed Combustion PDF generation with 4th-order interpolation
- Conservation issue with a UDS solution
- ANSYS fluent – Rocky DEM coupling
- Where is the Electrolyte Projected Area in the Reports tab of PEMFC Model?
- Solar load , Mesh Orientation and Beam direction
-
476
-
231
-
203
-
200
-
162
© 2024 Copyright ANSYS, Inc. All rights reserved.