コード例 #1
0
ファイル: Shear.py プロジェクト: bstaber/DynELA
young = 206000
poisson = 0.3
density = 7.83e-09
heatCapacity = 4.6e+08
taylorQuinney = 0.9
A = 806.0
B = 614.0
C = 0.0089
n = 0.168
m = 1.1
depsp0 = 1.0
Tm = 1540.0
T0 = 20.0

# Creates the main Object
model = dnl.DynELA("Shear")

# Creates the Nodes
model.createNode(1, 0.00, 0.00, 0.00)
model.createNode(2, 10.0, 0.00, 0.00)
model.createNode(3, 10.0, 10.0, 0.00)
model.createNode(4, 0.00, 10.0, 0.00)
print("Number of nodes created:", model.getNodesNumber())

# Creates the Elements
model.setDefaultElement(dnl.Element.ElQua4N2D)
model.createElement(1, 1, 2, 3, 4)
print("Number of elements created:", model.getElementsNumber())

# Creates the Groups
allNS = dnl.NodeSet("NS_All")
コード例 #2
0
ファイル: BarNecking.py プロジェクト: bstaber/DynELA
A = 806.0
B = 614.0
C = 0.0089
n = 0.168
m = 1.1
depsp0 = 1.0
Tm = 1540.0
T0 = 20.0

dxWidth = bottomWidth / nbElementsWidth
dxHeigh = heigh / nbElementsHeigh
ddx = (topWidth - bottomWidth) / bottomWidth / heigh
speed = displacement / stopTime

# Creates the main Object
model = dnl.DynELA("BarNecking")

# Creates the Nodes
nbNodes = 1
nsAll = dnl.NodeSet("NS_All")
dxHeigh /= (1 / factor + 1) / 2
y = 0
for j in range(nbElementsHeigh + 1):
    for i in range(nbElementsWidth + 1):
        model.createNode(nbNodes, i * dxWidth * (1 + ddx * y), y, 0)
        model.add(nsAll, nbNodes)
        nbNodes += 1
    if (j == nbElementsHeigh / 2): dxHeigh /= factor
    y += dxHeigh
nbNodes -= 1
print("Number of nodes created:", model.getNodesNumber())
コード例 #3
0
young = 206000
poisson = 0.3
density = 7.83e-09
heatCapacity = 4.6e+08
taylorQuinney = 0.9
A = 806.0
B = 614.0
C = 0.0089
n = 0.168
m = 1.1
depsp0 = 1.0
Tm = 1540.0
T0 = 20.0

# Creates the main Object
model = dnl.DynELA("Tensile")

# Creates the Nodes
model.createNode(1, 0.00, 0.00, 0.00)
model.createNode(2, 10.0, 0.00, 0.00)
model.createNode(3, 10.0, 10.0, 0.00)
model.createNode(4, 0.00, 10.0, 0.00)
print("Number of nodes created:", model.getNodesNumber())

# Creates the Elements
model.setDefaultElement(dnl.Element.ElQua4N2D)
model.createElement(1, 1, 2, 3, 4)
print("Number of elements created:", model.getElementsNumber())

# Creates the Groups
allNS = dnl.NodeSet("NS_All")
コード例 #4
0
ファイル: Taylor.py プロジェクト: bstaber/DynELA
heatCapacity = 4.6e+08
taylorQuinney = 0.9
A = 806.0
B = 614.0
C = 0.0089
n = 0.168
m = 1.1
depsp0 = 1.0
Tm = 1540.0
T0 = 20.0

dxWidth = width / (nbElementsWidth)
dxHeigh = heigh / (nbElementsHeigh)

# Creates the main Object
model = dnl.DynELA("Taylor")

# Creates the Nodes
nbNodes = 1
allNS = dnl.NodeSet("NS_All")
for j in range(nbElementsHeigh + 1):
    for i in range(nbElementsWidth + 1):
        model.createNode(nbNodes, i * dxWidth, j * dxHeigh, 0.00)
        model.add(allNS, nbNodes)
        nbNodes += 1
nbNodes -= 1
print("Number of nodes created:", model.getNodesNumber())

