shear force and bending moment diagram example below uses BEAM188 elements .
example uses pyMAPDL to run the simulation
Pydpf to extract result
matplotlib to plot the SF and BM diagrams
You can alter the beam SECTYPE,SECDATA, fix_location and force location as input arguments of the function