Program for triangular bending elements with derivative smoothing