#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 () |
|
| 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) |
|
int | n_specified_xpts () |
|
View< Equil::XPoint *, HostType > | get_xpts () |
|
|
int | nnodes |
|
View< RZPair *, HostType > | x |
|
View< int *, HostType > | rgn |
|
int | ntriangles |
|
View< Vertex *, HostType > | nodes |
|
View< int *, HostType > | i_x |
|
int | nsurfaces |
|
int | nsurfaces1 |
|
int | nsurfaces2 |
|
int | nsurfaces3a |
|
int | nsurfaces3b |
|
View< int *, HostType > | i_surf_separatrices |
|
View< int *, HostType > | nnodes_on_surface |
|
int | sum_nnodes_on_surfaces |
|
int | num_non_aligned |
|
View< int *, HostType > | non_aligned_vert |
|
View< int *, HostType > | non_aligned_nsurf |
|
View< int **, CLayout, HostType > | non_aligned_surf_idx |
|
View< int **, CLayout, HostType > | surf_idx |
|
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
Allocate vectors on non-root ranks
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 |
int GridFiles::n_specified_xpts |
( |
| ) |
|
|
inline |
Determine distance between two node points
- Parameters
-
[in] | a | is the first point |
[in] | b | is the second point |
View<int*, HostType> GridFiles::i_surf_separatrices |
View<int*, HostType> GridFiles::nnodes_on_surface |
View<int*, HostType> GridFiles::non_aligned_nsurf |
View<int*, HostType> GridFiles::non_aligned_vert |
int GridFiles::nsurfaces1 |
int GridFiles::nsurfaces2 |
int GridFiles::nsurfaces3a |
int GridFiles::nsurfaces3b |
int GridFiles::ntriangles |
int GridFiles::num_non_aligned |
int GridFiles::sum_nnodes_on_surfaces |
The documentation for this struct was generated from the following file:
- /u/gitlab-xgc/builds/YGMz2TJ8/1/xgc/XGC-Devel/XGC_core/cpp/grid_files.hpp