add_boundary_pores

Cubic.add_boundary_pores(labels=['top', 'bottom', 'front', 'back', 'left', 'right'], spacing=None)[source]

Add pores to the faces of the network for use as boundary pores.

Pores are offset from the faces by 1/2 a lattice spacing such that they lie directly on the boundaries.

Parameters
  • labels (str or list[str]) – The labels indicating the pores defining each face where boundary pores are to be added (e.g. ‘left’ or [‘left’, ‘right’])

  • spacing (scalar or array_like) – The spacing of the network (e.g. [1, 1, 1]). This should be given since it can be quite difficult to infer from the network, for instance if boundary pores have already added to other faces.