@PostStep
#
Description#
This method is used to perform calculations after the local integration is finished. Normally, there will be a number of auxiliary variables which may be desired and can be calculated as a direct function of the new internal variable values. The material tangent matrix is also required for the global solution, and this function may be used for that as well.
If the behavior has re-defined the method integrate
@PostStep
has no relevance.
Syntax#
This command is a standard pre-processor method. The method does not
define any of the user variables (coefficients are of course available).
Use the @SetVar
command to set all required variables.
Example#
The following example (from Plastic.z
) is for a behavior using
both explicit and implicit integration.
@PostStep {
@SetVar eel,epi;
epi = grad - eel;
flux = *elasticity*eel;
if (integration&LOCAL_INTEGRATION::THETA_ID) {
SMATRIX tmp(psz,f_grad,0,0);
if (Dtime>0.0) m_tg_matrix=*elasticity*tmp;
else m_tg_matrix=*elasticity;
} else if (m_flags&CALC_TG_MATRIX) m_tg_matrix=*elasticity;
}