If we use higher order shape functions (for example in a truss element) does this increase the continuity of stress field or the stress will remain discontinuous?
To ensure the continuity of the stress, you need to add the strain as a degree of freedom. In a truss element, you will need to work with C1 elements with u and du/dx ad degrees of freedom per element
Mohammad Tawfik thank you!One last thing...for example if the displacement field is represented exactly using cubic shape functions(i am talking for truss with C0 continuity) and its like U(x)=-(x^3)/6+1.Then if we plot the stress will look like a discontinuous function?
the function which interpolates the solution between the discrete values obtained at the mesh nodes is the shape function and high order polynomials may used for increase the continuity of stress field.