Solid mechanics is the branch of continuum mechanics that studies the behavior of solid materials, especially their motion and deformation under the action of forces, temperature changes, phase changes, and other external or internal agents. The MOOSE tensor mechanics module provides a tool for solving solid mechanics problems using the finite element method (FEM). To learn more about the tensor mechanics module in MOOSE, go here.

In this tutorial, we will cover the following topics

  • Constructing an input file to solve a basic mechanics problem with the mesh taken from a file
  • Visualizing tensor fields
  • Solving a 2D axisymmetric problem
  • Representing plastic deformation using J2 plasticity
  • Extruding a 2D mesh to make a 3D mesh
  • Solving a 3D finite deformation mechanics problem

This tutorial only uses elements from the tensor mechanics module. Therefore it can be run using the executable from the tensor mechanics module, the executable from the combined module, or the executable of a MOOSE based application that pulls from the tensor mechanics module. For instructions on compiling the modules, look here.

For the tutorial, you can create an input file by hand using a text editor of your choice (we recommend Atom and running the code from the command line, or using peacock. All of the input files for this tutorial can be found in



The tutorial has three sections: