# Wiki source code of Inelastic strain at cracking

1 During calculation, beams are represented by their centroidal curve, which coincides with uncracked centre-of-gravity line. The centroids will be moved to a new position when a member cracks, which means that the centre-of-gravity line of the member will differ from the original centre-of-gravity line for an uncracked member. This difference must be considered when the strain-curvature results from the section calculation are translated into effective stiffness.
2
3 As described in the section about [[effective stiffness>>Effective stiffness]] the conditions displayed in the figure (axial compressive force with tension in the centroidal curve of the member) cause trouble when calculating the effective area. There must be correspondence between the beam and the section analysis (compatibility) for a valid calculation to take place. The lengthening of the centroidal curve will not be compatible to the axial compressing strain, i.e. compatibility in strain is not at hand. In order to restore compatibility, the program chooses to interpret the difference in strain between the frame calculation and the section analysis as an inelastic deflection that is added to the beam.
4
5 The difference in strain for a member is obtained from
6
7 [[image:1537735229997-477.png||height="13" width="12"]]ε = ε,,cg,uncr,, – [[image:1537735219412-580.png||height="13" width="12"]] / L
8
9 where:
10
11 * ε,,cg,uncr,, = an average strain in the centroidal curve of the member, such as creeping, shrinkage and thermal elongation,
12 * [[image:1537735235943-928.png||height="13" width="12"]] = an average strain in the centroidal curve of the member, such as creeping, shrinkage and thermal elongation,
13 * L = member length.
14
15 During iteration [[image:1537735242649-279.png||height="13" width="12"]]ε is added to [[image:1537735285438-258.png||height="13" width="10"]][[image:1537735246743-461.png||height="13" width="12"]]ε from the previous step. When a displacement is [[image:1537735251262-273.png||height="13" width="12"]]ε = 0 during a new iteration step, the strains within the frame calculation and section analysis correspond.