FLUENT journal version 0.1
FLUENT 中使用 Scheme,如果好好利用,能够大大提高工作效率。这是自己编写的第一个 journal 文件,用来设置一些选项。
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Author: huys
; Description: Batch setup for segment one
; Date: 2008/05/25
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Read in the mesh file.
file read-case seg1_m.msh
;Scale it. mm -> m.
grid/scale
;x scale factor [1]
0.001
;y scale factor [1]
0.001
;z scale factor [1]
0.001
;Turn on the energy equation
define/models energy?
;Enable energy model? [no]
yes
;Compute viscous energy dissipation? [no]
no
;include pressure work in energy equation? [no]
no
;include kinetic energy in energy equation? [no]
no
;Include diffusion at inlets? [yes]
yes
;Specify turbulence model.
define/models/viscous/ke-standard
;Enable the standard k-epsilon turbulence model? [no]
yes
;Select equations to solve.
solve/set/equations flow
;Solve Flow equation(s)? [yes]
yes
solve/set/equations temperature
;Solve Energy equation(s)? [yes]
yes
solve/set/equations ke
;Solve Turbulence equation(s)? [yes]
yes
;Set Pressure Velocity Coupling Scheme to SIMPLEC
solve/set/p-v-coupling
;Pressure Velocity Coupling Scheme [20] ?
;; 20 for SIMPLE
;; 21 for SIMPLEC
;; 22 for PISO
;; 24 for Coupled
21
;Set the discretization schemes.\
solve/set/discretization-scheme pressure
;Convective discretization scheme for Pressure [10]
;; 10 for Standard
;; 14 for PRESTO!
;; 11 for Linear
;; 12 for Second Order
;; 13 for Body Force Weighted
10
solve/set/discretization-scheme mom
;Convective discretization scheme for Momentum [0]
;; 0 for First Order Upwind
;; 1 for Second Order Upwind
;; 2 for Power Law
;; 4 for QUICK
;; 6 for Third-Order MUSCL
1
solve/set/discretization-scheme temperature
;Convective discretization scheme for Energy [0]
;; 0 for First Order Upwind
;; 1 for Second Order Upwind
;; 2 for Power Law
;; 4 for QUICK
;; 6 for Third-Order MUSCL
1
solve/set/discretization-scheme k
;Convective discretization scheme for Turbulence Kinetic Energy [0]
;; 0 for First Order Upwind
;; 1 for Second Order Upwind
;; 2 for Power Law
;; 4 for QUICK
;; 6 for Third-Order MUSCL
1
solve/set/discretization-scheme epsilon
;Convective discretization scheme for Turbulence Dissipation Rate [0]
;; 0 for First Order Upwind
;; 1 for Second Order Upwind
;; 2 for Power Law
;; 4 for QUICK
;; 6 for Third-Order MUSCL
1
;Set underrelaxation factors.
solve/set/under-relaxation pressure
;Underrelaxation factor for Pressure [0.3]
0.9
solve/set/under-relaxation mom
;Underrelaxation factor for Momentum [0.7]
0.9
solve/set/under-relaxation temperature
;Underrelaxation factor for Energy [1]
0.9
solve/set/under-relaxation k
;Underrelaxation factor for Turbulence Kinetic Energy [0.8]
0.9
solve/set/under-relaxation epsilon
;Underrelaxation factor for Turbulence Dissipation Rate [0.8]
0.9
solve/set/under-relaxation turb-viscosity
;Underrelaxation factor for Viscosity [1]
0.9
solve/set/under-relaxation density
;Underrelaxation factor for Density [1]
0.9
solve/set/under-relaxation body-force
;Underrelaxation factor for Body Forces [1]
0.9
;Set multigrid.
solve/set/multi-grid-controls pressure
;Multigrid cycle type for Pressure [1]
1
;Termination criterion [0.1]
1e-30
;Multigrid method for Pressure [0]
0
;Multigrid stabilization for Pressure [0]
0
solve/set/multi-grid-controls x-mom
;Multigrid cycle type for X-Momentum [0]
0
;Termination criterion [0.1]
1e-30
;Residual reduction tolerance for [0.7]
0.999
;Multigrid method for X-Momentum [0]
0
solve/set/multi-grid-controls y-mom
;Multigrid cycle type for X-Momentum [0]
0
;Termination criterion [0.1]
1e-30
;Residual reduction tolerance for [0.7]
0.999
;Multigrid method for X-Momentum [0]
0
solve/set/multi-grid-controls z-mom
;Multigrid cycle type for X-Momentum [0]
0
;Termination criterion [0.1]
1e-30
;Residual reduction tolerance for [0.7]
0.999
;Multigrid method for X-Momentum [0]
0
solve/set/multi-grid-controls k
;Multigrid cycle type for Turbulent Kinetic Energy [0]
0
;Termination criterion [0.1]
1e-30
;Residual reduction tolerance for [0.7]
0.999
;Multigrid method for Turbulent Kinetic Energy [0]
0
solve/set/multi-grid-controls epsilon
;Multigrid cycle type for Turbulent Dissipation Rate [0]
0
;Termination criterion [0.1]
1e-30
;Residual reduction tolerance for [0.7]
0.999
;Multigrid method for Turbulent Dissipation Rate [0]
0
solve/set/multi-grid-controls temperature
;Multigrid cycle type for Energy [0]
0
;Termination criterion [0.1]
1e-30
;Residual reduction tolerance for [0.7]
0.999
;Multigrid method for Energy [0]
0
;Set the convergence criteria.
solve/monitors/residual convergence-criteria
;continuity residual convergence criterion [0.001]
1e-16
;x-velocity residual convergence criterion [0.001]
1e-16
;y-velocity residual convergence criterion [0.001]
1e-16
;z-velocity residual convergence criterion [0.001]
1e-16
;energy residual convergence criterion [1e-06]
1e-16
;k residual convergence criterion [0.001]
1e-16
;epsilon residual convergence criterion [0.001]
1e-16
;Write settings to a case file.
file/write-case
;case file name [""]
"seg1_xx.cas"
阅读(1740) | 评论(0) | 转发(0) |