To set up a compressible flow in ANSYS Fluent, you must follow the steps listed below. (Only those steps relevant specifically to the setup of compressible flows are listed here. You must set up the rest of the problem as usual.)
Set the Operating Pressure in the Operating Conditions Dialog Box.
Setup →
Boundary Conditions → Operating Conditions...
(You can think of as the absolute
static pressure at a point in the flow where you will define the gauge
pressure
to be zero. See Operating Pressure for guidelines on setting the operating pressure. For time-dependent
compressible flows, you may want to specify a floating operating pressure
instead of a constant operating pressure. See Floating Operating Pressure for details.)
Enable the solution of the energy equation.
Setup → Models → Energy
On
(Pressure-based solver only) If you are modeling turbulent flow, enable the optional viscous dissipation terms in the energy equation by turning on Viscous Heating in the Viscous Model Dialog Box. Note that these terms can be important in high-speed flows.
Setup →
Models →
Viscous → Edit...
This step is not necessary if you are using one of the density-based solvers, because the density-based solvers always include the viscous dissipation terms in the energy equation.
Set the following items in the Create/Edit Materials Dialog Box:
Setup →
Materials → Create/Edit...
Select ideal-gas in the drop-down list next to Density.
Define all relevant properties (specific heat, molecular weight, thermal conductivity, and so on).
Set cell zone conditions and boundary conditions (using the Boundary Conditions Task Page and Cell Zone Conditions Task Page), being sure to choose a well-posed cell zone or boundary condition combination that is appropriate for the flow regime. See below for details. Recall that all inputs for pressure (either total pressure or static pressure) must be relative to the operating pressure, and the temperature inputs at inlets should be total (stagnation) temperatures, not static temperatures.
Setup →
Cell Zone Conditions
Setup →
Boundary Conditions
These inputs should ensure a well-posed compressible flow problem. You will also want to consider special solution parameter settings, as noted in Solution Strategies for Compressible Flows, before beginning the flow calculation.
Well-posed inlet and exit boundary conditions for compressible flow are listed below:
For flow inlets:
Pressure inlet: Inlet total temperature and total pressure and, for supersonic inlets, static pressure
Mass-flow inlet: Inlet mass flow and total temperature
For flow exits:
Pressure outlet: Exit static pressure (ignored if flow is supersonic at the exit. All the information travels downstream in a supersonic region, hence the pressure at the outlet can be computed by directly extrapolating from the adjacent cell center [43]. Therefore, it is not meaningful to use the exit static pressure prescribed in the boundary conditions task page, and the exit static pressure is ignored).
Mass-flow outlet: Outlet mass flow
It is important to note that your boundary condition inputs for pressure (either total pressure or static pressure) must be in terms of gauge pressure — that is, pressure relative to the operating pressure defined in the Operating Conditions Dialog Box, as described above.
All temperature inputs at inlets should be total (stagnation) temperatures, not static temperatures.