Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-21 09:57:02

0001 //----------------------------------*-C++-*----------------------------------//
0002 // Copyright 2020-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/Quantities.hh
0007 //! \brief Derivative unit classes and annotated Quantity values
0008 //---------------------------------------------------------------------------//
0009 #pragma once
0010 
0011 #include "corecel/Macros.hh"
0012 #include "corecel/math/Quantity.hh"  // IWYU pragma: export
0013 
0014 #include "UnitTypes.hh"  // IWYU pragma: export
0015 
0016 namespace celeritas
0017 {
0018 namespace units
0019 {
0020 //---------------------------------------------------------------------------//
0021 //!@{
0022 //! \name Quantities for atomic scale/natural units
0023 using ElementaryCharge = Quantity<EElectron>;
0024 using MevEnergy = Quantity<Mev>;
0025 using LogMevEnergy = Quantity<LogMev>;
0026 using MevMass = Quantity<MevPerCsq>;
0027 using MevMomentum = Quantity<MevPerC>;
0028 using MevMomentumSq = Quantity<UnitProduct<MevPerC, MevPerC>>;
0029 using LightSpeed = Quantity<CLight>;
0030 using AmuMass = Quantity<Amu>;
0031 //!@}
0032 
0033 //---------------------------------------------------------------------------//
0034 //!@{
0035 //! \name Quantities for manual input and/or test harnesses
0036 using BarnXs = Quantity<Barn>;
0037 using CmLength = Quantity<Centimeter>;
0038 using InvCmXs = Quantity<UnitInverse<Centimeter>>;
0039 using InvCcDensity = Quantity<InvCentimeterCubed>;
0040 using MolCcDensity = Quantity<MolPerCentimeterCubed>;
0041 using GramCcDensity = Quantity<GramPerCentimeterCubed>;
0042 using FieldTesla = Quantity<Tesla>;
0043 //!@}
0044 //---------------------------------------------------------------------------//
0045 }  // namespace units
0046 }  // namespace celeritas