openmc.data.Regions1D¶
- class openmc.data.Regions1D(functions, breakpoints)[source]¶
Piecewise composition of multiple functions.
This class allows you to create a callable object which is composed of multiple other callable objects, each applying to a specific interval
- Parameters
functions (Iterable of Callable) – Functions which are to be combined in a piecewise fashion
breakpoints (Iterable of float) – The values of the dependent variable that define the domain of each function. The ith and (i+1)th values are the limits of the domain of the ith function. Values must be monotonically increasing.
- Variables
functions (Iterable of Callable) – Functions which are to be combined in a piecewise fashion
breakpoints (Iterable of float) – The breakpoints between each function