mpacts.commands.misc. stresscalculation

In order to be able to use this module import it like this:

import mpacts.commands.misc.stresscalculation
#or assign it to a shorter name
import mpacts.commands.misc.stresscalculation as str
mpacts.commands.misc.stresscalculation.AddStressCalculation(SimOrCmdList=None, mgr=None, evals=False, evecs=False, ResetStress=True, meanstress=False)

Adds to and returns a commandlist (or directly simulation) commands needed to compute eigenvalues, and, if selected, the corresponding eigenvectors. We also add the necessary arrays, if they do not yet exist. The last command in the commandlist will (re-)set the stress-tensors to 0. See also PrincipalStressCommand.

mpacts.commands.misc.stresscalculation._check_add_and_set(mgr, array_type, name, value=None, doNotThrow=True)