# Matplotlib compatibility patch for Pyodide
import matplotlib
if not hasattr(matplotlib.RcParams, "_get"):
matplotlib.RcParams._get = dict.get
Tensors#
Tensor notation for the second order tensor \({\mathrm K}\) in 2D is defined as follows:
\[{\mathrm K}_{ij} \quad \text{with} \quad i, j = x, y\]
This is treated in chapter 2.2 of the lecture notes Introduction to Continuum Mechanics (Hartsuijker and Welleman, 2007).