Professional Documents
Culture Documents
Component
Feature
Details
CFX-Pre
User Mode
General mode
Analysis Type
Transient
Fluid Type
General Fluid
Domain Type
Single Domain
Turbulence Model
Laminar
Heat Transfer
Thermal Energy
Buoyant Flow
Boundary Conditions
Symmetry Plane
Outlet (Subsonic)
Wall: No-Slip
Wall: Adiabatic
Wall: Fixed Temperature
Output Control
Timestep
Transient
Plots
Default Locators
Chart
Report
Other
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
137
Feature
Details
Transient Animation
The overall approach for solving this problem is to set up a transient simulation to see how the flow
develops when starting from stationary conditions. Because you are starting from stationary conditions,
there is no need to solve a steady-state simulation for use as the initial guess. You will then model the
buoyant flow and create a report outlining the results in CFD-Post. You will also create an animation
to see changes in temperature with time.
Setting the Working Directory and Starting ANSYS CFX in Stand-alone Mode (p. 3)
138
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Prepare the working directory using the following files in the examples directory:
Buoyancy2D.geo
2.
3.
Select File > Save Case As and set File name to Buoyancy2D.
4.
Click Save.
Edit Case Options > General in the Outline tree view and ensure that Automatic Default Domain
is turned off.
Default Domain generation should be turned off because you will create a new domain manually,
later in this tutorial.
2.
3.
Value
Files of type
CFX-4 (*geo)
File name
Buoyancy2D.geo
[1 (p. 139)]
Footnote
1.
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
139
Click Open.
Right-click Analysis Type in the Outline tree view and select Edit or click Analysis Type
toolbar.
2.
Setting
Value
Basic Settings
Transient
2 [s]
0.025 [s]
0 [s]
in the
[1 (p. 140)]
[2 (p. 140)]
Footnotes
1.
The total time is the total duration, in real time, for the simulation. For this tutorial, the
total time will be set to 2 seconds since it is the time period we are interested in.
2.
In this example the simulation moves forward in 0.025 s increments until the total time
is reached. The step size was determined as a function of the temperature difference
between the top and bottom of the cavity, and the length scale of
the model
, according to:
, where
is the gravity vector and is the thermal expansivity. For details on computing a
fluid time scale estimate, see the theory guide.
3.
140
Click OK.
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
You will model the cavity as if it were tilted at an angle of 30. You can do this by specifying horizontal
and vertical components of the gravity vector, which are aligned with the default coordinate axes, as
shown in the diagram above.
1.
Ensure that Flow Analysis 1 > Default Domain is deleted. If not, right-click Default Domain
and select Delete.
2.
Click Domain
3.
Tab
Setting
Value
Basic
Settings
Primitive 3D
Fluid 1
Air at 25 C
1 [atm]
Buoyant
-4.9 [m s^-2]
-8.5 [m s^-2]
0.0 [m s^-2]
[1 (p. 142)]
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
141
Fluid
Models
Setting
Value
40 [C]
Thermal Energy
None (Laminar)
[2 (p. 142)]
Footnotes
1.
This produces a gravity vector that simulates the tilt of the cavity.
2.
Ensure that the unit setting is correct. This is just an approximate representative domain
temperature.
Click OK.
2.
Setting
Value
Basic
Settings
Boundary Type
Wall
Location
WALLHOT
Boundary Details
Temperature
75 [C]
3.
Click OK.
4.
5.
142
Tab
Setting
Value
Basic
Settings
Boundary Type
Wall
Location
WALLCOLD
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
Tab
Setting
Value
Boundary Details
Temperature
5 [C]
Click OK.
2.
Setting
Value
Basic
Settings
Boundary Type
Symmetry
Location
SYMMET1, SYMMET2
[1 (p. 143)]
Footnote
1.
3.
Click OK.
The default adiabatic wall boundary will be applied automatically to the remaining boundaries.
2.
Setting
Value
Global Settings
Automatic
with Value
0 [m s^1]
0 [m s^1]
0 [m s^1]
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
143
3.
Setting
Value
0 [Pa]
5 [C]
Click OK.
2.
3.
4.
Value
Option
Selected Variables
[1 (p. 144)]
Time Interval
0.1 [s]
[2 (p. 144)]
Footnotes
5.
1.
2.
The Time Interval option specifies the simulation time interval between the writing
of each file. The time interval will be set to 0.1 s, which is 4 times the time step that
was set up earlier. There is no need to set a smaller time interval because it does not
affect the solution accuracy. Choosing a smaller time interval would simply result in
more output files.
Click OK.
2.
144
Tab
Setting
Value
Basic Settings
High Resolution
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Setting
Value
RMS
1.E-4
[1 (p. 145)]
[2 (p. 145)]
Footnotes
3.
1.
The maximum coefficient loops option determines the maximum number of iterations
per time step. It is recommended to set the maximum coefficient loops to between 3
and 5. For this tutorial, it was chosen to be 5, which ensures no net imbalance.
2.
An RMS value of at least 1.E-5 is usually required for adequate convergence, but the
default value of 1.E-4 is sufficient for demonstration purposes.
Click OK.
2.
3.
Setting
Value
File name
Buoyancy2D.def
Click Save.
CFX-Solver Manager automatically starts and, on the Define Run dialog box, the Solver Input
File is set.
4.
If using stand-alone mode, quit CFX-Pre, saving the simulation (.cfx) file at your discretion.
Note
Recall that the output displayed on the Out File tab of the CFX-Solver Manager is more
complicated for transient problems than for steady-state problems. Each timestep consists
of several iterations, and after the timestep, information about various quantities is printed.
1.
2.
Select the check box next to Post-Process Results when the completion message appears at the end
of the run.
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
145
If using stand-alone mode, select the check box next to Shut down CFX-Solver Manager.
4.
Click OK.
Click the Report Viewer tab. Note that the report loads with some automatically-generated statistical
information.
2.
In the Outline tree view, under Report, experiment with the various settings for Mesh Report,
Physics Report and other report objects. These settings control the report contents. On the Report
Viewer tab, you can click Refresh to see the changes to your report.
Comment
Table.
Click the 3D Viewer tab and right-click a blank area of the viewer, then select Predefined Camera >
View From -Z.
2.
3.
4.
5.
6.
Click Apply.
The contour plot shows the temperature at the end of the simulation, since CFD-Post loads values for
the last timestep by default. You can load different timesteps using the Timestep Selector dialog box,
accessible by selecting Tools > Timestep Selector from the main menu.
Before proceeding, turn off the visibility of the contour plot.
146
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
From the main menu, select Insert > Location > Point.
2.
3.
4.
5.
Click Apply.
Note the location of Point 1 in the viewer.
6.
Right-click the Point 1 object in the tree view and select Duplicate from the shortcut menu.
7.
8.
Right-click the Point 2 object in the tree view and select Edit from the shortcut menu.
9.
8.7.2.3. Comment
1.
2.
3.
4.
8.7.2.4. Figure
Figures are CCL objects that can be used to store and switch between different views in a given viewport.
By selecting a figure, the information contained in the figure, such as the camera angle, zoom level,
lighting and the visibility setting of each object in the tree view, is applied to the active viewport and
is usable in reports.
1.
2.
3.
147
2.
3.
4.
5.
6.
7.
8.
9.
2.
3.
148
Value
A1
Location
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Value
A2
Point 1
A3
Point 2
B1
Temperature
B2
=probe(Temperature)@Point 1
B3
=probe(Temperature)@Point 2
The table shows temperatures at the end of the simulation, since CFD-Post loads values for the last
timestep by default. You can load different timesteps using the Timestep Selector dialog box, accessible
by selecting Tools > Timestep Selector.
8.7.4. Animations
You may want to create an animation of the buoyant flow over time. Use the animation feature to see
the changing temperature field. The animation feature was used in Flow from a Circular Vent (p. 97).
8.7.5. Completion
When you have finished, quit CFD-Post.
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
149
150
Release 14.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.