openmc.model.subdivide

openmc.model.subdivide(surfaces)[source]

Create regions separated by a series of surfaces.

This function allows regions to be constructed from a set of a surfaces that are “in order”. For example, if you had four instances of openmc.ZPlane at z=-10, z=-5, z=5, and z=10, this function would return a list of regions corresponding to z < -10, -10 < z < -5, -5 < z < 5, 5 < z < 10, and 10 < z. That is, for n surfaces, n+1 regions are returned.

Parameters

surfaces (sequence of openmc.Surface) – Surfaces separating regions

Returns

Regions formed by the given surfaces

Return type

list of openmc.Region