Model.blockwalleditrange#

Model.blockwalleditrange(blockname, wallname, imin, imax, jmin, jmax, kmin, kmax, delete_cells)#

Adds or deletes a range of cells in a finite difference wall.

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

  • wallname (hwString) – The name of the wall to be edited.

  • imin (double) – The minimum value in the i direction, inclusive.

  • imax (double) – The maximum value in the i direction, inclusive.

  • jmin (double) – The minimum value in the j direction, inclusive.

  • jmax (double) – The maximum value in the j direction, inclusive.

  • kmin (double) – The minimum value in the k direction, inclusive.

  • kmax (double) – The maximum value in the k direction, inclusive.

  • delete_cells (int) –

    0 - Adds cells.

    1 - Deletes cells.

Example#

Edit wall with name “wall1” on block with name “block1”#
import hm

model = hm.Model()

model.blockwalleditrange(
    blockname="block1",
    wallname="wall1",
    imin=0.0,
    imax=0.0,
    jmin=0.0,
    jmax=0.0
    kmin=0.0,
    kmax=0.0,
    delete_cells=0
)