A computer program product for determining a residual stress state of two elastoplastic cylinders coldworked by expansion, said computer program product being configured to store program instructions for execution on a computer system enabling the computer system to perform the steps of:
- calculating whether applying an internal expansion load to an inner cylinder will result in the interference of the inner cylinder with an outer cylinder;
- calculating whether unloading the internal expansion load will result in assembly of the inner cylinder with the outer cylinder;
- calculating residual stresses, residual displacement and residual strains in the inner cylinder and the outer cylinder;
- and
- recording said residual stresses, residual displacement and residual strains of the inner cylinder and the outer cylinder.