Stellarator and Tokamak Modeling and Meshing Software (STOMMS)
Loading...
Searching...
No Matches
Functions
modelingVmec.h File Reference

Functions

Model generateSimModelVmec (std::vector< PlaneMetaData > md, const PhysicalGeometry &pg, const VmecData &vm)
 
void generateWallFaceVmec (pGModel model, std::vector< PlaneMetaData > md, const PhysicalGeometry &pg, const VmecData &vm)
 
std::vector< Point > convertFromCylindricalToCartesian (const std::vector< Point > &points, double phi)
 
pGModel generateCoreSimModelVmec (std::vector< PlaneMetaData > mD, const VmecData &vm)
 
pGModel simModelFromVmec (pVmecFlux vf, int npsi, int nzeta, const double *psis, const double *zetas)
 

Function Documentation

◆ convertFromCylindricalToCartesian()

std::vector< Point > convertFromCylindricalToCartesian ( const std::vector< Point > &  points,
double  phi 
)

Given a vector of points in RZ coordinate, and an input toroidal angle phi, convert the points to Cartesian coordinates.

Parameters
pointsa vector of RZ points (in Cylindrical coordinates).
phitoroidal angle phi.

◆ generateCoreSimModelVmec()

pGModel generateCoreSimModelVmec ( std::vector< PlaneMetaData >  mD,
const VmecData &  vm 
)

From a given Vmec File, generate the model of the core region of stellarator

Parameters
mDa vector of planes with their meta data.
vman object of vmec data class.
Returns
an object of Simmetrix model pGModel.

◆ generateSimModelVmec()

Model generateSimModelVmec ( std::vector< PlaneMetaData >  md,
const PhysicalGeometry &  pg,
const VmecData &  vm 
)

From given Vmec data and meta data, generate the model of the stellarator.

Parameters
mDa vector of planes with their meta data.
pgInformation related to phsyical geometry (wall curve for now).
vmvmec class containing all the vmec data.

◆ generateWallFaceVmec()

void generateWallFaceVmec ( pGModel  model,
std::vector< PlaneMetaData >  md,
const PhysicalGeometry &  pg,
const VmecData &  vm 
)

Given a pGModel and wall data, add wall curves and model face to the model.

Parameters
mDa vector of planes with their meta data.
pgInformation related to phsyical geometry (wall curve for now).
vmvmec class containing all the vmec data.

◆ simModelFromVmec()

pGModel simModelFromVmec ( pVmecFlux  vf,
int  npsi,
int  nzeta,
const double *  psis,
const double *  zetas 
)

From Vmec flux data (vf), flux indices (nrho and rhos), and, poloidal planes (nzeta and zetas) generate a Simmetrix model (pGModel model).

Parameters
vfflux data on all the planes.
npsinumber of flux curves on each plane.
nzetanumber of poloidal planes.
psisan input array holding flux normalized psi values.
zetas:aninput array holding toroidal angles of the poloidal planes.
Returns
pGModel(Simmetrix Model).