XGCa
|
#include "grid.hpp"
Go to the source code of this file.
Functions | |
void | ff_projection_setup (NLReader::NamelistReader &nlr, const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, Projection< HostType > &half_plane_ff, Projection< HostType > &one_plane_ff) |
void ff_projection_setup | ( | NLReader::NamelistReader & | nlr, |
const Grid< DeviceType > & | grid, | ||
const MagneticField< DeviceType > & | magnetic_field, | ||
Projection< HostType > & | half_plane_ff, | ||
Projection< HostType > & | one_plane_ff | ||
) |
Initialize the field-aligned mapping between adjacent planes. The routine traces magnetic field lines from each vertex of a plane in both toroidal directions to the adjacent mid-planes and full-step planes, records the triangle in which the field line intersects these planes and the corresponding interpolation weights.
[in] | grid | XGC grid object, type(grid_type) |
[out] | psn | XGC field data object, type(psn_type) |
< zero out p for non-exist field following position.