Abaqus python脚本开发 第三章 各类指令的方法对象变量 (3)

3.3.1 DatumPlaneByOffset(...)
Abaqus python脚本开发 第三章 各类指令的方法对象变量 (3)的图1

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

Path

mdb.models[name].rootAssembly.DatumPlaneByOffset
mdb.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(...)
Abaqus python脚本开发 第三章 各类指令的方法对象变量 (3)的图2

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.DatumPlaneByTwoPoint
mdb.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.

Script:

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(...)
Abaqus python脚本开发 第三章 各类指令的方法对象变量 (3)的图3

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

Path

mdb.models[name].rootAssembly.DatumPlaneByThreePoints
mdb.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.

Script:

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(...)
Abaqus python脚本开发 第三章 各类指令的方法对象变量 (3)的图4

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.DatumPlaneByLinePoint
mdb.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.

Script:

欢迎收藏转发,感谢!

Abaqus Python脚本开发持续更新中

微信公众号:山石结构

Bilibili:happyleo7


该付费内容为:Datumplane_by_Twopoints,DatumPlaneByThreePoints,DatumPlaneByLinePoint和 PartitionFaceByDatumPlane部分的代码

0人购买
(1条)
默认 最新
👍
评论 点赞
点赞 5 评论 1 收藏 3
关注