Orthotropic Wrapper#
Download notebookThis example demonstrates the Orthotropic material.
This example is adapted from this web page.
A simple example which evaluates the Yield domain in the plane-stress plane (Szz = 0) of the original isotropic J2Plasticity model (Sy = 400 MPa) and of its orthotropic counter-part (Sx = 1.5Sy, Ex = 1.5Ey).
Modeling#
import math
E = 200000.0
# Poisson's ratio
v = 0.3
# Shear modulus
G = E/(2.0*(1.0+v))
# Bulk modulus
K = E/(3.0*(1.0-2.0*v))
# Yield stress
Fy = 400.0
First create a xara.MultiaxialMaterial to be used by the Orthotropic material wrapper. Here the PlasticJ2 model is used.
import xara
base = xara.MultiaxialMaterial("PlasticJ2", E=E, G=G, Fy=Fy)
Now create the Orthotropic material
orth = xara.MultiaxialMaterial("Orthotropic", base,
Ex=E*1.5,
Ey=E,
Ez=E,
Gxy=G,
Gyz=G,
Gzx=G,
vxy=v,
vyz=v,
vzx=v,
Axx=1.0/1.5,
Ayy=1.0,
Azz=1.0,
Axyxy=1.0,
Ayzyz=1.0,
Axzxz=1.0)
The model uses a Triangle element with a PlaneStress section.
def create_patch(material):
model = xara.Model(ndm=2, ndf=2)
# Add both materials to the model
model.material(base)
model.material(orth)
# Create a plane section
section = xara.PlaneSection("PlaneStress", material, 1.0)
# Add the section to the model
model.section(section)
# Create three nodes for the triangle
model.node(1, 0, 0 )
model.node(2, 1, 0 )
model.node(3, 0, 1 )
# Fix boundary conditions
model.fix( 1, 1, 1)
model.fix( 2, 0, 1)
model.fix( 3, 1, 0)
# Create the triangle element
model.element("tri31", 1, (1, 2, 3), section=section)
return model
Analysis#
def analyze_dir(dX, dY, material):
# the 2D model
model = create_patch(material)
# a simple ramp
model.timeSeries("Linear", 1, factor=2.0*Fy)
# imposed stresses
model.pattern( "Plain", 1, 1 )
model.load( 2, dX, 0.0 )
model.load( 3, 0.0, dY )
# analyze
model.constraints("Transformation")
model.numberer("Plain")
model.system("FullGeneral" )
model.test("NormDispIncr", 1.0e-6, 3, 9)
model.algorithm( "Newton" )
dLambda = 0.1
dLambdaMin = 0.001
Lambda = 0.0
sX = 0.0
sY = 0.0
while True:
model.integrator( "LoadControl", dLambda )
model.analysis("Static")
ok = model.analyze( 1 )
if ok == 0:
stress = model.eleResponse( 1, "material", 1, "stress" )
sX = stress[0]
sY = stress[1]
Lambda += dLambda
if Lambda > 0.9999:
break
else:
dLambda /= 2.0
if dLambda < dLambdaMin:
break
return sX, sY
def analyze_surface():
NDiv = 48
NP = NDiv+1
dAngle = 2.0*math.pi/NDiv
SX = [0.0]*NP
SY = [0.0]*NP
SXortho = [0.0]*NP
SYortho = [0.0]*NP
for i in range(NDiv):
angle = i*dAngle
dX = math.cos(angle)
dY = math.sin(angle)
iso = analyze_dir(dX, dY, base)
ortho = analyze_dir(dX, dY, orth)
SX[i] = iso[0]
SY[i] = iso[1]
SXortho[i] = ortho[0]
SYortho[i] = ortho[1]
SX[-1] = SX[0]
SY[-1] = SY[0]
SXortho[-1] = SXortho[0]
SYortho[-1] = SYortho[0]
return (SX, SY, SXortho, SYortho)
Results#
from matplotlib import pyplot as plt
# Call our analysis function
SX, SY, SXortho, SYortho = analyze_surface()
# Create the plot
fig, ax = plt.subplots(1,1)
ax.plot(SX, SY, label='Isotropic')
ax.plot(SXortho, SYortho, label='Orthotropic')
ax.grid(True)
ax.set_aspect('equal', 'box')
ax.set(xlim=[-750, 900],ylim=[-750, 500])
ax.plot([-1000,1000],[0,0],color='black',linewidth=0.5)
ax.plot([0,0],[-1000,1000],color='black',linewidth=0.5)
ax.legend(loc='lower right');
FAILURE :: Failed to solve system, tangent may be singular
FAILURE :: Failed to solve system, tangent may be singular
FAILURE :: Failed to solve system, tangent may be singular
FAILURE :: Failed to solve system, tangent may be singular
FAILURE :: Failed to solve system, tangent may be singular
FAILURE :: Failed to solve system, tangent may be singular
FAILURE :: Failed to solve system, tangent may be singular
FAILURE :: Failed to solve system, tangent may be singular
FAILURE :: Failed to solve system, tangent may be singular
FAILURE :: Failed to solve system, tangent may be singular
FAILURE :: Failed to solve system, tangent may be singular
FAILURE :: Failed to solve system, tangent may be singular