In each integration point of an element a residual stress tensor can be specified by the keyword *INITIAL CONDITIONS, TYPE=STRESS. The residual stress should be defined before the first *STEP card.