# HERTZ EXAMPLE; E1:=210*1000; nu:=0.2; "The composite modulus E* in MPa"; Estar:=E1/(2*(1-nu^2)); "Normal force F"; F:=evalf(10000/cos(5*Pi/180)); "Radius of the conical surface [mm]"; Rc:=500/cos(5*Pi/180); "Radius of the rail surface [mm]"; Rr:=100; A:=1/(2*Rc); B:=1/(2*Rr); s:=(EllipticE(k)/(1-k^2)-EllipticK(k))/(EllipticK(k)-EllipticE(k))-B/A; "k is then given by"; k1:=fsolve(s=0,k); "and the ratio b/a is"; ba:=sqrt(1-k1^2); "Then the semi-axes of the contact area are"; a:=evalf((3*F*(EllipticK(k1)-EllipticE(k1))/(2*Pi*A*Estar*k1^2)))^(1/3); b:=ba*a; "The maximum contact pressure [MPa} is"; p[0]:=evalf(3*F/(2*Pi*a*b));