The Surface object stores surfaces selected from the assembly. A surface is comprised of geometric or discrete entities but not both. An instance of a Surface object is available from the surface member of the Assembly object.
import part mdb.models[name].parts[name].allInternalSurfaces[name] mdb.models[name].parts[name].allSurfaces[name] mdb.models[name].parts[name].surfaces[name] import assembly mdb.models[name].rootAssembly.allInternalSurfaces[name] mdb.models[name].rootAssembly.allSurfaces[name] mdb.models[name].rootAssembly.instances[name].surfaces[name] mdb.models[name].rootAssembly.surfaces[name]
This method creates a surface from a sequence of objects in a model database. The surface will apply to the sides specified by the arguments.
mdb.models[name].parts[name].Surface
mdb.models[name].rootAssembly.Surface
Required argument
On three-dimensional solid faces, you can use the following arguments:
side1Faces
side2Faces
side1Faces
side2Faces
side12Faces
end1Edges
end2Edges
circumEdges
side1Edges
side2Edges
face1Elements
face2Elements
face3Elements
face14Elements
face1Elements
face2Elements
face3Elements
face4Elements
face5Elements
face6Elements
side1Elements
side2Elements
side12Elements
end1Elements
end2Elements
circumElements
side1Elements
side2Elements
A String specifying the repository key. The default value is an empty string.
Optional arguments
A sequence of MeshElement objects (surface applies to SIDE1 of element). The default value is None.
A sequence of MeshElement objects (surface applies to SIDE2 of element). The default value is None.
A sequence of MeshElement objects (surface applies to both SIDE1 and SIDE2 of element). The default value is None.
A sequence of MeshElement objects (surface applies to END1 of element). The default value is None.
A sequence of MeshElement objects (surface applies to END2 of element). The default value is None.
A sequence of MeshElement objects (surface applies to circumference of element). The default value is None.
A sequence of MeshElement objects (surface applies to FACE1 of element). The default value is None.
A sequence of MeshElement objects (surface applies to FACE2 of element). The default value is None.
A sequence of MeshElement objects (surface applies to FACE3 of element). The default value is None.
A sequence of MeshElement objects (surface applies to FACE4 of element). The default value is None.
A sequence of MeshElement objects (surface applies to FACE5 of element). The default value is None.
A sequence of MeshElement objects (surface applies to FACE6 of element). The default value is None.
A sequence of Face objects (surface applies to SIDE1 of face). The default value is None.
A sequence of Face objects (surface applies to SIDE2 of face). The default value is None.
A sequence of Face objects (surface applies to both SIDE1 and SIDE2 of face). The default value is None.
A sequence of Edge objects (surface applies to SIDE1 of edge). The default value is None.
A sequence of Edge objects (surface applies to SIDE2 of edge). The default value is None.
A sequence of Edge objects (surface applies to END1 of edge). The default value is None.
A sequence of Edge objects (surface applies to END2 of edge). The default value is None.
A sequence of Edge objects (surface applies circumferentially to edge). The default value is None.
Return value
A Surface object.
Exceptions
InvalidNameError.
This method creates a surface that is the result of merging two or more surfaces.
mdb.models[name].parts[name].SurfaceByMerge
mdb.models[name].rootAssembly.SurfaceByMerge
Required arguments
A String specifying the repository key.
A sequence of Surface objects.
Optional arguments
Return value
A Surface object.
Exceptions
InvalidNameError.
This method creates a surface from a sequence of element sets in a model database.
mdb.models[name].rootAssembly.SurfaceFromElsets
Required arguments
A String specifying the repository key.
A sequence of element sets. For example,
elementSetSeq=((elset1, S1),(elset2, S2))where elset1=mdb.models[name].rootAssembly.sets['Clutch'] and S1 and S2 indicate the side of the element set.
Optional arguments
Return value
A Surface object.
Exceptions
InvalidNameError.
The Surface object can have the following members:
An EdgeArray object.
A FaceArray object.
A MeshElementArray object.
A MeshNodeArray object.
A tuple of SymbolicConstants specifying the sides; for example, (SIDE1, SIDE2).
A tuple of Ints specifying the instances. This member is not applicable for a Surface object on an output database.