|
The Open FUSION Toolkit 1.0.0-beta6
Modeling tools for plasma and fusion research and engineering
|
ThinCurr utilities for mesh generation and manipulation.
Classes | |
| class | ThinCurr_periodic_toroid |
| Helper class for working with periodic toroid models. More... | |
Functions | |
| build_regcoil_grid (filename, field_suffix, ntheta, nphi, full_torus=False) | |
| Build a uniform grid from a REGCOIL definition. | |
| build_ThinCurr_dummy (center, size=1.0, nsplit=0) | |
| Build simple square dummy mesh for ThinCurr (1 active node). | |
| 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. | |
| build_triangles_from_grid (data_grid, wrap_n=True, wrap_m=True) | |
| Build triangles from a uniform grid of points. | |
| 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. | |
| build_regcoil_grid | ( | filename, | |
| field_suffix, | |||
| ntheta, | |||
| nphi, | |||
| full_torus = False ) |
Build a uniform grid from a REGCOIL definition.
| field_suffix | Suffix for netCDF fields (eg. "plasma" or "coil") |
| ntheta | Number of points in the \( \theta \) (poloidal) direction |
| nphi | Number of points (per field period) in the \( \phi \) (toroidal) direction |
| full_torus | Construct grid for the full torus (default: one field period) |
| build_ThinCurr_dummy | ( | center, | |
| size = 1.0, | |||
| nsplit = 0 ) |
Build simple square dummy mesh for ThinCurr (1 active node).
| center | Center of mesh [3] |
| size | Physical size of dummy mesh in X and Y |
| nsplit | Number of refinement iterations to perform on grid (starting mesh is np=5, nc=4) |
| 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.
| filename | Filename of B-norm poloidal mode definition |
| nsample | Number of points in the \( \theta \) (poloidal) direction |
| nphi | Number of points in the \( \phi \) (toroidal) direction |
| resample_type | Construct grid for the full torus (default: one field period) |
| use_spline | Fit a spline to the boundary to produce a smoother representation? |
| build_triangles_from_grid | ( | data_grid, | |
| wrap_n = True, | |||
| wrap_m = True ) |
Build triangles from a uniform grid of points.
| data_grid | Uniform point grid [n,m,3] |
| wrap_n | Wrap grid in n-direction? |
| wrap_m | Wrap grid in m-direction? |
| 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.
| filename | Filename for mesh file |
| r | Points list [np,3] |
| lc | Cell list [nc,3] (1-based) |
| reg | Region list [nc] |
| holes | List of node sets for hole definitions |
| closures | List of closures |
| pmap | Point mapping for periodic meshes (single surface only) |
| nfp | Number of field periods for periodic meshes (single surface only) |