OpenMC/include/openmc/angle_energy.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
749 B
C
Raw Permalink Normal View History

2018-07-09 23:02:27 -05:00
#ifndef OPENMC_ANGLE_ENERGY_H
#define OPENMC_ANGLE_ENERGY_H
#include <cstdint>
2018-07-09 23:02:27 -05:00
namespace openmc {
2018-08-08 07:00:48 -05:00
//==============================================================================
//! Abstract type that defines a correlated or uncorrelated angle-energy
//! distribution that is a function of incoming energy. Each derived type must
//! implement a sample() method that returns an outgoing energy and
//! scattering cosine given an incoming energy.
//==============================================================================
2018-07-09 23:02:27 -05:00
class AngleEnergy {
public:
virtual void sample(
double E_in, double& E_out, double& mu, uint64_t* seed) const = 0;
2018-07-09 23:02:27 -05:00
virtual ~AngleEnergy() = default;
};
} // namespace openmc
#endif // OPENMC_ANGLE_ENERGY_H