如何通过二维odb或者inp文件网格导出二维图形,进而extrude生成三维网格。
答案:script命令:
慰问困难群众
PartFromOdb(...)
PartFromInstanceMesh(...)
Part2DGeomFrom2DMesh(...)
PartFromExtrude2DMesh(...)
PartFromSection3DMeshByPlane(...)
以下的两个py文件为abaqus 6.6版本支持的py文件
参考py文件(从odb文件中导出):
"""
Reads the output databa file and imports the deformed shape of
the billet at the end of step 1 as an orphan mesh part. The
orphan mesh part is then ud to create a 2D solid part which
can be meshed by the ur.
"""
from abaqus import *
from abaqusConstants import *
import part
# NOTE: USER MUST DEFINE THESE VARIABLES.
odbName = 'Job-2.odb' # Name of output databa file.
modelName = 'Model-1' # Model name.
orphanInstance = 'PART-1-1' # Deformed instance name.
deformedShape = DEFORMED # Shape.可爱的睡前故事
angle = 15.0 # Feature angle.
书面沟通importStep = 2 # Step number.
# Import orphan mesh part.
orphanBillet = dels['Model-1'].PartFromOdb(fileName=odbName,
name='orphanBillet',
instance=orphanInstance,
shape=deformedShape,
step=importStep)
# Extract 2D profile and create a solid part.
newBillet = dels['Model-1'].Part2DGeomFrom2DMesh(name='newBillet',
part=orphanBillet,
featureAngle=angle)
newBillet1 = dels['Model-1'].PartFromExtrude2DMesh(name='newBillet1',
depth=20,
小学二年级语文上册
part=orphanBillet,
elementSize=5)
print 'Deformed billet is now ready for rezoning.'
参考py文件(从inp文件中导出)
液状石蜡"""
Reads the output databa file and imports the deformed shape of
the billet at the end of step 1 as an orphan mesh part. The
orphan mesh part is then ud to create a 2D solid part which席间
can be meshed by the ur.
"""
from abaqus import *
from abaqusConstants import *玩偶剧
import part
# NOTE: USER MUST DEFINE THESE VARIABLES.
odbName = 'job0.odb' # Name of output databa file.
modelName = 'Model-1' # Model name.
orphanInstance = 'PART-1-1' # Deformed instance name.
deformedShape = DEFORMED # Shape.
angle = 15.0 # Feature angle.
importStep = 0 # Step number.
point11 = (0, 0, 2)
戌时五行属什么point12 = (0, 0, 0)
point13 = (2, 2.5, 2)
mdb.ModelFromInputFile(name='Job-0', inputFileName='K:/ur/lg/Job-0.inp')
dels['Job-0'].parts['PART-1']
Billet = dels['Model-1'].PartFromSection3DMeshByPlane(name='Billet',
part=orphanBillet,
point1=point11,
point2=point12,
point3=point13)
newBillet1 = dels['Model-1'].PartFromExtrude2DMesh(name='newBillet1',
depth=20,
part=Billet,
elementSize=5)