mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 20:45:35 -04:00
21 lines
688 B
C++
21 lines
688 B
C++
#ifndef OPENMC_ANGLE_ENERGY_H
|
|
#define OPENMC_ANGLE_ENERGY_H
|
|
|
|
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) const = 0;
|
|
virtual ~AngleEnergy() = default;
|
|
};
|
|
|
|
}
|
|
|
|
#endif // OPENMC_ANGLE_ENERGY_H
|