Fluent6 solution monitor (written to file) that reflects values from --> flux report <-- (rather than surface integrals)
NOTE: This is provided without ANY warranty! Use at your own risk. Be prepared for this to fail under certain circumstances!
Solution monitors in FLUENT offer access to numbers that can be calculated using the Surface (or Volume) Integrals (as they can be accessed in the Report menu). It is not possible to follow e.g. total heat fluxes, as they can be post-processed using Flux Reports (also in the Report menu). The user can only choose to monitor the Flow Rate of (Total) Enthalpy through a surface (which may reflect a face zone..). But these numbers will neither contain diffusive heat fluxes nor species formation enthalpies.
To monitor numbers as they can be obtained from the Total Heat Flux report, now an implementation using Scheme and UNIX tools is available. This will NOT plot the data, but it will only write them into a file. This file will contain numerical data in two columns, of which the first is the iteration, time-step, or current (simulated) time, while the second column is the number from the flux report. NOTE:... (see below)
NOTE: This will ONLY work on UNIX. It uses some UNIX tools ("cat", "echo", "grep", "sed") that are not available (or have different behaviour!) on usual Windows systems.
Enter the following six lines as commands that are executed during the Solution (use "Solve --- Execute Commands"):
(with-output-to-file "time.now" (lambda () (format "~a" (rpgetvar 'flow-time))))
(with-output-to-file "data.now" (lambda () (ti-menu-load-string "/report/heat-transfer")))
!cat time.now >> data.all
!echo -n ' ' >> data.all
!grep 'zone 3 .aus.: ' data.now | sed -e 's/^.*: //' >> data.all
!echo >> data.all
Before using this, create the file "data.all" by executing the UNIX command "touch data.all".
+ The first line writes the current (simulated) time to the file "time.now".
- If you want to use the current time step number instead, then please replace "flow-time" by "time-step" (retain the single quote character ["'"] before that word!).
- If you want to use the iteration counter instead, then please replace the string "rpgetvar 'flow-time" by "%iterate 0" (retain the surrounding parentheses!).
+ The second line calls the TUI command "/report/heat-transfer", redirecting its output to a file "data.now". The TUI command may be replaced by other, similar commands.
+ The third line appends the time from file "time.now" to file "data.all".
+ The fourth line appends some white space to the newly commenced line in "data.all".
+ The fifth line looks for a line containing the zone number "3" and the zone name "aus" in the file "data.now" (generated recently, see explanation to the second line). Feel free to change the zone number and name. If you don't care for the zone number, replace it by the string "[0-9]*" (without the double quotes). If you don't care for the zone name, replace it by ".*". Retain the rest of the line cautiously, not changing the number of blank characters anywhere. The value (the total heat flux, which is basically a flow rate..) will be appended to the newly commenced line in the file "data.all".
+ The sixth line adds a blank line to "data.all" -- use or omit to you convenience.
The file produced hereby should be fit for plotting with any general data plotting tool (xgrace, gnuplot,...), or for importing in other software like M$ Excel, Microcal Origin,...