Model.blockwallfindintersect#

Model.blockwallfindintersect(blockname, wallname, type)#

Intersects one- and two-dimensional finite elements with cells in a finite difference block.

Parameters:
  • blockname (hwString) – The name of the block.

  • wallname (hwString) – The name of the wall into which cells are to be inserted.

  • type (Collection) – The collection containing the entities.

Example#

Intersect elements with IDs 1-10 in block with name “block1”#
import hm
import hm.entities as ent

model = hm.Model()

elems = hm.Collection(model, ent.Element, list(range(1, 11)))
model.blockwallfindintersect(blockname="block1", wallname="wall1", type=elems)

Note

The ID of any cell, knowing the (i,j,k) location, may be found by the formula (i*divj*divk)+(j*divk)+k, where divj and divk are the number of divisions in the j and k directions, respectively.

Note

Display must be in planar mode for this function to work, and only one plane can be displayed. The displayed plane is the plane that is filled.