|
|
|||
File indexing completed on 2026-11-13 10:31:08
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 "corecel/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 mie, 0031 size_ 0032 }; 0033 0034 //---------------------------------------------------------------------------// 0035 // FREE FUNCTIONS 0036 //---------------------------------------------------------------------------// 0037 0038 // Get the string form of one of the enumerations 0039 char const* to_cstring(ImportModelClass imc); 0040 0041 //---------------------------------------------------------------------------// 0042 } // namespace optical 0043 0044 //---------------------------------------------------------------------------// 0045 /*! 0046 * Imported data for an optical physics model. 0047 */ 0048 struct ImportOpticalModel 0049 { 0050 optical::ImportModelClass model_class; 0051 std::vector<inp::Grid> mfp_table; //!< per optical material MFPs 0052 }; 0053 0054 //---------------------------------------------------------------------------// 0055 } // namespace celeritas
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|