Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-17 08:09:20

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     wls2,
0030     size_
0031 };
0032 
0033 //---------------------------------------------------------------------------//
0034 // FREE FUNCTIONS
0035 //---------------------------------------------------------------------------//
0036 
0037 // Get the string form of one of the enumerations
0038 char const* to_cstring(ImportModelClass imc);
0039 
0040 //---------------------------------------------------------------------------//
0041 }  // namespace optical
0042 
0043 //---------------------------------------------------------------------------//
0044 /*!
0045  * Imported data for an optical physics model.
0046  */
0047 struct ImportOpticalModel
0048 {
0049     optical::ImportModelClass model_class;
0050     std::vector<inp::Grid> mfp_table;  //!< per optical material MFPs
0051 };
0052 
0053 //---------------------------------------------------------------------------//
0054 }  // namespace celeritas