XGCa
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
GridFiles Struct Reference

#include <grid_files.hpp>

Public Types

using GridCreateOpt = PlaneFiles::GridCreateOpt
 

Public Member Functions

 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)
 
std::string ifile_int2str (int ifile) const
 
const PlaneFilesInterfacelplane () const
 
const PlaneFilesInterfacemidplane () const
 
const PlaneFilesInterfacerplane () const
 
int n_planes () const
 
void clear ()
 

Static Public Member Functions

static int nshells_from_nnodes (int nnodes)
 

Public Attributes

std::vector< std::unique_ptr< PlaneFilesInterface > > plane_files_vec
 

Static Public Attributes

static constexpr GridCreateOpt Hexagonal = PlaneFiles::Hexagonal
 
static constexpr GridCreateOpt Circular = PlaneFiles::Circular
 

Member Typedef Documentation

◆ GridCreateOpt

Constructor & Destructor Documentation

◆ GridFiles() [1/2]

GridFiles::GridFiles ( int  nshells,
double  raxis,
double  zaxis,
double  rscale,
double  zscale,
GridCreateOpt  grid_opt = Hexagonal 
)

◆ GridFiles() [2/2]

GridFiles::GridFiles ( MagneticField< HostType > &  magnetic_field,
int  nshells,
GridCreateOpt  grid_opt = Hexagonal 
)

Member Function Documentation

◆ clear()

void GridFiles::clear ( )
Here is the caller graph for this function:

◆ ifile_int2str()

std::string GridFiles::ifile_int2str ( int  ifile) const
Here is the call graph for this function:

◆ lplane()

const PlaneFilesInterface & GridFiles::lplane ( ) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ midplane()

const PlaneFilesInterface & GridFiles::midplane ( ) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ n_planes()

int GridFiles::n_planes ( ) const
Here is the caller graph for this function:

◆ nshells_from_nnodes()

int GridFiles::nshells_from_nnodes ( int  nnodes)
static
Here is the call graph for this function:

◆ rplane()

const PlaneFilesInterface & GridFiles::rplane ( ) const
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ Circular

constexpr GridCreateOpt GridFiles::Circular = PlaneFiles::Circular
staticconstexpr

◆ Hexagonal

constexpr GridCreateOpt GridFiles::Hexagonal = PlaneFiles::Hexagonal
staticconstexpr

◆ plane_files_vec

std::vector<std::unique_ptr<PlaneFilesInterface> > GridFiles::plane_files_vec

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