Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In order to test our simulation for convergence, we will refine the mesh. Refining the mesh will allow use to make sure that the results we are calculating are independent of the mesh. However, instead of refining the mesh everywhere (which would be wasteful, as most of the area of the domain far away from the shock has constant values), we will use our results to refine our mesh. Specifically, we are going to use the gradient of the pressure to determine where to refine the mesh. First, let's take a look at our mesh. In the Outline window, select Graphics and Animations, under _Graphics, select Mesh, then press Setup. Select all of the surfaces (except y=0.35) and press Display. This will display the current mesh.

...

Our goal is to discover the areas of high gradient, and mark those areas for adaption. Using the contour graph we can then find the areas of high pressure gradient that we want to refine. In the Contours window, uncheck Auto Range. This will allow us to specify the range of gradients we can see in the graph. Change the Min value to 10000. Then press Display. You will see that the pressure gradients above 10000 generally mark the area of high pressure gradient quite well. We will use 10000 as our threshold for refinement.

...

Return to the Gradient Adaption window, and enter 10000 into Refine Threshold. Then press Mark. The print window will inform us we have marked 70 elements for refinement. Next, press Adapt. You will be asked if you want to change the mesh. Press Yes.

...

As we can see from the table, we are getting fairly good matching between the computation and analytical approaches. From this we can build our trust in our simulation.

Continue to Exercises

Go to all FLUENT Learning Modules