Modul Gambit
Modul Gambit
TUTORIAL 1
PROBLEM DESCRIPTION
11
The text entry box for Height can be left blank; GAMBIT will set this value to be
the same value as the Width by default.
12
13
14
unite result
15
16
mesh
result
17
Examine Mesh
Examine Mesh
Command Botton
Good quality mesh
18
Examine Mesh
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
TUTORIAL 2
We have a flat plate at a constant temperature of 413K. The plate is infinitely wide. The
velocity profile of the fluid is uniform at the point x = 0. The free stream temperature of the
fluid is 353K. The assumption of incompressible flow becomes invalid increasingly less
valid for larger temperature differences between the plate and freestream. Because of
this, we will treat this as a compressible flow.
74
In order to achieve these flow conditions, we will use these free stream flow
conditions:
According to the ideal gas law, this temperature and pressure result in the following
freestream density:
75
Solve this problem in FLUENT. Validate the solution by plotting the y+ values at the
plate. Also plot the velocity profile at x = 1m. Then plot Reynolds Number vs. Nusselt
Number. Compare the accuracy of your results from FLUENT with empirical
correlations.
Preliminary Analysis
We expect the turbulent boundary layer to grow along the plate. As the boundary layer
grows in thickness, the rate of heat transfer (q'') and thus the heat transfer coefficient
(h) will decrease.
76
77
Create Vertices
We will treat this problem as a 2-dimensional problem by assuming that the plate is
infinitely wide.
78
Create Edges
An edge is created by selecting two vertices and creating a line between them.
Create Face
To form a face out of the area enclosed by the four lines, we need to select the four
edges that enclose this area.
Save
Main Menu > File > Save As...
Enter the file name, plate.dbs
79
Mesh Face
80
81
TUTORIAL 3
Problem Description
The problem to be considered is shown schematically in Figure below. A cold
fluid at 26o C enters through the large pipe and mixes with a warmer fluid at
40o C in the elbow. The pipe dimensions are in inches, and the fluid properties
and boundary conditions are given in SI units. The Reynolds number at the main
inlet is 2.03e5 , so that a turbulent model will be necessary.
83
Display
84
Display
Display
85
This command sequence opens the Create Real Circular Arc form.
Display
86
Display
87
89
90
This command sequence opens the Create Face From Wireframe form.
91
2. Create a face for the small pipe by selecting the four edges
This command sequence opens the Create Face From Wireframe form.
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
TUTORIAL 4
Problem Description
124
125
Move Cylinder I
Enter a Global translation vector of (0, 0, 8) to move the cylinder 8 units in the z
direction.
127
128
129
131
132
133
Geometry Decomposition
1. Create a vertex inside the volume
134
Geometry Decomposition
2. Create two straight edges using the new vertex
135
Geometry Decomposition
3. Create a face using the two new edges
136
Geometry Decomposition
4. Create a volume
137
138
139
140
141
Enter 0.5 for the Interval size under Spacing and click the Apply button at the
bottom of the form.
142
144
145
TUTORIAL 5
Modeling Cyclone
146
Problem Description
Cyclone and dust outlet geometries for separation
tests and separation efficiencies (gas flow 800
m/h, standard pressure, 20 C, particle load 5.31
g/kg, feed material: limestone powder, medium
particle size 5 m, solid density 2770 kg/m)
Modifikasi
147
tengah
untuk
148
Methoda top down lebih mudah digunakan karena bentuk benda yang
simetris yaitu geometry dibuat dari volume-volume tersendiri
Step Command button
Geometry Command
Volume Command
Global control
Fit to window
Sebelum
Sesudah
Global control
Fit to window
150
151
152
153
Face yg dipilih
154
155
157
Silinder besar
Edge yg
dipilih
Start vertex
End vertex
Volume brick
Face silinder
Volume final
162
Delete volume
Perintah ini untuk menghilangkan sisa dari volume brick
yang tidak digunakan
Final volume
Volume yg di delete
163
Shade
YZ koordinat
164
Meshing Cyclon
Meshing model cycon
Model cyclon
sebelum di meshing
Model cyclon
sesudah di meshing
165
166
Move face
167
Volume yg di split
Volume yg sudah
di split
168
Sebelum
Sesudah
169
Rectangular
face
yang
membantu pada perintah split
tadi kemudian dihilangkan/di
delete
Rectangular face
yg di delete
Sebelum
Sesudah
170
Split volume
Lakukan perintah split volume untuk menyatukan
inlet cyclon dengan body cyclon
171
Meshing egde
Meshing pada upper
geomatry (volume) yang
kompleks lebih mudah
dilakukan
dengan
melakukan meshing pada
lower geometry (edge)
terlebih dahulu
Egde yg dipilih
Meshing egde
Egde yg dipilih
Meshing egde
Egde yg dipilih
174
Meshing egde
2 Egde yg dipilih
Meshing face
2 face yg dipilih
ambil
Meshing volume
volume yg dipilih
ambil
177
Meshing volume
Tahapan meshing volume tersebut di lakukan pula untuk body geometry volume yang
lainnya sehingga didapatkan meshing pada body cyclon seperti gambar dibawah ini.
Shade display
Hidden display
Meshing edge
Egde yg dipilih
Meshing face
face yg dipilih
ambil
Meshing volume
volume yg dipilih
ambil
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
TUTORIAL 6
Pipe Flow
197
Problem Specification
Consider fluid flowing through a circular pipe of contant cross-section. The pipe diameter D=0.2 m
and length L=8 m. The inlet velocity Vin=1 m/ s. Consider the velocity to be constant over the inlet
cross-section. The fluid exhausts into the ambient atmosphere which is at a pressure of 1 atm.
Take density =1 kg/ m3 and coefficient of viscosity = 2 x 10-3 kg/(ms). The Reynolds number Re
based on the pipe diameter is
where Vavg is the average velocity at the inlet, which is 1m/s in this case.
Solve this problem using FLUENT. Plot the centerline velocity, wall skin-friction coefficient, and
velocity profile at the outlet. Validate your results.
198
199
Create Face
200
Zoom out
202
Now we mesh line at arc circle in the inlet and outlet pipe
203
204
205
206
207
208
TUTORIAL 7
Three Pipe
Intersection
209
PROBLEM DESCRIPTION
problem spesification
Decomposition of the
three-pipe intersection
geometry
210
Axis Location
Clylinder I
+Z
Clylinder II
+X
Clylinder III
+Y
Create a Sphere
212
final result
213
2. Split Volume
215
4. Created faces
DISPLAY
ATTRIBUTES
Display Attributes
Comman Button
218
Decomposed geometry
219
220
221
REPEAT
222
Mesh Result
223
Mesh Result
224
Mesh Result
225
Mesh Result
226
Mesh Result
227
229
230
Display Type
Select Preset
Configuration
Command Button
231
232
233
TUTORIAL
Boundary condition
The left edge is the inflow of the flow field, the right edge the outflow, the
top edge the open top of the flow field, and the bottom edge the plate.
235
This will bring up the Specify Boundary Types window on the Operation Panel. We
will first specify that the left edge is the inflow. Under Entity:, pick Edges so that
GAMBIT knows we want to pick an edge
Now select the left edge by Shift-clicking on it. The selected edge should appear in
the yellow box next to the Edges box as well as the Label/Type list under the Edges
box.
Next to Name:, enter inflow.
For Type:, select VELOCITY_INLET. You may have to move the Specify Boundary
Types box up in order to see the bottom of the list and select VELOCITY_INLET.
236
Click Apply. You should see the new entry appear under Name/Type box near the top
of the window.
Repeat this process for the other three edges according
to the following table:
237
238
TUTORIAL
Boundary condition
240
241
242
TUTORIAL
Boundary condition
244
245
TUTORIAL
Boundary condition
Modeling Cyclone
246
247
248
249
Face outlet-atas
250
Face outlet-bawah
251
252
253
File save as
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
TUTORIAL 1
Consider fluid flowing through a circular pipe of contant cross-section. The pipe diameter D=0.2 m
and length L=8 m. The inlet velocity Vin=1 m/s. Consider the velocity to be constant over the inlet
cross-section. The fluid exhausts into the ambient atmosphere which is at a pressure of 1 atm.
Take density =1 kg/ m3 and coefficient of viscosity = 2 x 10-3 kg/(ms). The Reynolds number Re
based on the pipe diameter is
where Vavg is the average velocity at the inlet, which is 1m/s in this case.
Solve this problem using FLUENT. Plot the centerline velocity, wall skin-friction coefficient, and
velocity profile at the outlet. Validate your results.
332
333
Create Vertices
334
335
Display line 1
336
Create Face
To form a face out of the area
enclosed by the four lines, we need to
select the four ledges that enclose this
area.
337
Mesh Face
Zoom
339
We will first specify that the left edge is the inlet. Under Entity:, pick
Edges so that GAMBIT knows we want to pick an edge.
340
341
342
343
344
346
347
348
The (absolute) pressure at the outlet is 1 atm. Since the operating pressure
is set to 1 atm, the outlet gauge pressure = outlet absolute pressure operating pressure = 0. Choose outlet under Zone. The Type of this
boundary is pressure-outlet. Click on Set.... The default value of the Gauge
Pressure is 0. Click Cancel to leave the default in place.
Lastly, click on wall under Zones and make sure Type is set as wall.
Click Close to close the Boundary Conditions menu.
349
Step 5: Solve!
We'll use a second-order discretization scheme.
Main Menu > Solve > Controls > Solution...
Change Momentum to Second Order Upwind.
350
354
355
356
358
359
360
We can see that the fully developed region is reached at around x=3.0m and
the skin friction coefficient in this region is around 1.54. Compare the
numerical value of 1.54 with the theoretical, fully-developed value of 0.16.
Save the data from this plot: Pick Write to File under Options and click
Write.... Enter skin friction coefficient 5 x 100.xy for XY File and click OK.
361
Velocity Profile
To plot the position variable on the y axis of the graph, uncheck Position on X
Axis under Options and choose Position on Y Axis instead. To make the
position variable the radial distance from the centerline, under Plot Direction,
change X to 0 and Y to 1. To plot the axial velocity on the x axis of the graph,
for X Axis Function, pick Velocity... and Axial Velocity under that.
Since we want to plot this at the outlet boundary, pick outlet under Surfaces.
Change both the x and y axes to Auto-Range.
Uncheck Write to File under Options so that we can see the graph. Click Plot.
362
To see how the velocity profile changes in the developing region, let us
add the profiles at x=0.6m (x/D=3) and x=0.12m (x/D=6) to the above plot.
First, create a line at x=0.6m using the Line/Rake tool:
Main Menu > Surface > Line/Rake
We'll create a straight line from (x0,y0)=(0.6,0) to (x1,y1)=(0.6,0.1).
Select Line Tool under Options. Enter x0=0.6, y0=0, x1=0.6, y1=0.1.
Enter line1 under New Surface Name. Click Create.
To see the line just created, select
Main Menu > Display > Grid...
Velocity Vectors
Main Menu > Display > Vectors... > Display
Change Scale to 0.4 in the Vectors menu and click Display.
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
TUTORIAL 2
the inlet velocity is 1 m/s, the fluid exhausts into the ambient atmosphere
and density is 1 kg/m3. For = 2 x 10-5 kg/(ms), the Reynolds no. based
on the pipe diameter and average velocity at the inlet is
391
392
Create Vertices
393
394
395
Create Face
To form a face out of the area
enclosed by the four lines, we need to
select the four ledges that enclose this
area.
396
397
Mesh Edges
We use 30 divisions for the vertical edges.
To resolve the much higher gradient near the wall for a turbulent flow,
we will use smaller grid spacing near the wall by employing grid
stretching.
For Type in the Mesh Edges menu, select First Length from the drop
down box. Next to Length, type in 0.001.
We want 30 divisions on each of the vertical edges; so select Interval
Count from the drop down box under Spacing and enter 30 in the text
box to its left.
398
399
Shift left-click on the face and click Apply. The meshed area should look
like this after zooming in:
400
Exit GAMBIT: Main Menu > File > Exit and save the session.
401
402
Grid
First, we check the grid to make sure that there are no errors.
Main Menu > Grid > Check
Any errors in the grid would be reported at this time. Check the output
and make sure that there are no errors reported. Then select:
Main Menu > Grid > Info > Size
The following summary about the grid should appear:
403
404
405
406
Step 5: Solve!
Main Menu > Solve > Controls > Solution...
Change Discretization for Momentum,
Turbulence Kinetic Energy and
Turbulence Dissipation Rate (scroll
down to see it) equations to Second
Order Upwind.
Set Initial Guess
Main Menu > Solve > Initialize > Initialize...
In the Solution Initialization menu that
comes up, choose inlet under Compute
From. The Axial Velocity for all cells will
be set to 1 m/s, the Radial Velocity to 0
m/s and the Gauge Pressure to 0 Pa.
The Turbulence Kinetic Energy and
Dissipation Rate (scroll down to see it)
values are set from the prescribed
values for the Turbulence Intensity and Click Init. Close the Solution
Initialization window.
Hydraulic Diameter at the inlet.
408
409
410
411
412
Velocity Profile
We'll plot the axial velocity at the outlet as a function of the distance
from the center of the pipe.
Change the plot settings so that the radial distance from the axis is
plotted as the ordinate: In the Solution XY Plot window, uncheck
Position on X Axis under Options and choose Position on Y Axis
instead. Under Plot Direction, change X to 0 and Y to 1. For the X Axis
Function i.e. the abscissa, pick Velocity... and Axial Velocity under that.
413
Since we want to plot this at the outlet boundary, pick only outlet under
Surfaces.
Uncheck Write to File. Click Plot.
The axial velocity is maximum at the
centerline and zero at the wall to satisfy
the no-slip boundary condition for
viscous flow. Compare qualitatively the
near-wall velocity gradient normal to the
wall with the laminar case. Which is
larger? From this, what can you say
about the relative stregths of near-wall
mixing in the laminar and turbulent
cases?
Save this plot as profile.xy.
414
415
TUTORIAL 3
417
418
Step 1: Grid
Read the grid file mixing elbow 2d.msh.
File
Read
Case...
419
Check
420
Scale...
421
Grid...
422
Step 2: Models
1.Keep the default solver settings. 2.Turn on the standard
Define
Models
Solver...
Define
Models
turbulence model.
Viscous...
423
Models
Energy...
Step 3: Materials
1. Create a new material
called water.
Define
Materials...
424
425
426
3. Repeat previous operation for inlet-2, using the values in the following table:
4. Set the boundary conditions for outlet, as shown in the panel below
427
428
Step 5: Solution
1. Initialize the flow field using the boundary conditions set at inlet-1.
Solve
Initialize
Initialize...
429
Monitors
Residual...
430
Monitors
Surface...
431
Write
Case...
Iterate...
432
433
Write
Data...
434
Contours...
435
436
Vectors...
437
438
XY Plot...
439
).
440
Contours...
7. Write the case and data files to save the settings for the custom field function.
File
Write
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
TUTORIAL 4
457
Problem Description
This problem considers a 2D section of a tube bank. A schematic of the
problem is shown in Figure 1. The bank consists of uniformly spaced tubes with
a diameter of 1 cm, that are staggered in the direction of cross-fluid flow. Their
centers are separated by a distance of 2 cm in the
direction, and 1 cm in
the
direction. The bank has a depth of 1 m.
Because of the symmetry of the tube
bank geometry, only a portion of the
domain needs to be modeled. The
computational domain is shown in
outline in Figure 1. A mass flow rate
of 0.05 kg/s is applied to the inflow
boundary of the periodic module.
The temperature of the tube wall
(
) is 400 K and the bulk
temperature of the cross-flow water
(
) is 300 K. The properties of
water that are used in the model are
shown in Figure 1.
Figure 1 : schematic of the problem
458
Step 1: Grid
Start the 2D version of FLUENT.
Check
459
460
Step 2: Models
Keep the default solver settings.
Define
Models
Solver...
461
462
Step 3: Materials
Copy the properties of liquid water from the database.
Define
Materials...
Click on the Fluent Database... button
Select water-liquid (h2o l ) from the Fluent Fluid Materials list.
Click Copy and Close the panel.
463
464
465
466
Step 5: Solution
Set the solution parameters.
Solve
Controls
Solution...
Set the Under-Relaxation Factor for Energy to 0.9.
Under Discretization, select Second Order Upwind for Momentum
and Energy.
467
468
Write
Case...
469
The energy residual curve begins to flatten out after about 350 iterations. For the
solution to converge, you need to reduce the under-relaxation factor for energy.
470
Iterate...
Step 6: Postprocessing
Display filled contours of static pressure
Display
Contours...
Under Options, select Filled.
In the Contours of drop-down list, select Pressure... and Static Pressure.
Click Display
472
Change the view to mirror the display across the symmetry planes
Display
Views...
Under Mirror Planes, select all of the symmetry zones by clicking the
shaded icon at the right side.
Click Apply and Close the panel.
473
474
475
Plot the temperature profiles at three cross sections of the tube bank.
Create an isosurface on the periodic tube bank at
= 0.01 m (through
the first tube).
Surface
Iso-Surface...
1.
2.
3.
4.
476
477
Static Temperature at
478
TUTORIAL 5
Problem Description
The schematic of the heat exchanger, with dimensions in mm, is shown in Figure
Below. The geometry contains symmetry boundary conditions at the top and
bottom planes.
Problem schematic
Assume that pressurized liquid ammonia at 240 K is to be heated in the
heat exchanger and that the fin walls are at a constant temperature of 350 K. The
mass flux of liquid ammonia through the heat exchanger is 303.14 kg/s-m2 and
the hydraulic diameter is 3.51 mm. The viscosity of liquid ammonia is 0.000152
kg/m-s, and the Reynolds number based on hydraulic diameter is 7000, which
makes it a weakly turbulent region (i.e., low Reynolds number turbulent regime).
Periodic boundaries are used at the beginning and ending planes of the
domain. A periodic mass flow rate of 1.385 kg/s will be used.
480
481
Step 1: Grid
Start the 2D version of FLUENT.
482
483
Step 2: Models
Keep the default solver settings.
Define
Models
Solver...
484
485
Step 3: Materials
Copy the properties of ammonia-liquid (nh3<l>) from the database.
Define
Materials...
Click on the Fluent Database... button
Select ammonia-liquid (nh3<l>) from the Fluent Fluid Materials list.
Click Copy and Close the panel.
486
487
488
489
490
Step 6: Solution
Initialize the solution.
Solve
Initialize
Initialize...
Set X Velocity to 0.5 m/s, Turbulence Dissipation Rate to 1e5 m2/s3, and
Temperature to 240 K.
Click Init and Close the panel.
491
492
Enable the monitoring of the surface Stanton number on the longest wall
(wall-top).
Solve
Monitors
Surface...
493
Enable the monitoring of the drag coefficient on the longest wall (wall-top).
Solve
Monitors
force...
Specify a report of the Drag Coefficient for wall-drop in the X direction.
494
Set appropriate reference values for use in reporting the drag coefficient and
surface Stanton number.
Report
Reference Values...
495
496
Scaled Residuals
497
498
Disable solution of the flow and turbulence equations and enable solution of the
energy equation.
Solve
Controls
Solution...
499
Iterate...
500
Enable solution of all equations, solve until convergence, and save the final
case and data files.
502
Solve
Iterate...
Step 7: Postprocessing
Enable reflection of the display across the symmetry planes.
Select all planes under Mirror Planes, click Apply, and close the panel.
Display
Views...
504
505
506
507
508
Summary
For liquid ammonia at Re = 7000 over heat exchanger surface #11.32-0.737-SR,
the experimental data in terms of pressure drop performance is cD = 0.019 and
in terms of heat transfer performance is St = 3.87 103.
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
TUTORIAL 6
Problem Description
This problem considers an air-water mixture flowing upwards in a duct and then splitting in
a tee-junction. The ducts are 25 mm in width, the inlet section of the duct is 125 mm long,
and the top and the side ducts are 250 mm long. The geometry and data for the problem
are shown in Figure below :
535
Step 1: Grid
Read the grid file ( tee.msh)
File
Read
Case...
536
Check
Grid...
537
538
Step 2: Models
Keep the default settings for the 2D segregated steady-state solver.
Define
Models
Solver...
Models
Multiphase...
Models
Viscous...
540
Operating Conditions...
Step 3: Materials
Copy liquid water from the materials database so that it can be used for the
primary phase.
Define
Materials...
541
Step 4: Phases
Define the liquid water and air phases that flow in the tee junction.
Define
Phases...
543
544
Boundary Conditions...
545
546
2
547
Controls
Solution...
Monitors
Residual...
Initialize
Initialize...
1
2
549
Write
Case...
Iterate...
Write
550
Contours...
551
Contours...
552
Contours...
553
Phases...
Iterate...
555
Write
556
Contours...
557
Contours...
558
Contours...
559
560
561
562
563
564
565
566
567
568
569
570
571
TUTORIAL 7
Problem Description
The problem to be considered is shown schematically in Figure below. Air at
300 K enters a 2-D channel which has an insulated upper wall and a heated
lower wall. The temperature on the lower wall varies sinusoidally with xposition according to:
The calculation will be performed assuming steady state, incompressible,
laminar flow inthe channel.
Schematic problem
573
Step 1: Grid
Start the 2D version of FLUENT
Read
Case...
574
Grid...
575
Step 2: Models
Keep the default settings for the 2D segregated steady-state solver.
Define
Models
Solver...
Models
Energy...
576
Step 3: Materials
We will use the default fluid properties of air for this problem. Therefore, we
need not makeany changes to the material properties..
Define
Materials...
577
Compile the UDF wallprof.c using the Interpreted UDFs panel. Enter wallprof.c
under Source File Name..
Define
User-Defined
Functions
Interpreted...
Specify the C preprocessor to be used in the CPP Command Name field.
578
Keep the default Stack Size setting of 10000, unless the number of local
variables in your function will cause the stack to overflow.
Select the Use Contributed CPP option if you want to use the C preprocessor
thatFluent Inc. has supplied, instead of using your own.
Click Compile.
When the compilation is over, click Close to close the panel..
579
Boundary Conditions...
580
581
Step 6: Solution
Initialize the flow field using the boundary conditions set at velocity-inlet-1
Solve
Initialize
Initialize...
Monitors
Residual...
582
Write
Case...
Iterate...
583
Step 7: Postprocessing
Display filled contours of static temperature.
Display
Contours...
TUTORIAL 8
Problem Description
The geometry to be considered in this tutorial is shown in Figure below.
Flow through a simple nozzle is simulated as a 2D planar model. The nozzle has
an inlet height of 0.2 m, and the nozzle contours have a sinusoidal shape that
produces a 10% reduction in flow area. Due to symmetry, only half of the nozzle
is modeled.
Problem Specification
586
Step 1: Grid
Start the 2D version of FLUENT
Read
Case...
587
Views...
Step 2: Units
For convenience, define new units for pressure.
Define
Units...
Select pressure under Quantities, and atm under Units
Close the panel.
589
Step 3: Models
Select the coupled implicit solver.
Define
Models
Solver...
The coupled implicit solver is the solver
of choice for compressible, transonic flows without
significant regions of low-speed flow. In cases with
significant low-speed flow regions, the segregated
solver is preferred. Also, for transient cases with
traveling shocks, the coupled explicit solver with
explicit time stepping may be the most efficient.
590
591
Step 4: Materials
Set the properties for air, the default fluid material.
Define
Materials...
592
Operating Conditions...
Here, the operating pressure is set to zero and boundary condition inputs for
pressure will be defined in terms of absolute pressures. Boundary condition
inputs should always be relative to the value used for operating pressure.
593
Boundary Conditions...
594
595
596
598
599
Monitors
Residual...
600
Monitors
Surface...
601
Write
Case...
Iterate...
Write
Data...
603
604