表面粗糙度是指加工表面上具有的较小间距和峰谷不平度组成的微观几何形状误差,一般是由所采用的加工方法或其他外部因素造成,它是评定零件表面质量的重要指标之一。现代高科技的迅速发展对零件表面质量提出了愈来愈高的要求。
在某些研究方向的数值模拟中,需要在abaqus中产生初始的表面不平顺。在abaqus的mesh模块的节点编辑功能可实现这一目的。还可以借助python二次开发实现服从某概率分布的节点偏移量。
(以下来自abaqus6.14帮助文档)
editNode(...)
This method changes the coordinates of the given nodes on an orphan mesh part or on an Abaqus native mesh.
Required argument
nodes
A sequence of MeshNode objects or a Set object containing nodes.
Optional arguments
coordinate1
A Float specifying the value of the first coordinate. If coordinate1 and offset1 are unspecified, the existing value does not change.
coordinate2
A Float specifying the value of the second coordinate. If coordinate2 and offset2 are unspecified, the existing value does not change.
coordinate3
A Float specifying the value of the third coordinate. If coordinate3 and offset3 are unspecified, the existing value does not change.
coordinates
A sequence of three-dimensional coordinate tuples specifying the coordinates for each of the given nodes. When specified, the number of coordinate tuples must match the number of given nodes, and be ordered to correspond to the given nodes in ascending order according to index. Furthermore, coordinate1, coordinate2, coordinate3, offset1, offset2, or offset3 may not be specified.
offset1
A Float specifying an offset to apply to the value of the first coordinate of the specified nodes.
offset2
A Float specifying an offset to apply to the value of the second coordinate of the specified nodes.
offset3
A Float specifying an offset to apply to the value of the third coordinate of the specified nodes.
localCsys
A DatumCsys object specifying the local coordinate system. If unspecified, the global coordinate system will be used.
projectToGeometry
A Boolean specifying whether to project nodes back to their original geometry. For example, if a node is on a face, this method first positions the node at the new location and then projects it back to the original face. The default value is ON.
Return value
None
Exceptions
A coordinate and an offset may not both be specified for the same coordinate component.