Model.equationupdatemeshconnectivity#

Model.equationupdatemeshconnectivity(collection, tolerance)#

Updates MPC equation connectivity. It updates the independent/dependent nodes to the nearest nodes within the specified tolerance, if the independent/dependent nodes are not connected to any elements.

Parameters:
  • collection (Collection) – The collection containing the equation entities.

  • tolerance (double) – The tolerance to use when finding the nearest nodes to connect to.

Example#

Update the mesh connectivity of equations with IDs 1 - 3 use a tolerance of 10#
import hm
import hm.entities as ent

model = hm.Model()

equat_col = hm.Collection(model, ent.Equation, [1, 2, 3])

model.equationupdatemeshconnectivity(collection=equat_col, tolerance=10.0)