#include <grid_files.hpp>
|
void | convert_to_x_rgn_format (const View< double **, CLayout, HostType > &tmp_nodes, View< RZPair *, HostType > &x, View< int *, HostType > &rgn) |
|
void | convert_to_node_format (const View< int **, CLayout, HostType > &tmp_ele, View< Vertex *, HostType > &nodes) |
|
| GridFiles (const std::string &node_file, const std::string &element_file, const std::string &flx_aif_file) |
|
void | construct_hex_grid (int nshells, double raxis, double zaxis, double rscale, double zscale) |
|
double | node_to_node_dist (RZPair a, RZPair b) |
|
void | construct_circular_grid (int nshells, double raxis, double zaxis, double rscale, double zscale) |
|
| GridFiles (int nshells, double raxis, double zaxis, double rscale, double zscale, GridCreateOpt grid_opt=Hexagonal) |
|
| GridFiles (MagneticField< HostType > &magnetic_field, int nshells, GridCreateOpt grid_opt=Hexagonal) |
|
Enumerator |
---|
Hexagonal |
|
Circular |
|
GridFiles::GridFiles |
( |
const std::string & |
node_file, |
|
|
const std::string & |
element_file, |
|
|
const std::string & |
flx_aif_file |
|
) |
| |
|
inline |
Read node file
Read node file
Read flx aif file
GridFiles::GridFiles |
( |
int |
nshells, |
|
|
double |
raxis, |
|
|
double |
zaxis, |
|
|
double |
rscale, |
|
|
double |
zscale, |
|
|
GridCreateOpt |
grid_opt = Hexagonal |
|
) |
| |
|
inline |
Constructor to create analytic grid (hexagonal shells) given center and triangle scale
- Parameters
-
[in] | nshells | is the number of concentric hexagons to be constructed |
[in] | raxis | is where the grid is to be centered (r coord) |
[in] | zaxis | is where the grid is to be centered (z coord) |
[in] | rscale | is the length of the triangles |
[in] | zscale | is the height of the triangles |
Constructor to create analytic grid (hexagonal shells) to fit the magnetic field provided
- Parameters
-
[in] | magnetic_field | is the magnetic field that the grid should fit |
[in] | nshells | is the number of concentric hexagons to be constructed |
void GridFiles::construct_circular_grid |
( |
int |
nshells, |
|
|
double |
raxis, |
|
|
double |
zaxis, |
|
|
double |
rscale, |
|
|
double |
zscale |
|
) |
| |
|
inline |
Construct the circular grid
- Parameters
-
[in] | nshells | is the number of concentric circles to be constructed |
[in] | raxis | is where the grid is to be centered (r coord) |
[in] | zaxis | is where the grid is to be centered (z coord) |
[in] | rscale | is the length of the triangles |
[in] | zscale | is the height of the triangles |
void GridFiles::construct_hex_grid |
( |
int |
nshells, |
|
|
double |
raxis, |
|
|
double |
zaxis, |
|
|
double |
rscale, |
|
|
double |
zscale |
|
) |
| |
|
inline |
Construct the analytic hexagonal grid
- Parameters
-
[in] | nshells | is the number of concentric hexagons to be constructed |
[in] | raxis | is where the grid is to be centered (r coord) |
[in] | zaxis | is where the grid is to be centered (z coord) |
[in] | rscale | is the length of the triangles |
[in] | zscale | is the height of the triangles |
Determine distance between two node points
- Parameters
-
[in] | a | is the first point |
[in] | b | is the second point |
View<int*, HostType> GridFiles::nnodes_on_surface |
View<int*, HostType> GridFiles::nodes_of_surfaces |
int GridFiles::ntriangles |
int GridFiles::sum_nnodes_on_surfaces |
The documentation for this struct was generated from the following file:
- /u/gitlab-xgc/builds/YGMz2TJ8/0/xgc/XGC-Devel/XGC_core/cpp/grid_files.hpp