<!--  /* Font Definitions */  @font-face 	{font-family:Wingdings; 	panose-1:5 0 0 0 0 0 0 0 0 0; 	mso-font-charset:2; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:0 268435456 0 0 -2147483648 0;} @font-face 	{font-family:"Cambria Math"; 	panose-1:0 0 0 0 0 0 0 0 0 0; 	mso-font-charset:1; 	mso-generic-font-family:roman; 	mso-font-format:other; 	mso-font-pitch:variable; 	mso-font-signature:0 0 0 0 0 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoPapDefault 	{mso-style-type:export-only; 	margin-bottom:10.0pt; 	line-height:115%;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.0in 1.0in 1.0in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;}  /* List Definitions */  @list l0 	{mso-list-id:1865442933; 	mso-list-template-ids:2071917502;} @list l0:level1 	{mso-level-number-format:bullet; 	mso-level-text:; 	mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in; 	mso-ansi-font-size:10.0pt; 	font-family:Symbol;} ol 	{margin-bottom:0in;} ul 	{margin-bottom:0in;} -->*Step 4: Set Up Problem in FLUENT*

If you have skipped the previous mesh generation steps 1-3, you can download the mesh by right-clicking on this link. Save the file as _wedge.msh_. You can then proceed with the flow solution steps below.

*Launch FLUENT*

*Start > All Programs > ANSYS 12.0 > Fluid Dynamics > FLUENT 6.3.26*

Select {color:#660099}{*}{_}2D{_}{*}{color} under the Dimension list and {color:#660099}{*}{_}Double Precision{_}{*}{color} under the Options list, and click {color:#660099}{*}{_}Run{_}{*}{color}.

In the double-precision solver, each floating point number is represented using 64 bits in contrast to the single-precision solver which uses 32 bits. The extra bits increase not only the precision but also the range of magnitudes that can be represented. The downside of using double precision is that it requires more memory.

*Import File*

*File > Read > Mesh...*

Navigate to your working directory and select the wedge.msh file. Click {color:#660099}{*}{_}OK{_}{*}{color}.

Check that the displayed information is consistent with our expectations.

*Analyze Grid*

First, we check the grid to make sure that there are no errors.

*Problem Setup > General > Check*

Any errors in the grid would be reported at this time. Check the output and make sure that there are no errors reported.

*Mesh > Info > Size*

How many cells and nodes does the grid have?

*General > Mesh > Display...*

You can look at specific parts of the grid by choosing the items you wish to view under {color:#660099}{*}{_}Surfaces{_}{*}{color} (click to select and click again to deselect a specific boundary). Click *{_}Display{_}* again when you have selected your boundaries. Note what the surfaces _farfield, wedge_, etc. correspond to by selecting and plotting them in turn.

*Define Properties*

*General > Solver > Type*

We see that FLUENT offers two methods ("solvers") for solving the governing equations: Pressure-Based and Density-Based. To figure out the basic difference between these two solvers, let's turn to the documentation.

*Help > User's Guide Contents ...*

This should bring up _ANSYS_ _FLUENT 12.0 User's Guide_ in your web browser. If not, access the User's Guide from the Start menu: *Start > Programs > ANSYS 12.0 > Help > FLUENT Help.* This will bring up the FLUENT documentation in your browser. Click on the link to the user's guide.

Go to chapter 26 in the user's guide; it discusses the Pressure-Based and Density-Based solvers. Section 26.1 introduces the two solvers:

"The pressure-based solver traditionally has been used for incompressible and mildly compressible flows. The density-based approach, on the other hand, was originally designed for high-speed compressible flows. Both approaches are now applicable to a broad range of flows (from incompressible to highly compressible), but the origins of the density-based formulation may give it an accuracy (i.e. shock resolution) advantage over the pressure-based solver for high-speed compressible flows."

"In both methods the velocity field is obtained from the momentum equations. In the density-based approach, the continuity equation is used to obtain the density field while the pressure field is determined from the equation of state."

"On the other hand, in the pressure-based approach, the pressure field is extracted by solving a pressure or pressure correction equation which is obtained by manipulating continuity and momentum equations."

Mull over this and the rest of this section. So which solver do we use for our wedge problem? Turn to section 25.7.1 in chapter 25:

"The pressure-based solver traditionally has been used for incompressible and mildly compressible flows. The density-based approach, on the other hand, was originally designed for high-speed compressible flows. Both approaches are now applicable to a broad range of flows (from incompressible to highly compressible), but the origins of the density-based formulation may give it an accuracy (i.e. shock resolution) advantage over the pressure-based solver for high-speed compressible flows."

Since we expect an oblique shock for our problem and the density-based solver is likely to resolve the shock better, let's pick this solver.

In the {color:#660099}{*}{_}Solver{_}{*}{color} menu, select {color:#660099}{*}{_}Density-Based{_}{*}{color}. !solver_graphic.JPG|thumbnail!
*Problem Setup > Models*

Double click on {color:#660099}{*}{_}Viscous - Laminar{_}{*}{color}

Select {color:#660099}{*}{_}Inviscid{_}{*}{color} under {color:#660099}{*}{_}Model{_}{*}{color}{color:#660099}.{color}

!ViscousModel.JPG|thumbnail,align=left!
\\ \\ \\ \\ \\ \\

Click {color:#660099}{*}{_}OK{_}{*}{color}. This means the solver will neglect the viscous terms in the governing equations.

*Models > Energy*

Double click on {color:#660099}{*}{_}Energy - Off{_}{*}{color}

In compressible flow, the energy equation is coupled to the continuity and momentum equations. So we need to solve the energy equation for our problem.

To turn on the energy equation, check the box next to {color:#660099}{*}{_}Energy Equation{_}{*}{color}and click {color:#660099}{*}{_}OK{_}{*}{color}{color:#990066}.{color}

{color:black}{*}Problem Setup > Materials{*}{color}

{color:black}Make sure air is selected under{color} {color:#660099}{*}{_}Fluid{_}{*}{color}. Double click air, set {color:#660099}{*}{_}Density{_}{*}{color}to {color:#660099}{*}{_}ideal-gas{_}{*}{color} and make sure {color:#660099}{*}{_}Cp{_}{*}{color} is {color:#660099}{*}{_}constant{_}{*}{color}and equal to 1006.43 j/kg-k. Also make sure the Molecular Weight is constant and equal to 28.966 kg/kgmol. Selecting the {color:#660099}{*}{_}ideal gas{_}{*}{color} option means that FLUENT will use the ideal-gas equation of state to relate density to the static pressure and temperature.

Higher Resolution Image

Click {color:#660099}{*}{_}Change/Create{_}{*}{color}.

*Define > Operating Conditions*

To understand what the {color:#660099}{*}{_}Operating Pressure{_}{*}{color} is, read through the short-and-sweet section 8.14.2 in the user's guide. We see that for all flows, FLUENT uses the gauge pressure internally in order to minimize round-off errors. Any time an absolute pressure is needed, as in the ideal gas law, it is generated by adding the {color:#660099}{*}{_}operating pressure{_}{*}{color}to the gauge pressure:

_absolute pressure_ = _gauge pressure_ + _operating pressure_

Round-off errors occur when pressure changes _Δp_ in the flow are much smaller than the pressure values _p._One then gets small differences of large numbers. For our supersonic flow, we'll get significant variation in the absolute pressure so that pressure changes _Δp_ are comparable to pressure levels _p_. So we can work in terms of absolute pressure without being hassled by pesky round-off errors. To have FLUENT work in terms of the absolute pressure, set the {color:#660099}{*}{_}Operating Pressure{_}{*}{color} to 0.

Thus, in our case, there is no difference between the gauge and absolute pressures. Click {color:#660099}{*}{_}OK{_}{*}{color}.

*Define > Boundary Conditions*

Set the boundary condition for the _pressure_farfield{_}surface (aka zone) to the boundary type {color:#660099}{*}{_}pressure-far-field{_}{*}{color}by clicking on the drop-down list. Select {color:#660099}{*}{_}Yes{_}{*}{color}in the pop-up window asking if it's "OK to change pressure_farfield's type from wall to pressure-far-field?".


&nbsp;
Set the {color:#660099}{*}{_}Gauge Pressure{_}{*}{color} to 101325. Set the {color:#660099}{*}{_}Mach Number{_}{*}{color} to 3. Under {color:#660099}{*}{_}X-Component of Flow Direction{_}{*}{color}, enter a value of 1 (i.e. the farfield flow is in the X direction).

Next, click on the {color:#660099}{*}{_}Thermal{_}{*}{color} Tab. Change the temperature to 300K.

Higher Resolution Image

Click {color:#660099}{*}{_}OK{_}{*}{color}. The {color:#660099}{*}{_}pressure-far-field{_}{*}{color}boundary type effectively imposes that there is no upstream propagation of disturbances if the flow at the boundary is supersonic. See section 7.9 of the FLUENT help for more details about this boundary type.

Similarly, change the boundary condition for the _symmetry_ surface to the {color:#660099}{*}{_}symmetry{_}{*}{color}boundary type. No user input is required for the&nbsp; {color:#660099}{*}{_}symmetry{_}{*}{color} boundary type. At any boundary set to the {color:#660099}{*}{_}symmetry{_}{*}{color} type, FLUENT internally sets
* normal velocity = 0
\\
* normal gradients of all variables = 0

See section 7.14 of the FLUENT help for more details.

The boundary type for the _wedge{_}surface is set to {color:#660099}{*}{_}wall{_}{*}{color} by default. There is no need to change that.

Go to Step 5: Solve!

See and rate the complete Learning Module

Go to all FLUENT Learning Modules