Celeritas 0.6.0-rc.2.10+develop.de0a3a05
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
celeritas::optical::PhysicsTrackView Class Reference

Optical physics data for a track. More...

#include <PhysicsTrackView.hh>

Classes

struct  Initializer
 Data for initializing a physics track. More...
 

Public Types

Type aliases
using PhysicsParamsRef = NativeCRef< PhysicsParamsData >
 
using PhysicsStateRef = NativeRef< PhysicsStateData >
 
using Energy = units::MevEnergy
 

Public Member Functions

CELER_FUNCTION PhysicsTrackView (PhysicsParamsRef const &, PhysicsStateRef const &, OpticalMaterialId, TrackSlotId)
 Construct from params, state, and material ID for a given track.
 
CELER_FUNCTION PhysicsTrackViewoperator= (Initializer const &)
 Initialize the physics for the given track.
 
CELER_FUNCTION void reset_interaction_mfp ()
 Reset the currently calculated interaction MFP.
 
CELER_FUNCTION void interaction_mfp (real_type)
 Retrieve the interaction mean free path.
 
CELER_FUNCTION real_type interaction_mfp () const
 Retrieve the interaction mean free path.
 
CELER_FUNCTION bool has_interaction_mfp () const
 Whether there's a calculated interaction MFP.
 
CELER_FUNCTION void macro_xs (real_type xs)
 Set total cross section for this step.
 
CELER_FUNCTION real_type macro_xs () const
 Retrieve total cross section for this step.
 
CELER_FUNCTION ModelId::size_type num_models () const
 Retrieve the number of optical models.
 
CELER_FUNCTION ActionId model_to_action (ModelId) const
 Convert a model ID to an action ID.
 
CELER_FUNCTION ModelId action_to_model (ActionId) const
 Convert an action ID to a model ID.
 
CELER_FUNCTION ActionId discrete_action () const
 Get the action ID for the discrete action.
 
CELER_FUNCTION ValueGridId mfp_grid (ModelId) const
 Get the MFP grid ID for the given model.
 
CELER_FUNCTION real_type calc_mfp (ModelId, Energy) const
 Calculate the MFP for the given model and energy.
 

Detailed Description

Optical physics data for a track.

The physics track data provides an interface for data and operations common to most optical models.

Member Function Documentation

◆ calc_mfp()

CELER_FUNCTION real_type celeritas::optical::PhysicsTrackView::calc_mfp ( ModelId  model,
Energy  energy 
) const
inline

Calculate the MFP for the given model and energy.

Energy is interpolated using NonuniformGridCalculator for the model's MFP grid.

◆ mfp_grid()

CELER_FUNCTION ValueGridId celeritas::optical::PhysicsTrackView::mfp_grid ( ModelId  model) const
inline

Get the MFP grid ID for the given model.

The grid corresponds to the optical material this track view was constructed with.


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