ANSYS: Potential Issue with Element Table Operation
Under certain conditions, the finite element (FE) method recovers the exact theoretical solution for the average stress over the domain of the mesh. Thus, if the theoretical stress field is and the finite element stress field is then Eq(1) holds, where is the volume of the FE model.
The conditions required for this equality to hold include:
- That boundary tractions and body loads are applied in a consistent manner.
- That the integration is taken over the complete model.
- That the integration scheme used by the FE system is an appropriate one. Numerical evidence shows that full or reduced Gauss quadrature, [1], is appropriate whereas some selective integration schemes are not.
The reader will realise that the FE solution, whilst generally approximate for a given mesh, is capable of converging to the theoretical solution with appropriate mesh refinement. Thus, even for a coarse FE mesh, the approximate FE solution must have some characteristics in common with the theoretical solution and it turns out that the way it does it is as shown in Eq(1).
From an engineers’ viewpoint, it might seem that Eq(1) is of little practical use, however, there are a couple of cases where this equality can be of value to the practising engineer:
- For rotating discs the average hoop stress is often used, sometimes erroneously, to predict the plastic burst speed, [2].
- Under certain conditions, the average shear stress in a beam modelled as a two or three-dimensional continuum can be used to provide the exact shear stress at the centroid of the beam cross section, [3].
Integrating FE Stresses
Let us consider a two-dimensional continuum which is modelled with standard, low-fidelity, conforming finite elements (CFE). Such CFE systems typically offer lower and higher degree, four and eight noded, elements for this purpose. The lower order element is usually provided with reduced (1x1) and full (2x2) Gauss quadrature (integration) schemes. For the higher order element usually only reduced (2x2) integration is offered. The Gauss quadrature scheme replaces the integral by a summation of FE stresses at Gauss or integration points over element e as shown in Eq(2).
The average stress over the mesh of elements is obtained by summing the elemental values for all the elements in the mesh – remember the equality of Eq(1) only holds for the complete mesh.
A Simple Example
In Figure 1, the Continuum Region Element (CRE) Method of John Robinson is applied to a mesh of elements. The mesh is centred at the origin of the continuum region over which a stress field that satisfies the equilibrium conditions with zero body forces, and which has corresponding strains that are compatible, i.e., a statically and kinematically admissible stress field, is defined. The boundary tractions from the stress field are shown as they act on the mesh of elements – the mesh sees a moment being applied to left and right hand edges and is, thus, sometimes called the constant moment problem.
Consider a 3m by 3m square model meshed with 3x3=9 quadrilateral elements as shown in Figure 2. Two meshes will be considered, the first being a regular undistorted mesh and the second being distorted by moving one of the nodes as shown.
In ANSYS the lower order element is called Plane182 and the higher order element Plane183. The model of Figure 1 was analysed in ANSYS using the meshes of Figure 2 and the FE stresses () are shown in Figure 3 where it is seen that the only model capable of capturing the exact solution is that with the undistorted Plane183(Reduced) elements. Whilst the solution is independent of the elastic properties, the values used for this study were 210GPa for Young’s modulus, and 0.3 for Poisson’s ratio.
To get ANSYS to calculate the average stress the Element Table features are used. Firstly, SX and VOLU need to be added to the table and then a new term SX multiplied by VOLU – this quantity is called I in Figure 4. This quantity is then summed over the elements in the mesh and divided by VOLU to provide the average stress.
The average stress (SXAVE) reported by ANSYS and shown in Figure 4 is different from the theoretical value which is zero. Table 1 presents the results for the six meshes considered and indicates whether the calculation of the average stress through the ANSYS Element Table features are exact or approximate. The weights for the Gauss quadrature schemes are also shown in the table.
The reason why ANSYS only provides an approximate answer to the average stress when the elements are distorted and when a 2x2 Gauss quadrature scheme is adopted is that the software appears to adopt an approximate method rather than exact method. The calculation for the distorted mesh of Plane182(Full) elements is shown in Table 2. The approximate expression used by ANSYS to calculate the area weighted stress for an element is compared with the exact method in Eq(3). The approach used by ANSYS is equivalent to calculating the average stress from the four Gauss points and then multiply this by the area of the element. When a single Gauss point is used, or when the element is undistorted, the approximate approach used by ANSYS leads to the correct solution but this is not the case, as shown, when a 2x2 integration scheme is used and the element is distorted.
Closure
This technical note has demonstrated how ANSYS appears to adopt an approximate approach for the calculation of such quantities as the average stress when using the Element Table features of the software. The reason for this is surmised to be that, as a legacy code, ANSYS was written at a time when any reduction in floating point operations (FLOPS) was worth having even if, as in this case, the accuracy might be compromised. Clearly with modern computer power this should not be an issue and the engineer would certainly prefer to have accurate values for such quantities. There is, it is believed, with certain software vendors, a reluctance to make any change to the software so as to ensure that when a customer runs a legacy database, the same result as was achieved by earlier versions of the software is obtained.
As the error obtained using the approximate approach in this example is rather small, it is not considered to be normally of practical engineering interest. However, the fact that this error exists at all demonstrates leads the engineer to question what other calculations have been fudged within the software he/she is using!
References
[1] https://math2.uncc.edu/~shaodeng/TEACHING/math5172/Lectures/Lect_15.PDF
[2] Angus Ramsay, NAFEMS Benchmark Challenge Number 8, NAFEMS Benchmark Magazine, January 2017.
https://www.ramsay-maunder.co.uk/knowledge-base/projects/nafems-benchmark-challenge/nbc-number-8/
[3] Angus Ramsay, NAFEMS Benchmark Challenge Number 6, NAFEMS Benchmark Magazine,
https://www.ramsay-maunder.co.uk/knowledge-base/projects/nafems-benchmark-challenge/nbc-number-6/
Further details of this technical note may be found here:
Other technical notes from Ramsay Maunder Associates may be found here:
Engineering/Managing Director at RMA
7 年Thanks Moqadas - a useful reminder that not all software is free of issues...
Adviseur Kabels en Leidingen @ Sayed Engineering
7 年Beneficial article.
? Pressure Vessel Design ? Nonlinear FEA Analysis ? FEA Speaker/Teacher
7 年Angus! This is truly a great work - a pleasure to read :)
Database Administrator at DR?XLMAIER Group Romania
7 年Great article Mr. Angus Ramsay. I am also happy so see that ANSYS APDL doesn't disappear once with new WB !