XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Public Attributes | List of all members
GridFiles Struct Reference

#include <grid_files.hpp>

Public Member Functions

void construct_hex_grid (int nshells, double raxis, double zaxis, double rscale, double zscale)
 
 GridFiles (int nshells, double raxis, double zaxis, double rscale, double zscale)
 
 GridFiles (MagneticField< HostType > &magnetic_field, int nshells)
 
 GridFiles (const std::string node_file, const std::string ele_file)
 

Public Attributes

int nnodes
 
std::vector< RZPairx
 
std::vector< int > rgn
 
int ntriangles
 
std::vector< Vertexnodes
 

Constructor & Destructor Documentation

GridFiles::GridFiles ( int  nshells,
double  raxis,
double  zaxis,
double  rscale,
double  zscale 
)
inline

Constructor to create analytic grid (hexagonal shells) given center and triangle scale

Parameters
[in]nshellsis the number of concentric hexagons to be constructed
[in]raxisis where the grid is to be centered (r coord)
[in]zaxisis where the grid is to be centered (z coord)
[in]rscaleis the length of the triangles
[in]zscaleis the height of the triangles

Here is the call graph for this function:

GridFiles::GridFiles ( MagneticField< HostType > &  magnetic_field,
int  nshells 
)
inline

Constructor to create analytic grid (hexagonal shells) to fit the magnetic field provided

Parameters
[in]magnetic_fieldis the magnetic field that the grid should fit
[in]nshellsis the number of concentric hexagons to be constructed

Here is the call graph for this function:

GridFiles::GridFiles ( const std::string  node_file,
const std::string  ele_file 
)
inline

Member Function Documentation

void GridFiles::construct_hex_grid ( int  nshells,
double  raxis,
double  zaxis,
double  rscale,
double  zscale 
)
inline

Construct the analytic hexagonal grid

Parameters
[in]nshellsis the number of concentric hexagons to be constructed
[in]raxisis where the grid is to be centered (r coord)
[in]zaxisis where the grid is to be centered (z coord)
[in]rscaleis the length of the triangles
[in]zscaleis the height of the triangles

Here is the caller graph for this function:

Member Data Documentation

int GridFiles::nnodes
std::vector<Vertex> GridFiles::nodes
int GridFiles::ntriangles
std::vector<int> GridFiles::rgn
std::vector<RZPair> GridFiles::x

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