# Creates the Elements
model.setDefaultElement(dnl.Element.ElQua4NAx)
nbElements = 1
コード例 #5
0
young = 206000
poisson = 0.3
density = 7.83e-09
heatCapacity = 4.6e+08
taylorQuinney = 0.9
A = 806.0 * 10e8
B = 614.0
C = 0.0089
n = 0.168
m = 1.1
depsp0 = 1.0
Tm = 1540.0
T0 = 20.0

# Creates the main Object
model = dnl.DynELA("Shear-Elastic")

# Creates the Nodes
model.createNode(1, 0.00, 0.00, 0.00)
model.createNode(2, 10.0, 0.00, 0.00)
model.createNode(3, 10.0, 10.0, 0.00)
model.createNode(4, 0.00, 10.0, 0.00)
print("Number of nodes created:", model.getNodesNumber())

# Creates the Elements
model.setDefaultElement(dnl.Element.ElQua4N2D)
model.createElement(1, 1, 2, 3, 4)
print("Number of elements created:", model.getElementsNumber())

# Creates the Groups
allNS = dnl.NodeSet("NS_All")
コード例 #6
0
young = 206000
poisson = 0.3
density = 7.83e-09
heatCapacity = 4.6e+08
taylorQuinney = 0.9
A = 806.0
B = 614.0
C = 0.0089
n = 0.168
m = 1.1
depsp0 = 1.0
Tm = 1540.0
T0 = 20.0

# Creates the main Object
model = dnl.DynELA("Radial")

# Creates the Nodes
model.createNode(1, 0.00, 0.00, 0.00)
model.createNode(2, 10.0, 0.00, 0.00)
model.createNode(3, 10.0, 10.0, 0.00)
model.createNode(4, 0.00, 10.0, 0.00)
print("Number of nodes created:", model.getNodesNumber())

# Creates the Elements
model.setDefaultElement(dnl.Element.ElQua4NAx)
model.createElement(1, 1, 2, 3, 4)
print("Number of elements created:", model.getElementsNumber())

# Creates the Groups
allNS = dnl.NodeSet("NS_All")
コード例 #7
0
young = 206000
poisson = 0.3
density = 7.83e-09
heatCapacity = 4.6e+08
taylorQuinney = 0.9
A = 806.0
B = 614.0
C = 0.0089
n = 0.168
m = 1.1
depsp0 = 1.0
Tm = 1540.0
T0 = 20.0

# Creates the main Object
model = dnl.DynELA("Torus")

# Creates the Nodes
model.createNode(1, 10.00, 0.00, 0.00)
model.createNode(2, 20.00, 0.00, 0.00)
model.createNode(3, 20.00, 10.0, 0.00)
model.createNode(4, 10.00, 10.0, 0.00)
print("Number of nodes created:", model.getNodesNumber())

# Creates the Elements
model.setDefaultElement(dnl.Element.ElQua4NAx)
model.createElement(1, 1, 2, 3, 4)
print("Number of elements created:", model.getElementsNumber())

# Creates the Groups
allNS = dnl.NodeSet("NS_All")
コード例 #8
0
ファイル: PlateNecking.py プロジェクト: bstaber/DynELA
A = 806.0
B = 614.0
C = 0.0089
n = 0.168
m = 1.1
depsp0 = 1.0
Tm = 1540.0
T0 = 20.0

dxWidth = bottomWidth / nbElementsWidth
dxHeigh = heigh / nbElementsHeigh
ddx = (topWidth - bottomWidth) / bottomWidth / heigh
speed = displacement / stopTime

# Creates the main Object
model = dnl.DynELA("PlateNecking")

# Creates the Nodes
nbNodes = 1
nsAll = dnl.NodeSet("NS_All")
dxHeigh /= (1 / factor + 1) / 2
y = 0
for j in range(nbElementsHeigh + 1):
    for i in range(nbElementsWidth + 1):
        model.createNode(nbNodes, i * dxWidth * (1 + ddx * y), y, 0)
        model.add(nsAll, nbNodes)
        nbNodes += 1
    if (j == nbElementsHeigh / 2): dxHeigh /= factor
    y += dxHeigh
nbNodes -= 1
print("Number of nodes created:", model.getNodesNumber())