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(...)
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