Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-22 10:31:21

0001 //----------------------------------*-C++-*----------------------------------//
0002 // Copyright 2022-2024 UT-Battelle, LLC, and other Celeritas developers.
0003 // See the top-level COPYRIGHT file for details.
0004 // SPDX-License-Identifier: (Apache-2.0 OR MIT)
0005 //---------------------------------------------------------------------------//
0006 //! \file celeritas/field/UniformFieldData.hh
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include "corecel/Types.hh"
0011 #include "corecel/cont/Array.hh"
0012 
0013 #include "FieldDriverOptions.hh"
0014 
0015 namespace celeritas
0016 {
0017 //---------------------------------------------------------------------------//
0018 /*!
0019  * Input data and options for a uniform field.
0020  */
0021 struct UniformFieldParams
0022 {
0023     using Real3 = Array<real_type, 3>;
0024 
0025     Real3 field{0, 0, 0};  //!< Field strength (native units)
0026     FieldDriverOptions options;
0027 };
0028 
0029 //---------------------------------------------------------------------------//
0030 }  // namespace celeritas