mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-21 14:35:27 -04:00
24 lines
749 B
C++
24 lines
749 B
C++
#ifndef OPENMC_ANGLE_ENERGY_H
|
|
#define OPENMC_ANGLE_ENERGY_H
|
|
|
|
#include <cstdint>
|
|
|
|
namespace openmc {
|
|
|
|
//==============================================================================
|
|
//! 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.
|
|
//==============================================================================
|
|
|
|
class AngleEnergy {
|
|
public:
|
|
virtual void sample(
|
|
double E_in, double& E_out, double& mu, uint64_t* seed) const = 0;
|
|
virtual ~AngleEnergy() = default;
|
|
};
|
|
|
|
} // namespace openmc
|
|
|
|
#endif // OPENMC_ANGLE_ENERGY_H
|