You are on page 1of 3

C:\Users\u1dc_tg\Documents\Ansys\Journal_and_batch_file\run_simulation.

jou

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48

Mittwoch, 9. Oktober 2013 10:10

;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;; This Journal reads, solves, write
;;; solution and monitor images
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
rcd tryXX_CASE_NAME.cas
;;; Read case and data files
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;; Define viscous, k-epsilon turbulence model and non equil. wall funtion
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;;/define/models/viscous/ke-realizable? yes
;;;/define/models/viscous/near-wall-treatment/non-equilibrium-wall-fn? yes
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;; Define boundary conditions
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;; inlet : /type, zoneID, yyy m/s, SupersonicPres=0 TurbInten=10%, HydDia=100mm,
With energy equation
;;;/define boundary-conditions velocity-inlet inlet no no yes yes no 0.937 no 0 no
353 no no no yes 10 0.015
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;; Define reference temperature
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;;/report/reference-values/temperature 288.15
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;; Define Solution methods
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;;/solve/set/discretization-scheme/pressure 10 ;;; Pressure : standard spatial
discretization
;;;/solve/set/discretization-scheme/mom 1
;;; Momentum : Second Order Upwind
;;;/solve/set/discretization-scheme/k 1
;;; Turbulence Kinetic Energy : Second
Order Upwind
;;;/solve/set/discretization-scheme/epsilon 1
;;; Turbulence Dissipation rate :
Second Order Upwind
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;; Define Solution controls
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
/solve/set/equations/temperature no
;;; Energy equation
/solve/set/equations/flow yes
;;; Flow equation
/solve/set/equations/ke yes
;;; Turbulence equation
;;; Covergence criteria : continuity, x, y, z, k, epsilon
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;;/solve/monitors/residual/convergence-criteria 1e-04 1e-04 1e-04 1e-04 1e-04 1e-04
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;; Create monitors : name, "type", variable, (surfaceID), plot, window No., print
on screen, save file, frequency
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;;/solve/monitors/surface/clear-monitors
;;; Clear the old monitors
;;;/solve/monitors/surface/set-monitor pressure-at-inlet "Mass-Weighted Average"
pressure (4) yes 2 yes no 1
;;;yes
;;;/solve/monitors/surface/set-monitor velocity-at-outlet "Mass-Weighted Average"
velocity-magnitude (3) yes 3 yes no 1
;;;yes
;;;/solve/monitors/surface/set-monitor yplus-on-walls "Facet Maximum" y-plus (1) yes
4 yes no 1
;;;yes
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-1-

C:\Users\u1dc_tg\Documents\Ansys\Journal_and_batch_file\run_simulation.jou

49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103

Mittwoch, 9. Oktober 2013 10:10

/file/auto-save/data-frequency 100 ;;; Save data file every 500 iterations


;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
/it 2
;;; Run Calculation for xxxxx iterations
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;; Saves hard copy of the Residuals
;;; and convergence plots
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
/display/set/picture/color-mode/color
/display/set/picture/y-res/800
/display/set/picture/x-res/1400
/display/set/picture/inv/yes
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
display/set-window/1
display/hc/tryXX_CASE_NAME_Residuals.png
;;; name of the image file
yes
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
display/set-window/2
display/hc/tryXX_CASE_NAME_monitor2.png
yes
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
display/set-window/3
display/hc/tryXX_CASE_NAME_monitor3.png
yes
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
display/set-window/4
display/hc/tryXX_CASE_NAME_monitor4.png
yes
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;; Define Solution controls
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;;/solve/set/equations/temperature yes
;;; Energy equation
;;;/solve/set/equations/flow no
;;; Flow equation
;;;/solve/set/equations/ke no
;;; Turbulence equation
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;; Covergence criteria : energy equation
;;;/solve/monitors/residual/convergence-criteria 1e-06
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;; Create monitors : name, "type", variable, (surfaceID), plot?, window No., print
on screen?, save file?, filename, frequency
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;;/solve/monitors/surface/clear-monitors
;;; Clear the old monitors
;;;/solve/monitors/surface/set-monitor Temperature-at-outlet "Mass-Weighted Average"
temperature (0) yes 5 yes yes tryXX_CASE_NAME_T_at_outlet02.plot 1
;;;yes
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;;/it 150
;;; Run Calculation for xxxxx iterations
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;; Saves hard copy of the Residuals
;;; and convergence plots
;;;display/set-window/1
;;;display/hc/tryXX_CASE_NAME_Residuals02.png
;;; name of the image file
;;;yes
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;;display/set-window/5
;;;display/hc/tryXX_CASE_NAME_T_at_outlet02.png
;;;yes
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-2-

C:\Users\u1dc_tg\Documents\Ansys\Journal_and_batch_file\run_simulation.jou

104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145

Mittwoch, 9. Oktober 2013 10:10

;;; Write output back to data file


;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
wcd tryXX_CASE_NAME.cas
;;; Overwrite case and data files
yes
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;; Write the summary of the case
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
/report/summary yes tryXX_CASE_NAME_report.sum
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;; Exit FLUENT
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
exit
;;; Exit Fluent
yes
exit
yes
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;; End of Journal
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
If energy equation is included, following would be the inlet BC
;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;;;/define/boundary-conditions/velocity-inlet
;;;(inlet)
;;;zone id/name [inlet] inlet
;;;Velocity Specification Method: Magnitude and Direction [no] no
;;;Velocity Specification Method: Components [no] no
;;;Velocity Specification Method: Magnitude, Normal to Boundary [yes] yes
;;;Reference Frame: Absolute [yes] yes
;;;Use Profile for Velocity Magnitude? [no] no
;;;Velocity Magnitude (m/s) [0.9370000000000001] 0.937
;;;Use Profile for Supersonic/Initial Gauge Pressure? [no] no
;;;Supersonic/Initial Gauge Pressure (pascal) [0] 0
;;;Use Profile for Temperature? [no] no
;;;Temperature (k) [10] 353
;;;Turbulent Specification Method: K and Epsilon [yes] no
;;;Turbulent Specification Method: Intensity and Length Scale [no] no
;;;Turbulent Specification Method: Intensity and Viscosity Ratio [no] no
;;;Turbulent Specification Method: Intensity and Hydraulic Diameter [no] yes
;;;Turbulent Intensity (%) [9.999999776482582] 10
;;;Hydraulic Diameter (m) [0.015] 0.015

-3-

You might also like