Debian Codegraph @

ncrystal_core/include/NCrystal/internal/NCAbsOOV.hh

raw symbols SCIP
1 #cxx . . $ `<file>/ncrystal_core/include/NCrystal/internal/NCAbsOOV.hh`/ifndef NCrystal_AbsOOV_hh
2 #define NCrystal_AbsOOV_hhcxx . . $ `ncrystal_core/include/NCrystal/internal/NCAbsOOV.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/NCProcImpl.hh"cxx . . $ `<file>/ncrystal_core/include/NCrystal/NCProcImpl.hh`/
25 #include "NCrystal/NCInfo.hh"cxx . . $ `<file>/ncrystal_core/include/NCrystal/NCInfo.hh`/
26
27 namespace NCrystalcxx . . $ NCrystal/ {
28
29 class AbsOOVcxx . . $ NCrystal/AbsOOV# : public ProcImplcxx . . $ NCrystal/ProcImpl/::AbsorptionIsotropicMatcxx . . $ NCrystal/ProcImpl/AbsorptionIsotropicMat# {
30 public:
31
32 // Provide absorption cross section based on simple 1/velocity
33 // (=OneOverVelocity=OOV) scaling. This is non-oriented.
34
35 AbsOOVcxx . . $ NCrystal/AbsOOV#AbsOOV(bf9a8c5168b8e515).( SigmaAbsorptioncxx . . $ NCrystal/SigmaAbsorption# );
36
37 const char * namecxx . . $ NCrystal/AbsOOV#name(ba32b354807b2b81).() const noexcept final { return "AbsOOV"; }
38 CrossSectcxx . . $ NCrystal/CrossSect# crossSectionIsotropiccxx . . $ NCrystal/AbsOOV#crossSectionIsotropic(2d1b6729f4607c0e).(CachePtrcxx . . $ NCrystal/CachePtr#&, NeutronEnergycxx . . $ NCrystal/NeutronEnergy# ) const final;
39
40 EnergyDomaincxx . . $ NCrystal/EnergyDomain# domaincxx . . $ NCrystal/AbsOOV#domain(211042bb22c41eb).() const noexcept override { return m_domaincxx . . $ NCrystal/AbsOOV#m_domain.; }
41
42 //Simple additive merge:
43 stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<Processcxx . . $ NCrystal/ProcImpl/Process#> createMergedcxx . . $ NCrystal/AbsOOV#createMerged(18a6d98728dd1d4).( const Processcxx . . $ NCrystal/ProcImpl/Process#& other,
44 double scale_self,
45 double scale_other ) const override;
46
47 //For initialising directly from Info objects:
48 AbsOOVcxx . . $ NCrystal/AbsOOV#AbsOOV(5e0e2c8f0c2b86c7).( const Infocxx . . $ NCrystal/Info#& info ) : AbsOOVcxx . . $ NCrystal/AbsOOV#AbsOOV(bf9a8c5168b8e515).( info.getXSectAbsorptioncxx . . $ NCrystal/Info#getXSectAbsorption(88fadb654fc9c637).() ) {}
49
50 protected:
51 Optionalcxx . . $ NCrystal/Optional#<stdcxx . . $ std/::stringcxx . . $ std/string#> specificJSONDescriptioncxx . . $ NCrystal/AbsOOV#specificJSONDescription(f43a630e6ea2404e).() const override;
52 private:
53 double m_ccxx . . $ NCrystal/AbsOOV#m_c.;
54 EnergyDomaincxx . . $ NCrystal/EnergyDomain# m_domaincxx . . $ NCrystal/AbsOOV#m_domain.;
55 };
56 }
57
58 #endif