Abaqus Python脚本开发:第三章指令与方法

3.3.1 DatumPlaneByOffset(...) This method creates a Feature object and a DatumPlane object offset by a specified distance from an existing plane.

Path

mdb.models[name].rootAssembly.DatumPlaneByOffsetmdb.models[name].parts[name].DatumPlaneByOffset

Required arguments

plane

A planar Face, an ElementFace, or a Datum object representing a datum plane.

flip

A SymbolicConstant specifying whether the normal should be flipped. Possible values are SIDE1 and SIDE2.

offset

A Float specifying the offset from the plane.

Optional arguments

None.

Return value

A Feature object.

Exceptions

AbaqusException.

def Datum_Plane_by_Offset(mdbname,My_plane,My_distance):
  a = mdb.models[mdbname].rootAssembly
  dp=a.DatumPlaneByOffset(plane=My_plane,flip=SIDE1,offset=My_distance)
  id_plane=dp.id
  return id_plane

3.2.2 DatumPlaneByTwoPoint(...) This method creates a Feature object and a DatumPlane object midway between two points and normal to the line connecting the points.

Path

mdb.models[name].rootAssembly.DatumPlaneByTwoPointmdb.models[name].parts[name].DatumPlaneByTwoPoint

Required arguments

point1

A Vertex, an InterestingPoint, a MeshNode, or a Datum object representing a datum point.

point2

A Vertex, an InterestingPoint, a MeshNode, or a Datum object representing a datum point.

Optional arguments

None.

Return value

A Feature object.

Exceptions

AbaqusException.

def Datumplane_by_Twopoints(mdbname,My_instance,My_vertices_id1,My_vertices_id2):
    a = mdb.models[mdbname].rootAssembly
    v1 = a.instances[My_instance].vertices
    dp1=a.DatumPlaneByTwoPoint(point1=v1[My_vertices_id1], point2=v1[My_vertices_id2])
    id_plane=dp1.id
    return id_plane

3.2.3 DatumPlaneByThreePoints This method creates a Feature object and a DatumPlane object defined by passing through three points.

Path

mdb.models[name].rootAssembly.DatumPlaneByThreePointsmdb.models[name].parts[name].DatumPlaneByThreePoints

Required arguments

point1

A Vertex, an InterestingPoint, a MeshNode, or a Datum object representing a datum point.

point2

A Vertex, an InterestingPoint, a MeshNode, or a Datum object representing a datum point.

point3

A Vertex, an InterestingPoint, a MeshNode, or a Datum object representing a datum point.

Optional arguments

None.

Return value

A Feature object.

Exceptions

AbaqusException.

def Datumplane_by_Threepoints(mdbname,My_point1,My_point2,My_point3):
    a=mdb.models[mdbname].rootAssembly
    dp=a.DatumPlaneByThreePoints(point1=My_point1,point2=My_point2,point3=My_point3)
    id_plane=dp.id
    return id_plane

3.2.4 DatumPlaneByLinePoint(...) This method creates a Feature object and a DatumPlane object that pass through the specified line and through the specified point that does not lie on the line.

Path

mdb.models[name].rootAssembly.DatumPlaneByLinePointmdb.models[name].parts[name].DatumPlaneByLinePoint

Required arguments

line

A straight Edge, an ElementEdge, or a Datum object representing a datum axis.

point

A Vertex, an InterestingPoint, a MeshNode, or a Datum object representing a datum point.

Optional arguments

None.

Return value

A Feature object.

Exceptions

AbaqusException.

def Datumplane_By_Line_point(mdbname,My_line,My_point):
    a=mdb.models[mdbname].rootAssembly
    dp=a.DatumPlaneByLinePoint(My_line,My_point)
    id.plane=dp.id
    return id.plane

3.2.5 PartitionFaceByDatumPlane(...)

cut-off

This method partitions one or more faces using the given datum plane.

Path

mdb.models[name].parts[name].PartitionFaceByDatumPlanemdb.models[name].rootAssembly.PartitionFaceByDatumPlane

Required arguments

faces

A sequence of Face objects specifying the faces to partition.

datumPlane

A DatumPlane object specifying the location of the partition.

Optional arguments

None.

Return value

A Feature object.

Exceptions

None.

def Create_Partition_by_Plane(mdbname,id_plane):
    a = mdb.models[mdbname].rootAssembly
    f1=a.instances['steel-1'].faces[:]
    f2=a.instances['Fire resistance-1'].faces[:]
    f=f1+f2
    d = a.datums
    dp=a.PartitionFaceByDatumPlane(faces=f,datumPlane=d[id_plane])
    id_plane=dp.id
    return  id_plan

欢迎点赞收藏转发,觉得有用别忘了一键三连呦!

Abaqus Python脚本开发持续更新中

微信公众号:山石结构

Bilibili:happyleo7

QR Code
微信扫一扫,欢迎咨询~

联系我们
武汉格发信息技术有限公司
湖北省武汉市经开区科技园西路6号103孵化器
电话:155-2731-8020 座机:027-59821821
邮件:tanzw@gofarlic.com
Copyright © 2023 Gofarsoft Co.,Ltd. 保留所有权利
遇到许可问题?该如何解决!?
评估许可证实际采购量? 
不清楚软件许可证使用数据? 
收到软件厂商律师函!?  
想要少购买点许可证,节省费用? 
收到软件厂商侵权通告!?  
有正版license,但许可证不够用,需要新购? 
联系方式 155-2731-8020
预留信息,一起解决您的问题
* 姓名:
* 手机:

* 公司名称:

姓名不为空

手机不正确

公司不为空