Residual stress at castellated beams

Hello,

Is there any way to apply residual stress at castellated beams (initial internal stress in static equilibrium that cause no strain at the members) ?

Thank you in advance.