Celeritas 0.7.0-dev.328+develop.a407567
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
celeritas::CylMapFieldInput Struct Reference

Input data for a magnetic R-Phi-Z vector field stored on an R-Phi-Z grid. More...

#include <CylMapFieldInput.hh>

Public Member Functions

 operator bool () const
 Whether grids have been assigned.
 

Public Attributes

std::vector< real_typegrid_r
 R grid points [len].
 
std::vector< RealTurngrid_phi
 Phi grid points [quantity].
 
std::vector< real_typegrid_z
 Z grid points [len].
 
std::vector< real_typefield
 Flattened R-Phi-Z field component [bfield].
 
FieldDriverOptions driver_options
 

Detailed Description

Input data for a magnetic R-Phi-Z vector field stored on an R-Phi-Z grid.

The magnetic field is discretized at nodes on an R-Phi-Z grid, and at each point the field vector is approximated by a 3-D vector in R-Phi-Z. The input units of this field are in NATIVE UNITS (cm/gauss when CGS).

The field values are all indexed with Z having stride 1, Phi having stride (num_grid_z), and R having stride (num_grid_phi * num_grid_z): [R][Phi][Z]

Todo:
Input should use double precision; driver options should be outside field

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