Versions Compared

Key

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

...

Verification and validation can be thought as a formal process for checking results. We'll first check that the net heat flow to the domain is zero. Then we'll look into mesh refinement and comparison with the analytical solution.

In order to check that the net heat flow to the domain is zero, we need to export the heat flux variation at the bottom and right edges to MATLAB for numerical integration. We already exported qy for the bottom edge to qy_bot.txt. Similarly, export qx for the right edge to qx_right.txt.

We have written a MATLAB script that reads in these ANSYS data files and does the necessary numerical integration to calculate the total heat flux. Download the MATLAB script by right-clicking the link and saving to the directory containing qy_bot.txt: post.m. Running the file will graph the heat flux along each edge, as well as calculate the total heat flux through each of the two edges.

Each of these terms has a specific meaning which we won't get into here. The only verification check discussed below is the effect of mesh refinement.

Refine Mesh

We will also look at the results for the dimensionless temperature along the line y=1. To change the mesh size, go back to Mesh > Edge Sizing in the tree and change the Number of Divisions appropriately. Click Solve. All results will be updated for the new mesh. The plot below contains information from 1x1, 2x2, 3x3, 5x5, and our 10x20 element mesh.  Note how Then, export the results for the temperature along the y=1 path to Excel or MATLAB. In Excel or MATLAB, make a plot showing T vs. x along y=1 for different meshes. You should find that the temperature variation along this line becomes independent of the mesh as the mesh gets finer (i.e. more elements,) the solution converges onto one line.  This is a trivial example, as it converges by 5x5 elements, but consider how mesh refinement can affect results in a complex system.

In other words, Always do mesh refinements until the solution converges. If you don't, it is possible your simulation may be completely off from reality, and will be useless!

...

Compare this to the analytic solution, and note how it converges on the same line:

Image Removed

This analytic solution has been derived, and is shown to be:

Image Removed

With the infinite series coefficient defined as:
Image Removed

And the Infinite eigenvalues are defined as:

Image Removed

Note that Theta, x, and y defined as dimensionless temperature, x coordinate, and y coordinate respectively. The X and Y were reduced by the width W. In fact, for this problem, it turns out we don't need a lot of elements to get a result that is nearly independent of the mesh.


Go to Exercises

Go to all ANSYS Learning Modules