Utility functions

In the course of defining the material behavior, a set of functions that may be useful outside the package internals are documented here, but these are not exported.

MechanicalMaterialModels.macaulayFunction
function macaulay(x)

Calculate the macaulay bracket of x, $\langle x \rangle$

\[\langle x \rangle = \left\lbrace \begin{matrix} 0 & x\leq 0 \\ x & x>0 \end{matrix} \right .\]

source

Material wrappers

MechanicalMaterialModels.RotatedMaterialType
RotatedMaterial(m::AbstractMaterial, r::Vec) <: AbstractMaterial

A rotated material is wrapper around m, such that the material response is evaluated in a local coordinate system defined by the Rodrigues rotation vector, r. Specifically, the input strain is first rotated by θ = -|r| (radians) around r before calling material_response with m. The resulting stress and stiffness are rotated back, θ = +|r| around r, before they are returned.

This is equivalent to rotating the material parameter tensors (e.g. stiffness tensor θ = +|r| around r).

!!! note State variables are in the local coordinate system The state variables are not modified, and are hence defined in the local coordinate system. Care must therefore be taken to rotate the strain to the local coordinates when evaluating the responses, and the output of those evaluations should be rotated back to the global coordinates.

source