在fluent中自动显示最大和最小值
2017-01-16 by:CAE仿真在线 来源:互联网
在运行case文件时,有时候需要监视温度,压力,紊流动能/强度,粘度等的最大最小值。
生成*.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)
开放分享:优质有限元技术文章,助你自学成才
相关标签搜索:在fluent中自动显示最大和最小值 Fluent培训 Fluent流体培训 Fluent软件培训 fluent技术教程 fluent在线视频教程 fluent资料下载 fluent分析理论 fluent化学反应 fluent软件下载 UDF编程代做 Fluent、CFX流体分析 HFSS电磁分析
编辑