" EVALUATION OF THE ESHELBY TENSOR"; "This file computes all the non-zero components of the Eshelby tensor S[ijkl] for the case where no two of the semi-axes a[1], a[2], a[3] are identical. "; "The spheroidal case a[1]=a[2] (but not equal to a[3]) can be solved using the file EshelbySpheroidal."; "It should be called after a[1], a[2]; a[3] and nu have been defined."; aaa:=a[1]*a[2]*a[3]/3: x[1]:=a[2]^2: x[2]:=a[3]^2: x[3]:=a[1]^2: read Carlson: #Note that I_1=(a[1]*a[2]*a[3]/3)*R_D(a[3]^2,a[2]^2;a[1]^2); J[1]:=aaa*R[D]; x[1]:=a[3]^2: x[2]:=a[1]^2: x[3]:=a[2]^2: read Carlson: J[2]:=aaa*R[D]; x[1]:=a[1]^2: x[2]:=a[2]^2: x[3]:=a[3]^2: read Carlson: J[3]:=aaa*R[D]; J[12]:=(J[2]-J[1])/(a[1]^2-a[2]^2); J[23]:=(J[3]-J[2])/(a[2]^2-a[3]^2); J[31]:=(J[1]-J[3])/(a[3]^2-a[1]^2); J[11]:=(1/a[1]^2-J[12]-J[31])/3; J[22]:=(1/a[2]^2-J[23]-J[12])/3; J[33]:=(1/a[3]^2-J[31]-J[23])/3; S[1111]:=3*a[1]^2*J[11]/(2*(1-nu))+(1-2*nu)*J[1]/(2*(1-nu)); S[2222]:=3*a[2]^2*J[22]/(2*(1-nu))+(1-2*nu)*J[2]/(2*(1-nu)); S[3333]:=3*a[3]^2*J[33]/(2*(1-nu))+(1-2*nu)*J[3]/(2*(1-nu)); S[1122]:=a[2]^2*J[12]/(2*(1-nu))-(1-2*nu)*J[1]/(2*(1-nu)); S[2233]:=a[3]^2*J[23]/(2*(1-nu))-(1-2*nu)*J[2]/(2*(1-nu)); S[3311]:=a[1]^2*J[31]/(2*(1-nu))-(1-2*nu)*J[3]/(2*(1-nu)); S[2211]:=a[1]^2*J[12]/(2*(1-nu))-(1-2*nu)*J[2]/(2*(1-nu)); S[3322]:=a[2]^2*J[23]/(2*(1-nu))-(1-2*nu)*J[3]/(2*(1-nu)); S[1133]:=a[3]^2*J[31]/(2*(1-nu))-(1-2*nu)*J[1]/(2*(1-nu)); S[1212]:=(a[1]^2+a[2]^2)*J[12]/(4*(1-nu))+(1-2*nu)*(J[1]+J[2])/(4*(1-nu)); S[2323]:=(a[2]^2+a[3]^2)*J[23]/(4*(1-nu))+(1-2*nu)*(J[2]+J[3])/(4*(1-nu)); S[3131]:=(a[3]^2+a[1]^2)*J[31]/(4*(1-nu))+(1-2*nu)*(J[3]+J[1])/(4*(1-nu)); S[2121]:=S[1212]; S[3232]:=S[2323]; S[1313]:=S[3131]; #This code was tested against the Legendre Elliptic integral code.