Changing Solving Settings on-the-fly

You send jobs through LSF queuing system in full batch (controlled by main journal file). Many times it has to wait in the queue for hours. In the middle of the job run, one could find that he/she needs to reduce underrelaxation for energy, for example. Currently, one has to exit-fluent (check-point) underrelax energy, and send to LSF again -- another long wait! Some times one finds that he has to relax epsilon as well. Given the long wait in the queue, and due to the complexity of the problems, the user can easily get frustrated.

;======================CHANGING SOLVER SETTINGS ON THE FLY=================================================
;It is sometimes desired to change solver settings while FLUENT is running without having to interrupt.
;This is really useful if FLUENT is running in full batch mode (without a GUI). If a jobs is not converging,
;one not need to check-point, read case, change settings, and re-submit the job to the queuing system, which could take hours.
;1. Insert the following command in your main journal file. It maybe inserted right after the line that reads the case:
; /solve execute-commands add-edit com4 10 "iteration" "/file read-macro solver_settings.scm"
;2. Comment out any of the lines and provide the values. Only the lines that are not commented will be executed.
;3. place this file in the working directory
;NOTE: you can add more lines if needed for additional opertions.
;(rpsetvar 'disco/scheme 0)
;(rpsetvar 'temperature/scheme 0)
;(rpsetvar 'epsilon/scheme 0)
;(rpsetvar 'k/scheme 0)
;(rpsetvar 'mom/scheme 0)
;(rpsetvar 'density/scheme 0)
;(rpsetvar 'pressure/scheme 0)

;(rpsetvar 'disco/relax 1)
;(rpsetvar 'temperature/relax 1)
;(rpsetvar 'turb-viscosity/relax 1)
;(rpsetvar 'epsilon/relax .8)
;(rpsetvar 'k/relax .8)
;(rpsetvar 'body-force/relax 1)
;(rpsetvar 'density/relax 1)

;(rpsetvar 'pressure-coupled/courant-number 200)
;(rpsetvar 'pressure-coupled/mom/explicit-relax .5)
;(rpsetvar 'pressure-coupled/pressure/explicit-relax .5 )

Show Form
No comments yet. Be the first to add a comment!