Scheme command for volume-average value
Hi guys.
I am doing some works about monitoring and changing boundary conditions with scheme language. I already know how to get area-weighted-avg temperature like below. These two TUI commands are same. One is scheme and another one is journal command. (define check_temp (surface-area-average (list (surface-name->id thermostat)) "temperature")) ;; Scheme command /report/surface-integrals/area-weighted-avg thermostat () temperature , ;; Journal command But, I do not know how to get volume-average temperature and heat source value in specific cell zone with scheme. Is there a anybody who can help me? |
I looked at the User manual, Fluent Text Command list.
You already found "/report/surface-integrals/area-weighted-avg" But now you don't want a surface integral but a volume integral, so I looked further: Quote:
|
Thanks for your helpful explanation.
But I need to know scheme commands to make some codes which can control temperature and source term. |
You can turn every journal command into a scheme command by using "(ti-menu-load-string ...)"
So in this case: Quote:
|
I know (ti-menu-load-string ...) can do measure volumename's temperature.
But I need to store variables in memory using the scheme commands. (ti-menu-load-string ...) can just returen #f or #t. |
OK, you didn't mention yet that you wanted to use the value, and not just print it.
I now understand your problem, but don't know the solution. I am interested to know the answer, though... |
Quote:
(ti-menu-load-string (format #f "report volume-int va thermostat () temperature yes yourfilename yes")) ------------------------------------------------------------------ Hopefully not too late |
Quote:
|
Quote:
|
I solved with follwing scheme commands.
(%fill-node-values 'temperature) (define Temp_A (%volume-integrals 'volume-average '(Cell Zone ID) "temperature")) ;; Temp_A is a variable name what you want to make ;; You can get Cell Zone ID in cell zone conditions in flunet window. |
All times are GMT -4. The time now is 02:34. |