File indexing completed on 2026-11-14 10:22:22
0001
0002
0003
0004
0005
0006
0007 #pragma once
0008
0009 #include <functional>
0010 #include <memory>
0011
0012 #include "corecel/inp/Grid.hh"
0013 #include "celeritas/mat/MaterialParams.hh"
0014 #include "celeritas/phys/Applicability.hh"
0015 #include "celeritas/phys/AtomicNumber.hh"
0016 #include "celeritas/phys/ParticleParams.hh"
0017 #include "celeritas/phys/Process.hh"
0018
0019 namespace celeritas
0020 {
0021
0022
0023
0024
0025 class NeutronCaptureProcess : public Process
0026 {
0027 public:
0028
0029
0030 using SPConstParticles = std::shared_ptr<ParticleParams const>;
0031 using SPConstMaterials = std::shared_ptr<MaterialParams const>;
0032 using ReadData = std::function<inp::Grid(AtomicNumber)>;
0033
0034
0035 public:
0036
0037 NeutronCaptureProcess(SPConstParticles particles,
0038 SPConstMaterials materials,
0039 ReadData load_data);
0040
0041
0042 VecModel build_models(ActionIdIter start_id) const final;
0043
0044
0045 XsGrid macro_xs(Applicability range) const final;
0046
0047
0048 EnergyLossGrid energy_loss(Applicability range) const final;
0049
0050
0051 bool supports_integral_xs() const final { return false; }
0052
0053
0054 bool applies_at_rest() const final { return false; }
0055
0056
0057 std::string_view label() const final;
0058
0059 private:
0060 SPConstParticles particles_;
0061 SPConstMaterials materials_;
0062 ReadData load_data_;
0063 ParticleId neutron_id_;
0064 };
0065
0066
0067 }