Plane Stress FEA with Adaptive Meshing
Operator: Abdulla Al Fahad. How tools are built and checked
Two-dimensional elasticity is the finite element problem with the most closed-form answers to test against, which makes it a good place to learn what a mesh does to a result. A thin plate loaded in its own plane is plane stress; a long prism restrained along its length is plane strain; both reduce to the same triangle elements with a different constitutive matrix. This page meshes a 2D outline, applies supports and loads that you describe in a line each, and reports displacements, stresses, reactions and how well the mesh resolves the problem.
Its elements are three-node constant strain triangles and six-node quadratic triangles. The quadratic ones are the default and the ones to use: they capture bending in a cantilever with a few elements across the depth and follow the stress gradient round a hole, where a constant strain triangle needs many more elements to say the same thing. Refinement near holes, re-entrant corners and point loads is automatic, and an optional adaptive loop remeshes where an error estimate says the stress field is least resolved.
It is a screening tool with no contact, plasticity, buckling or 3D behaviour, and sharp corners and point loads have no finite exact stress, so their peaks depend on the mesh.
Key features
- Outline from coordinates or a DXF, with holes, in any consistent unit system
- Plane stress with thickness, or plane strain, for an isotropic material with a uniform temperature change and optional body forces
- CST or six-node quadratic triangles on a graded mesh, refined near holes, re-entrant corners and point loads
- Supports and loads written as selector lines: lines such as x=0, circles, ellipses, the outer boundary or the holes
- Edge pressure and traction, with consistent nodal forces, and point forces to the nearest node
- von Mises, σx, σy, τxy, principal stresses and displacements as contour plots on the original or deformed shape, a probe by click or coordinates, and reactions
- A Zienkiewicz-Zhu energy-norm error estimate, and up to three adaptive remeshing passes towards a target
How outlines, selectors and elements are defined
The outline is x y pairs, one per line, with a blank line before each hole. Curves are straight segments, so draw an arc with many points: the examples use 90 or more per quarter circle. Supports are a selector followed by ux, uy or fixed, and loads a selector followed by pressure P or traction TX TY, or a line starting with point X Y FX FY. Selectors are x=VALUE and y=VALUE for the boundary nodes on that line, all, outer, holes, circle CX CY R, and ellipse CX CY A B; a roller on a symmetry plane is a line such as x=0 ux.
A positive pressure pushes into the part, and a negative one pulls outward, which is how the NAFEMS membrane's outward pressure is entered. A traction is a force per area in x and y. Loads and supports must lie on the boundary: a selector that matches nothing stops the run with a message. The thickness multiplies edge loads, so give a force per area for a thickness you have also entered.
The mesh size is the largest edge length in the interior, and the refinement ratio divides it near holes, corners and point loads. A run is limited to 2,500 corner nodes with quadratic elements (about four times as many nodes in all) or 8,000 with linear ones, and the equations are solved by conjugate gradients with a progress bar and a cancel button.
How it works
The mesh comes from a boundary resampled to a local size, interior points placed by sequential Poisson-disk sampling on a fine lattice, a Delaunay triangulation constrained along the boundary and a few smoothing passes. Quadratic elements add a node on the middle of each edge, on the straight chord between its corners.
Stiffness is assembled from three-point Gauss integration for the quadratic triangle, which is exact for its quadratic integrand, and one point for the constant strain triangle. Supports remove their degrees of freedom, and the reactions are the stiffness times the displacements minus the load at each fixed degree of freedom, so their sum can be compared with the applied load.
Nodal stresses are averages of the element stresses at the node, and plots shade each element from its nodes. The error estimate smooths the stress field by that averaging and measures the energy of the difference between the smoothed and the raw stresses over the whole model, as a percentage of the total energy norm.
For adaptive passes each element gets a new target size from its share of the error, the part is remeshed with that size field and solved again, and the loop stops when the estimate falls below your target or the passes run out. The table of passes shows the estimate and the peak von Mises stress from each.
Common use cases
- A design engineer checks the stress concentration next to a lightening hole in a bracket and sees the peak stress converge as the refinement ratio rises.
- A student runs the cantilever with CST and quadratic elements and watches the CST result sit 20 percent too stiff at the same element size.
- A materials engineer loads a notched strip in plane strain and compares the stress at the notch root with a chart value.
How to use this tool
- Pick an example, or enter an outline, or import a DXF, and enter E, ν and thickness.
- Write the support lines and the load lines, remembering the sign of a pressure.
- Choose the element, set an element size and a refinement ratio near holes and corners, and decide on adaptive passes.
- Press Mesh and solve and watch the progress; use Cancel if the mesh is larger than you meant.
- Read the error estimate and the reaction sum against the applied load before reading any contour.
- Choose a result to plot, click a point to probe it, and refine until the value you care about stops moving.
- Download the results CSV, and the SVG or PNG of the contour plot.
Example
Examples from the list (the numbers are from the page's default settings)
Plate with a circular hole: radius 1, plate 20 wide, load 1, element size 2, refinement 12. NAFEMS LE1 quarter model: size 300, refinement 3. Cantilever: depth 1, length 10, tip load 1, quadratic elements of size 0.25.What the page reports
Hole: 341 elements, stress at the hole edge 3.027 times the applied stress, error estimate 0.32 percent. LE1: 325 elements, σyy at the inner ellipse 92.35 MPa against the benchmark's 92.7; with size 250, two adaptive passes and a 1 percent target it gives 92.71 on 389 elements. Cantilever: tip deflection 4.021 downward against 4.031 from beam theory with shear, 4.000 from bending alone; the same mesh with CST elements gives 3.235.Tips for best results
- Read the reaction sum before anything else: it should equal the applied load with the opposite sign to several digits, and a gap means a load or support selector did not match what you thought.
- To compare element types, hold the element size fixed and change only the element: the stiffness difference in bending is very clear.
- A small hole needs a high refinement ratio: the plate example uses 12 for a hole of radius 1 with element size 2, while LE1 reaches 92.35 MPa with 3 on its gentler ellipse.
- A symmetry plane is a roller. Model a quarter of a plate with x=0 ux and y=0 uy and load the quarter's edge by the same stress.
- Probe a node on the boundary rather than an interior node when you want the peak, since the largest stress is on the free surface of a hole.
Common pitfalls
Stress at a sharp re-entrant corner is infinite in the exact elasticity solution, so the peak von Mises value grows as the mesh gets finer. Report stresses near corners with the mesh size, or round the corner.
A point load has the same problem: the displacement converges but the stress under the load does not.
The error estimate is for the energy norm of the whole model. A model can have an estimate of 1 percent and still be 5 percent off in the stress at one boundary node.
Plane stress is for thin plates and plane strain for long prisms. A part that is neither needs a 3D analysis, which this page does not offer.
Linear triangles are very stiff in bending. A coarse CST mesh of a beam can be tens of percent too stiff, which is a property of the element and not a bug.
Common errors and how to fix them
- A load selector matched no boundary edges.
- Check its coordinate. x=100 only matches edges whose end nodes lie within a tiny tolerance of x = 100, so a part that ends at 99.9 needs x=99.9.
- The supports fix fewer than three degrees of freedom, so the part can move as a rigid body.
- Add a second support, such as a roller on another edge, to stop rotation and translation.
- The mesh would pass 2,500 nodes. Use a larger element size.
- Raise the element size or lower the refinement ratio; with quadratic elements the cap applies to corner nodes.
Best practices
- Run each important result on at least two meshes and quote the change.
- Check one case against a closed form before trusting a new geometry: a plate with a hole, a cantilever or a thick ring.
- Keep the outline text with the results so the geometry can be rebuilt exactly.
- State the element type and the number of elements beside every reported stress.
Tested against closed forms and a benchmark
For a plate with a hole in tension, Kirsch's solution gives a stress of 3 at the edge of the hole for an infinite plate, and finite-width plates follow Peterson's charts, which put the factor near 3.03 when the hole is a tenth of the width. The page gives 3.027 on 341 elements and 3.039 on 431. NAFEMS LE1, the elliptic membrane in plane stress with a 10 MPa outward pressure, has a published target of 92.7 MPa for σyy at (2.0, 0), and the page's 92.35 and 92.71 on small meshes are within 0.4 and 0.02 percent. The cantilever result is checked against Timoshenko beam theory, including the shear deflection, and agrees to a quarter of a percent.
What the elements can and cannot do
The six-node triangle represents a linearly varying strain, so a few of them across a beam's depth follow the bending, and a quadratic displacement field follows a circular hole closely when its edges are short. The three-node triangle represents constant strain, so it cannot bend without shear locking and needs many more elements for the same answer. The mid-edge nodes lie on straight chords, so curved boundaries are only as accurate as the polyline you give.
Frequently asked questions
Why do I get a negative stress where I expected tension?
Check the sign of the pressure. A positive pressure pushes into the part and compresses it; the LE1 example uses -10 because its pressure acts outward.
How do I model a symmetric part with half the geometry?
Draw the half or quarter, then add a roller on each symmetry line: x=0 ux for a vertical line, y=0 uy for a horizontal one, and load the cut part in the same way you would load the whole.
Does it do axisymmetric or Q4 elements?
No. The page offers plane stress and plane strain with three-node and six-node triangles.
How accurate are the nodal stresses at the boundary?
They are averages from the elements at the node, which are accurate to a few percent on a fine mesh and less reliable on a coarse one. Compare two meshes before quoting a boundary peak.