|
Stellarator and Tokamak Modeling and Meshing Software (STOMMS)
|
class XGCBackgroundGridData. More...
Public Member Functions | |
| XgcBackgroundGridData () | |
| XgcBackgroundGridData (std::string adiosFileName) | |
| const std::vector< double > & | getGridPointsR () const |
| const std::vector< double > & | getGridPointsZ () const |
| const std::vector< double > & | getPsiFieldOnGrid () const |
| const std::vector< double > & | getPsiArray () const |
| const std::vector< double > & | getPoloidalCurrentArray () const |
| const std::vector< double > & | getLimiterR () const |
| const std::vector< double > & | getLimiterZ () const |
| std::array< double, 4 > | getDomainBox () const |
| const std::vector< double > & | getPsplinePsiCoefficients () const |
| const std::vector< double > | getPsplineCurrentCoefficients () const |
| const std::vector< double > & | getBicubicSplineCoefficients () const |
| std::array< double, 16 > | getBicubicSplineCoefficientsInCell (int rIndex, int zIndex) const |
| std::array< double, 16 > | getPsiAtChebyshevPointsInCell (int rIndex, int zIndex) const |
class XGCBackgroundGridData.
|
inline |
| XgcBackgroundGridData::XgcBackgroundGridData | ( | std::string | adiosFileName | ) |
Constructor for XGC Background Grid Data.
| adiosFileName | Adios2 file name containing mesh and related information. |
| const std::vector< double > & XgcBackgroundGridData::getBicubicSplineCoefficients | ( | ) | const |
Function to return a vector of all the bicubic spline coefficients in all grid cell.
It contains 16 coefficients for each cell. vector.size() = nR*nZ*16.
| std::array< double, 16 > XgcBackgroundGridData::getBicubicSplineCoefficientsInCell | ( | int | rIndex, |
| int | zIndex | ||
| ) | const |
Function to return an array of bicubic spline coefficients for a grid cell.
| rIndex | index of grid cell along R. Ranges from 0 to rGridPoints.size()-1 |
| zIndex | index of grid cell along Z. Ranges from 0 to zGridPoints.size()-1 |
| std::array< double, 4 > XgcBackgroundGridData::getDomainBox | ( | ) | const |
Function to return eqdsk domain box.
An array of size 4.
Contains rMin, zMin, rMax, zMax.
| const std::vector< double > & XgcBackgroundGridData::getGridPointsR | ( | ) | const |
Function to return a vector of R coordinates of the grid.
| const std::vector< double > & XgcBackgroundGridData::getGridPointsZ | ( | ) | const |
Function to return a vector of Z coordinates of the grid.
| const std::vector< double > & XgcBackgroundGridData::getLimiterR | ( | ) | const |
Function to return a vector of R coordinates of the limiter.
| const std::vector< double > & XgcBackgroundGridData::getLimiterZ | ( | ) | const |
Function to return a vector of Z coordinates of the limiter.
| const std::vector< double > & XgcBackgroundGridData::getPoloidalCurrentArray | ( | ) | const |
Function to return a vector of poloidal current from Eqdsk.
| const std::vector< double > & XgcBackgroundGridData::getPsiArray | ( | ) | const |
Function to return a vector of psi flux from Eqdsk.
| std::array< double, 16 > XgcBackgroundGridData::getPsiAtChebyshevPointsInCell | ( | int | rIndex, |
| int | zIndex | ||
| ) | const |
Function to return an array of psi values at Chebyshev points for a grid cell.
| rIndex | index of grid cell along R. Ranges from 0 to rGridPoints.size()-1 |
| zIndex | index of grid cell along Z. Ranges from 0 to zGridPoints.size()-1 |
| const std::vector< double > & XgcBackgroundGridData::getPsiFieldOnGrid | ( | ) | const |
Function to return a vector of psi field on grid points.
Size of psi vector = size of R vector* size of Z vector.
| const std::vector< double > XgcBackgroundGridData::getPsplineCurrentCoefficients | ( | ) | const |
Function to return PSPLINE poloidal current spline coefficients.
number of coefficients = 2*psi.size()
| const std::vector< double > & XgcBackgroundGridData::getPsplinePsiCoefficients | ( | ) | const |
Function to return global PSPLINE psi spline coefficients.
number of coefficients = 4*rGridPoints.size()*zGridPoints.size()