资源简介
通过Python脚本,实现在ABAQUS中建立网架结构的有限元模型并自动加载计算
代码片段和文件信息
from abaqus import *
from abaqusConstants import *
import numpy
Mdb()
model1=mdb.Model(name=‘Model-1‘)
part1=model1.Part(name=‘Part-1‘)
#l1=10
#l2=10
#h=1
m=((‘L1‘‘10‘)(‘L2‘‘10‘)(‘H‘‘1‘)(‘UL‘“1“))
l1l2hul=getInputs(fields=mlabel=‘Input the size‘dialogtitle=‘Parameters‘)
l1=int(l1)
l2=int(l2)
h=float(h)
ul=float(ul)
pt=0
nloc=[]
un=numpy.zeros(shape=(l1l2))
dn=numpy.zeros(shape=(l1-1l2-1))
for i in range (0l1):
for j in range (0l2):
part1.DatumPointByCoordinate(coords=(float(i)*ulfloat(j)*ul0.0))
pt=pt+1
nloc.append([float(i)*ulfloat(j)*ul0.0])
un[ij]=pt
print ‘up node‘
print un
for i in range (0l1-1):
for j in range (0l2-1):
part1.DatumPointByCoordinate(coords=(float(i)*ul+0.5*ulfloat(j)*ul+0.5*ulfloat(h*-1)))
pt=pt+1
nloc.append([float(i)*ul+0.5*ulfloat(j)*ul+0.5*ulfloat(h*-1)])
dn[ij]=pt
print ‘down node‘
print dn
d=part1.datums
#
for i in range (0l1):
for j in range (0l2-1):
part1.WirePolyLine(points=((d[int(un[ij])]d[int(un[ij+1])])))
for i in range (0l1-1):
for j in range (0l2):
part1.WirePolyLine(points=((d[int(un[ij])]d[int(un[i+1j])])))
for i in range (0l1-1):
for j in range (0l2-2):
part1.WirePolyLine(points=((d[int(dn[ij])]d[int(dn[ij+1])])))
for i in range (0l1-2):
for j in range (0l2-1):
part1.WirePolyLine(points=((d[int(dn[ij])]d[int(dn[i+1j])])))
#
for i in range (0l1-1):
for j in range (0l2-1):
part1.WirePolyLine(points=((d[int(dn[ij])]d[int(un[ij])])))
part1.WirePolyLine(points=((d[int(dn[ij])]d[int(un[ij+1])])))
part1.WirePolyLine(points=((d[int(dn[ij])]d[int(un[i+1j])])))
part1.WirePolyLine(points=((d[int(dn[ij])]d[int(un[i+1j+1])])))
print ‘geo finished‘
# material & section
model1.Material(name=‘steel‘)
model1.materials[‘steel‘].Density(table=((7850)))
model1.materials[‘steel‘].Elastic(table=((2000000000
相关资源
- abaqus 网格自动划分插件 python语言
- 从记录到编程--Python在ABAQUS程序化参数
- Python语言在Abaqus中的应用高清版pdf
- ABAQUS GUI程序开发指南 PYTHON语言
- Python语言在Abaqus中的应用 随书资源,
- ABAQUS GUI程序开发指南 PYTHON语言.pdf
- 《Python语言在Abaqus中的应用》 曹金凤
- ABAQUSGUI程序开发指南PYTHON语言_139333
- Python语言在Abaqus中的应用完整版
- Python语言在Abaqus中的应用DVD光盘
- python语言在abaqus中的应用随书光盘.
- Python语言在Abaqus中的应用 源代码
- python CAD 二次开发自动出图程序
- ABAQUS PYTHON二次开发攻略
-
python_sc
ripts_for_abaqus_learn_by_example完 - python abaqus开发学习指南完整版本
- ABAQUS PYTHON二次开发攻略(完整版
- ABAQUS Python二次开发攻略(含code)
- python语言在abaqus中的应用
- ABAQUS Python二次开发攻略+pdf+源代码
- pythonreader.rar
- PythonReader_1.9.4.101028
- abaqus激光增材仿真,生死单元添加p
- Abaqus 二维voronoi图插件
- ANSYS ACT二次开发.doc
- ABAQUS 二次开发Python教程
- cohesive.py
- cohesive_COH2D4 for Quad.py
- 批量插入内聚单元的py文件
- tecplot二次开发
评论
共有 条评论