WarpX
Public Member Functions | List of all members
BreitWheelerGetOpticalDepth Class Reference

#include <BreitWheelerEngineWrapper.H>

Public Member Functions

 BreitWheelerGetOpticalDepth ()=default
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal operator() (amrex::RandomEngine const &engine) const noexcept
 

Detailed Description

Functor to initialize the optical depth of photons for the Breit-Wheeler process

Constructor & Destructor Documentation

◆ BreitWheelerGetOpticalDepth()

BreitWheelerGetOpticalDepth::BreitWheelerGetOpticalDepth ( )
default

Constructor does nothing because optical depth initialization does not require control parameters or lookup tables.

Member Function Documentation

◆ operator()()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal BreitWheelerGetOpticalDepth::operator() ( amrex::RandomEngine const &  engine) const
inlinenoexcept

() operator is just a thin wrapper around a very simple function to generate the optical depth. It can be used on GPU.


The documentation for this class was generated from the following file: