IV.3.4.5 Properties of the materials defined in an ESAComp file
Another example defined in file “testCla4.rb” illustrates the printing of material matrices and vectors
as a function of the orientation. The most important lines look as follows:
mat=db.getMaterialCopy("testPly2")
(0..360).step(15) do |iAngle|
theta=1.0*iAngle
STDOUT.printf("Angle = %g' n' n",theta)
STDOUT.printf(" In-plane compliance matrix :' n' n")
mat.write_InPlaneCompliance(STDOUT,theta)
STDOUT.printf("' n")
STDOUT.printf(" In-plane alfa*E :' n' n")
mat.write_InPlaneAlfaE(STDOUT,theta)
STDOUT.printf("' n")
STDOUT.printf(" In-plane alfa :' n' n")
mat.write_InPlaneAlfa(STDOUT,theta)
STDOUT.printf("' n")
STDOUT.printf(" Out-of-plane compliance matrix :' n' n")
mat.write_OOPSCompliance(STDOUT,theta)
STDOUT.printf("' n")
STDOUT.printf("' n")
end