Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Introduction to CFX
WS3-1
Introduction
Workshop Supplement
WS3-2
Duct Simulation
Workshop Supplement
vent2
Inlet
vent1
WS3-3
Workshop Supplement
1. Open Workbench
2. Drag CFX into the Project Schematic from the Component Systems
toolbox
3. Change the name of the system to duct
4. Save the project as RoomStudy.wbpj in an appropriate directory
5. Double-click Setup
WS3-4
Import Mesh
Workshop Supplement
The first step is to import the mesh that has already been created:
1. Right-click on Mesh in the Outline tree and select Import Mesh > ICEM
CFD
2. Select the file duct_mesh.cfx5
3. Make sure Mesh Units are in m and click Open to import the mesh
WS3-5
Create Domain
Workshop Supplement
Heat Transfer is not modeled, but since the working fluid is an ideal gas
we need to provide a temperature so its properties can be calculated
WS3-6
Workshop Supplement
Name: VENT1
Boundary Type: Outlet
Location: VENT1
Mass and Momentum Option:
Mass Flow Rate
Mass Flow Rate: 0.225 [kg/s]
Name: INLET
Boundary Type: Inlet
Location: INLET
Mass and Momentum Option:
Total Pressure (stable)
Relative Pressure: 0 [Pa]
Name: VENT2
Boundary Type: Outlet
Location: VENT2
Mass and Momentum Option:
Mass Flow Rate
Mass Flow Rate: 0.225 [kg/s]
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
WS3-7
Solver Control
Workshop Supplement
WS3-8
Monitor Point
Workshop Supplement
WS3-9
Monitor Point
Workshop Supplement
WS3-10
Workshop Supplement
You can now save the project and proceed to write a definition file for
the solver:
1.
2.
3.
4.
WS3-11
Workshop Supplement
1. Examine the residual plots for Momentum and Mass and Turbulence
2. Examine the User Points plot
Monitor point
Residual plot
WS3-12
CFD-Post
Workshop Supplement
Now we will export a Boundary Condition profile from the outlet regions for
use in the next simulation.
1. Select File > Export
2. Change the file name to vent1.csv
3. Use the browse icon to set an appropriate
directory
4. Set Type as BC Profile and Locations as
VENT1
5. Leave Profile Type as Inlet Velocity and
click Save
6. Similarly export a BC profile of VENT2 to
the file named vent2.csv
7. Quit CFD-Post and return to the Project
Schematic
ANSYS, Inc. Proprietary
2009 ANSYS, Inc. All rights reserved.
WS3-13
Operating Conditions
Workshop Supplement
vent2
vent1
WS3-14
Workshop Supplement
1. Drag CFX into the Project Schematic from the Component Systems
toolbox
2. Change the name of the system to room
3. Double-click Setup in the room system
WS3-15
Import Mesh
Workshop Supplement
The first step is to import the mesh that has already been created:
1. Right-click on Mesh in the Outline tree and select Import Mesh > ICEM
CFD
2. Select the file room.cfx5
3. Make sure the Mesh Units are in m and click Open to import the mesh
WS3-16
Create Domain
Workshop Supplement
WS3-17
Create Domain
4.
5.
6.
7.
8.
9.
Workshop Supplement
WS3-18
Workshop Supplement
WS3-19
Workshop Supplement
Name: vent1
Boundary Type: Inlet
Location: VENT1
Select Use Profile Data and choose
VENT1 as the Profile Name
Click Generate Values
This will create expressions for the
Mass and Momentum option on the
Boundary Details tab that reference the
profile functions
WS3-20
Workshop Supplement
Name: vent2
Boundary Type: Inlet
Location: VENT2
Select Use Profile Data and choose VENT2 as the Profile Name
Click Generate Values
The Mass and Momentum Option will be automatically updated
Name: workers
Boundary Type: Wall
Location: WORKERS
Heat Transfer Option: Temperature
Fixed Temperature: 37 [C]
WS3-21
Workshop Supplement
Name: outlet
Boundary Type: Opening
Location: OUTLET
Mass and Momentum Option: Opening Pres. and Dirn
Relative Pressure: 0 [Pa]
Heat Transfer Option: Opening Temperature
Opening Temperature: 21 [C]
Name: monitors
Boundary Type: Wall
Location: monitors
Heat Transfer Option: Temperature
Fixed Temperature: 30 [C]
WS3-22
Workshop Supplement
WS3-23
Workshop Supplement
WS3-24
Solver Control
Workshop Supplement
WS3-25
Monitor Point
Workshop Supplement
WS3-26
Monitor Point
Workshop Supplement
WS3-27
Workshop Supplement
You can now save the project and proceed to write a definition file for
the Solver:
1. Close CFX-Pre to return to the Project window and save the project
The solution will take several hours to solve on one processor. To save
time, a results file is provided with this workshop. The Project
Schematic shows that the room Solution has not been completed, so
you cannot view the results in CFD-Post yet. To view the results for the
file provided youll need to add the results to the project.
2.
3.
4.
5.
WS3-28
Project Schematic
Workshop Supplement
WS3-29
Workshop Supplement
Now you can view the solution for the previously solved case.
1. Right-click on Solution in the room results system and select Display
Monitors
2. Examine the residual plots for Momentum and Mass, Heat Transfer
and Turbulence
The Residual Target of 1e-4 was met at about 270 iterations, but the solver
did not stop because the Conservation Target had not been met
WS3-30
Workshop Supplement
Residual plot
Monitor points
WS3-31
Workshop Supplement
6. Check the Domain Imbalances at the end of the .out file for each
equation
You can right click in the text monitor, select Find and search for
Domain Imbalance to find the appropriate section
An imbalance is given for the U-Mom, V-Mom, W-Mom, P-Mass and HEnergy equations
It took 653 iterations to satisfy the Conservation Target of 1% for the HEnergy equation see the Plot Monitor 1 tab
WS3-32
CFD-Post
Workshop Supplement
WS3-33
CFD-Post
Workshop Supplement
Using the same procedure, create several other planes displaying the
temperature profile:
1. ZX Plane at Y = 2 [m]
2. ZX Plane at Y = 5.1 [m]
3. XY Plane at Z = 0.25 [m]
4. When finished observing the temperature distribution, uncheck the
visibility boxes of the planes that you created
WS3-34
CFD-Post
Workshop Supplement
WS3-35
Workshop Supplement
WS3-36