Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-18 09:09:07

0001 //------------------------------- -*- C++ -*- -------------------------------//
0002 // Copyright Celeritas contributors: see top-level COPYRIGHT file for details
0003 // SPDX-License-Identifier: (Apache-2.0 OR MIT)
0004 //---------------------------------------------------------------------------//
0005 //! \file celeritas/io/ImportOpticalModel.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include <vector>
0010 
0011 #include "celeritas/inp/Grid.hh"
0012 
0013 namespace celeritas
0014 {
0015 namespace optical
0016 {
0017 //---------------------------------------------------------------------------//
0018 /*!
0019  * Enumerator for available optical physics models.
0020  *
0021  * This enum is used to identify the optical model that imported model MFP
0022  * tables correspond to.
0023  */
0024 enum class ImportModelClass
0025 {
0026     absorption,
0027     rayleigh,
0028     wls,
0029     size_
0030 };
0031 
0032 //---------------------------------------------------------------------------//
0033 // FREE FUNCTIONS
0034 //---------------------------------------------------------------------------//
0035 
0036 // Get the string form of one of the enumerations
0037 char const* to_cstring(ImportModelClass imc);
0038 
0039 //---------------------------------------------------------------------------//
0040 }  // namespace optical
0041 
0042 //---------------------------------------------------------------------------//
0043 /*!
0044  * Imported data for an optical physics model.
0045  */
0046 struct ImportOpticalModel
0047 {
0048     optical::ImportModelClass model_class;
0049     std::vector<inp::Grid> mfp_table;  //!< per optical material MFPs
0050 };
0051 
0052 //---------------------------------------------------------------------------//
0053 }  // namespace celeritas