Add IncoherentInelasticAEContinuous class stub

This commit is contained in:
Paul Romano 2019-04-19 14:35:14 -05:00
parent 8ea8206193
commit c65366d7a0
2 changed files with 7 additions and 3 deletions

View file

@ -19,12 +19,12 @@ from . import HDF5_VERSION, HDF5_VERSION_MAJOR, endf
from .data import K_BOLTZMANN, ATOMIC_SYMBOL, EV_PER_MEV, NATURAL_ABUNDANCE
from .ace import Table, get_table, Library
from .angle_energy import AngleEnergy
from .correlated import CorrelatedAngleEnergy
from .function import Tabulated1D, Function1D
from .njoy import make_ace_thermal
from .thermal_angle_energy import (CoherentElasticAE, IncoherentElasticAE,
IncoherentElasticAEDiscrete,
IncoherentInelasticAEDiscrete)
IncoherentInelasticAEDiscrete,
IncoherentInelasticAEContinuous)
_THERMAL_NAMES = {
@ -673,7 +673,7 @@ class ThermalScattering(EqualityMixin):
breakpoints = [n_energy]
interpolation = [2]
energy = inelastic_xs.x
distribution = CorrelatedAngleEnergy(
distribution = IncoherentInelasticAEContinuous(
breakpoints, interpolation, energy, energy_out, mu_out)
table.inelastic = ThermalScatteringReaction(

View file

@ -1,6 +1,7 @@
import numpy as np
from .angle_energy import AngleEnergy
from .correlated import CorrelatedAngleEnergy
class CoherentElasticAE(AngleEnergy):
@ -134,3 +135,6 @@ class IncoherentInelasticAEDiscrete(AngleEnergy):
mu_out = group['mu_out'][()]
skewed = bool(group['skewed'])
return cls(energy_out, mu_out, skewed)
class IncoherentInelasticAEContinuous(CorrelatedAngleEnergy):
pass