在fluent中自動顯示最大和最小值
2017-01-16 by:CAE仿真在線 來源:互聯(lián)網
在運行case文件時,有時候需要監(jiān)視溫度,壓力,紊流動能/強度,粘度等的最大最小值。
生成*.scm文件
然后在solve-execute 輸入f rff *.scm或者de cff l
*.scm,設置好when 類型,觀察計算面板可以看到最大/最小值列出。
參數定義如下:(把下面copy生成*.scm)
(define param)
; param = velocity-magnitude, for velocity magnitude ;
; param = x-velocity, for x-velocity ;
; param = stream-function, for stream-function ;
; param = pressure, for static-pressure ;
; param = total-pressure, for total-pressure ;
; param = temperature, for temperature ;
; param = total-temperature, for total-temperature ;
; param = turb-kinectic-energy, for turbulence kinetic energy ;
; param = turb-intensity, for turbulence intensity ;
; param = viscosiy-ratio, for turbulence-viscosity ratio ;
(set! param "temperature")
; param = velocity-magnitude, for velocity magnitude ;
; param = x-velocity, for x-velocity ;
; param = stream-function, for stream-function ;
; param = pressure, for static-pressure ;
; param = total-pressure, for total-pressure ;
; param = temperature, for temperature ;
; param = total-temperature, for total-temperature ;
; param = turb-kinectic-energy, for turbulence kinetic energy ;
; param = turb-intensity, for turbulence intensity ;
; param = viscosiy-ratio, for turbulence-viscosity ratio ;
(set! param "temperature")
; 改變temperature為別的參數即可;
(define list)
(define max-param-pair)
(define max-param)
(define min-param-pair)
(define min-param)
(set! list (%fill-node-values param))
(set! max-param-pair (list-ref list 0))
(set! max-param (cdr max-param-pair))
(set! min-param-pair (list-ref list 1))
(set! min-param (cdr min-param-pair))
(format "Maximum ~a = ~a\n" param max-param)
(format "Mimimum ~a = ~a\n" param min-param)
(define list)
(define max-param-pair)
(define max-param)
(define min-param-pair)
(define min-param)
(set! list (%fill-node-values param))
(set! max-param-pair (list-ref list 0))
(set! max-param (cdr max-param-pair))
(set! min-param-pair (list-ref list 1))
(set! min-param (cdr min-param-pair))
(format "Maximum ~a = ~a\n" param max-param)
(format "Mimimum ~a = ~a\n" param min-param)
開放分享:優(yōu)質有限元技術文章,助你自學成才
相關標簽搜索:在fluent中自動顯示最大和最小值 Fluent培訓 Fluent流體培訓 Fluent軟件培訓 fluent技術教程 fluent在線視頻教程 fluent資料下載 fluent分析理論 fluent化學反應 fluent軟件下載 UDF編程代做 Fluent、CFX流體分析 HFSS電磁分析
編輯