|
The Open FUSION Toolkit 1.0.0-beta5
Modeling tools for plasma and fusion research and engineering
|
Functions | |
| build_periodic_mesh (r_grid, nfp) | |
| build_regcoil_grid (filename, field_suffix, ntheta, nphi, full_torus=False) | |
| build_torus_bnorm_grid (filename, nsample, nphi, resample_type='theta', use_spline=False) | |
| build_triangles_from_grid (data_grid, wrap_n=True, wrap_m=True) | |
| write_periodic_mesh (filename, r, lc, reg, tnodeset, pnodesets, pmap=None, nfp=1, include_closures=True) | |
| write_ThinCurr_mesh (filename, r, lc, reg, holes=[], closures=[], pmap=None, nfp=None) | |
| build_periodic_mesh | ( | r_grid, | |
| nfp | |||
| ) |
Build triangular mesh for the full surface from a uniform grid of a single field period (toroidal) @param r_grid Uniform grid [nphi,ntheta,3] (\f$ \phi \f$ and \f$ \theta \f$ vary along the first and second dimension respectively) @param nfp Number of field periods @result point list [np,3], cell list [nc,3], toroidal nodeset, poloidal nodesets, periodicity map
| build_regcoil_grid | ( | filename, | |
| field_suffix, | |||
| ntheta, | |||
| nphi, | |||
full_torus = False |
|||
| ) |
Build a uniform grid from a REGCOIL definition
@param field_suffix Suffix for netCDF fields (eg. "plasma" or "coil")
@param ntheta Number of points in the \f$ \theta \f$ (poloidal) direction
@param nphi Number of points in the \f$ \phi \f$ (toroidal) direction
@param full_torus Construct grid for the full torus (default: one field period)
@result
| build_torus_bnorm_grid | ( | filename, | |
| nsample, | |||
| nphi, | |||
resample_type = 'theta', |
|||
use_spline = False |
|||
| ) |
Build a uniform grid from a toroidal surface B-norm definition file @param filename Filename of B-norm poloidal mode definition @param nsample Number of points in the \f$ \theta \f$ (poloidal) direction @param nphi Number of points in the \f$ \phi \f$ (toroidal) direction @param resample_type Construct grid for the full torus (default: one field period) @param use_spline @result
| build_triangles_from_grid | ( | data_grid, | |
wrap_n = True, |
|||
wrap_m = True |
|||
| ) |
Build triangles from a uniform grid of points @param data_grid Uniform point grid [n,m,3] @param wrap_n Wrap grid in n-direction? @param wrap_m Wrap grid in m-direction? @result point list [n*m,3], cell list [nc,3], nodeset in the n-direction, nodeset in the m-direction
| write_periodic_mesh | ( | filename, | |
| r, | |||
| lc, | |||
| reg, | |||
| tnodeset, | |||
| pnodesets, | |||
pmap = None, |
|||
nfp = 1, |
|||
include_closures = True |
|||
| ) |
| write_ThinCurr_mesh | ( | filename, | |
| r, | |||
| lc, | |||
| reg, | |||
holes = [], |
|||
closures = [], |
|||
pmap = None, |
|||
nfp = None |
|||
| ) |
Create a native HDF5 mesh file for ThinCurr from the given mesh information
@param filename Filename for mesh file
@param r Points list [np,3]
@param lc Cell list [nc,3] (1-based)
@param reg Region list [nc]
@param holes List of node sets for hole definitions
@param closures List of closures
@param pmap Point mapping for periodic meshes (single surface only)
@param nfp Number of field periods for periodic meshes (single surface only)