Debian Codegraph @

ncrystal_core/include/NCrystal/internal/NCSABExtender.hh

raw symbols SCIP
1 #cxx . . $ `<file>/ncrystal_core/include/NCrystal/internal/NCSABExtender.hh`/ifndef NCrystal_SABExtender_hh
2 #define NCrystal_SABExtender_hhcxx . . $ `ncrystal_core/include/NCrystal/internal/NCSABExtender.hh:2:9`!
3
4 ////////////////////////////////////////////////////////////////////////////////
5 // //
6 // This file is part of NCrystal (see https://mctools.github.io/ncrystal/) //
7 // //
8 // Copyright 2015-2022 NCrystal developers //
9 // //
10 // Licensed under the Apache License, Version 2.0 (the "License"); //
11 // you may not use this file except in compliance with the License. //
12 // You may obtain a copy of the License at //
13 // //
14 // http://www.apache.org/licenses/LICENSE-2.0 //
15 // //
16 // Unless required by applicable law or agreed to in writing, software //
17 // distributed under the License is distributed on an "AS IS" BASIS, //
18 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. //
19 // See the License for the specific language governing permissions and //
20 // limitations under the License. //
21 // //
22 ////////////////////////////////////////////////////////////////////////////////
23
24 #include "NCrystal/NCDefs.hh"cxx . . $ `<file>/ncrystal_core/include/NCrystal/NCDefs.hh`/
25 #include "NCrystal/internal/NCFreeGasUtils.hh"cxx . . $ `<file>/ncrystal_core/include/NCrystal/internal/NCFreeGasUtils.hh`/
26
27 namespace NCrystalcxx . . $ NCrystal/ {
28
29 namespace SABcxx . . $ NCrystal/SAB/ {
30
31 //Class providing models used to extend cross-sections and sampling
32 //capabilities of an S(alpha,beta) table to large energies. In the simplest
33 //scenario it would wrap a single-target free-gas model, but other models
34 //might be more suitable depending on the kernel in question. It could be
35 //alternative models (e.g. short collision time approximation), or
36 //multi-target models for when the kernel is provided for an entire molecule
37 //or unit cell, describing more than a single element, or the isotopic
38 //weight differences in the target elements are non-negligible.
39
40 class SABExtendercxx . . $ NCrystal/SAB/SABExtender# : private MoveOnlycxx . . $ NCrystal/MoveOnly# {
41 public:
42 SABExtendercxx . . $ NCrystal/SAB/SABExtender#SABExtender(ced63f7c635d850d).() = default;
43 virtual ~cxx . . $ NCrystal/SAB/SABExtender#`~SABExtender`(ced63f7c635d850d).SABExtendercxx . . $ NCrystal/SAB/SABExtender#();
44
45 //Get cross-section or sample S(alpha,beta) over allowed kinematic region
46 //at given incident neutron energy:
47 virtual CrossSectcxx . . $ NCrystal/CrossSect# crossSectioncxx . . $ NCrystal/SAB/SABExtender#crossSection(febf336cfe5dea17).(NeutronEnergycxx . . $ NCrystal/NeutronEnergy#) const = 0;
48 virtual PairDDcxx . . $ NCrystal/PairDD# sampleAlphaBetacxx . . $ NCrystal/SAB/SABExtender#sampleAlphaBeta(ed87abc7a2e7df7c).(RNGcxx . . $ NCrystal/RNG#&, NeutronEnergycxx . . $ NCrystal/NeutronEnergy#) const = 0;
49 };
50
51 class SABFGExtendercxx . . $ NCrystal/SAB/SABFGExtender# : public SABExtendercxx . . $ NCrystal/SAB/SABExtender# {
52 public:
53 //Extend with single target type FreeGas model.
54 SABFGExtendercxx . . $ NCrystal/SAB/SABFGExtender#SABFGExtender(2c682fcb1bac57ee).( Temperaturecxx . . $ NCrystal/Temperature#, AtomMasscxx . . $ NCrystal/AtomMass#, SigmaBoundcxx . . $ NCrystal/SigmaBound# );
55 SABFGExtendercxx . . $ NCrystal/SAB/SABFGExtender#SABFGExtender(a906ff39d6b0eb9e).( Temperaturecxx . . $ NCrystal/Temperature#, AtomMasscxx . . $ NCrystal/AtomMass#, SigmaFreecxx . . $ NCrystal/SigmaFree# );
56 virtual ~cxx . . $ NCrystal/SAB/SABFGExtender#`~SABFGExtender`(ced63f7c635d850d).SABFGExtendercxx . . $ NCrystal/SAB/SABFGExtender#();
57 CrossSectcxx . . $ NCrystal/CrossSect# crossSectioncxx . . $ NCrystal/SAB/SABFGExtender#crossSection(febf336cfe5dea17).(NeutronEnergycxx . . $ NCrystal/NeutronEnergy#) const override;
58 PairDDcxx . . $ NCrystal/PairDD# sampleAlphaBetacxx . . $ NCrystal/SAB/SABFGExtender#sampleAlphaBeta(ed87abc7a2e7df7c).(RNGcxx . . $ NCrystal/RNG#&, NeutronEnergycxx . . $ NCrystal/NeutronEnergy#) const override;
59 private:
60 FreeGasXSProvidercxx . . $ NCrystal/FreeGasXSProvider# m_xsprovidercxx . . $ NCrystal/SAB/SABFGExtender#m_xsprovider.;
61 Temperaturecxx . . $ NCrystal/Temperature# m_tcxx . . $ NCrystal/SAB/SABFGExtender#m_t.;
62 AtomMasscxx . . $ NCrystal/AtomMass# m_mcxx . . $ NCrystal/SAB/SABFGExtender#m_m.;
63 };
64
65 }
66
67 }
68
69 #endif