How S-N curve is generated?

how solid works generate S-N curve based on ASME steel curves. may I know the theory behind it.

SolidworksSimulation