Model.surfaceaddnodesfixed#

Model.surfaceaddnodesfixed(surfacecollection, nodelist, tolerance, createplot)#

Adds meshing fixed points to a collection of surfaces, either by breaking edges or adding interior fixed points. The coordinates of the fixed points are supplied by a list of nodes.

Parameters:
  • surfacecollection (Collection) – The collection containing the surface entities to modify.

  • nodelist (EntityList) – The list containing the nodes to use.

  • tolerance (double) – The closeness tolerance used to decide which points belong to a surface. A point can be added to more than one surface out of the surfacecollection.

  • createplot (int) –

    Defines whether or not a plot element will be created between two points. It will be in the “^welds” component.

    \(= 0\) - Do not create a weld element

    \(\ne 0\) - Create a weld element

Example#

Add a point to surface with ID 190 whose coordinates correspond to those of node with ID 9#
import hm
import hm.entities as ent

model = hm.Model()

node9 = ent.Node(model, 9)
model.surfaceaddnodesfixed(
    surfacecollection=hm.Collection(model, ent.Surface, [190]),
    nodelist=[node9],
    tolerance=0.5,
    createplot=1,
)