https://9dok.org/document/q5mrlxwr-thermomechanical-stress-from-conditional-lagrange-derivative.html