Celeritas 0.7+c5d231878
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
celeritas::inp::CartMapField Struct Reference

Input data for a magnetic X-Y-Z vector field stored on an X-Y-Z grid. More...

#include <Field.hh>

Public Member Functions

 operator bool () const
 Whether all data are assigned and valid.
 

Public Attributes

AxisGrid< doublex
 Grid specification for each axis [len].
 
AxisGrid< doubley
 
AxisGrid< doublez
 
std::vector< doublefield
 Flattened X-Y-Z field component [bfield].
 
FieldDriverOptions driver_options
 

Detailed Description

Input data for a magnetic X-Y-Z vector field stored on an X-Y-Z grid.

The magnetic field is discretized at nodes on an X-Y-Z grid, and at each point the field vector is approximated by a 3-D vector in X-Y-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 3, for the 3-dimensional vector at that position, Y having stride (num_grid_z * 3), and X having stride (num_grid_y * num_grid_z * 3): [X][Y][Z][3]

Member Data Documentation

◆ driver_options

FieldDriverOptions celeritas::inp::CartMapField::driver_options
Todo:
Remove from field input; should be a separate input

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