mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 04:25:29 -04:00
Add three functions that can be used to modify EnergyFunctionFilters through the C-API: - openmc_energyfunc_filter_set_data: set energy and y data - openmc_energyfunc_filter_get_energy: obtain energies used in interpolation - openmc_energyfunc_filter_get_y: obtain ordinate values These functions are modeled after openmc_energy_filter_[get|set]_bins. The set_data function relies upon the new EnergyFunctionFilter::set_data function, which is analogous to EnergyFilter::set_bins function. Checks are performed to make sure the energy and ordinate vectors are of equal size before resetting and populating energy and y private members. An EnergyFunctionFilter did exist in openmc.capi, and has now been flushed out to provide a better __init__ method, as well as properties for retrieving energies and ordinates for interpolation. |
||
|---|---|---|
| .. | ||
| openmc | ||