:orphan: .. This file is auto-generated. To update the content, edit the OptionsFactory constructors in the hypnotoad source code. To change the formatting, edit the ``create_options_rst()`` function in ``conf.py``. Tokamak options =============== .. table:: :widths: 20 75 5 +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | Option | Description | Default | +================================================================+==================================================================================+======================+ | N_norm_prefactor | Prefactor that multiplys ny_total to give the normalization factor for the total | 1.0 | | | number of points in contours. The normalisation factor is used to scale the grid | | | | spacing with the total number of points, which keeps the spacing functions | | | | consistent when the resolution is changed | | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | extrapolate_profiles | Use an exponential decay for the pressure outside the separatrix, based on the | False | | | value and gradient at the plasma edge | | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | finecontour_Nfine | Number of points on each FineContour. Increase for more accurate interpolation | 100 | | | or distance calculations | | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | finecontour_atol | Absolute tolerance for refinement of FineContours | 1e-12 | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | finecontour_diagnose | Print and display some information to help diagnose failures in FineContour | False | | | refinement and adjustment | | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | finecontour_extend_prefactor | Prefactor to increase estimate for number of points to extend FineContour when | 2.0 | | | y_boundary_guards>0. May be useful to decrease in case of FineContour creation | | | | failures if the target end is very close to a region with problematic psi (e.g. | | | | coils, centre column). If the value is too small, may result in extrapolation | | | | using FineContour points which is likely to be poorly constrained. | | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | finecontour_maxits | Maximum number of iterations for refinement and adjustment of a FineContour | 200 | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | finecontour_overdamping_factor | Damping factor 01 to | 1.0 | | | make points further apart | | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | psinorm_core | Normalised psi of the inner radial (core) boundary | 0.9 | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | psinorm_pf | Normalised psi of the inner radial boundary in the PFR | 0.9 | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | psinorm_pf_lower | Normalised psi of the inner radial boundary in the lower PFR | 0.9 | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | psinorm_pf_upper | Normalised psi of the inner radial boundary in the upper PFR | 0.9 | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | psinorm_sol | Normalised psi of the outer radial (SOL) boundary | 1.1 | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | psinorm_sol_inner | Normalised psi of the outer radial boundary in the inner SOL | 1.1 | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | refine_atol | Absolute tolerance for refinement of points | 2e-08 | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | refine_methods | Ordered list of methods to try when refining points. Valid names are: 'newton' - | ['integrate+newton', | | | Newton iteration; 'line' - a line search; 'integrate' integrate along psi | 'integrate'] | | | gradient; 'integrate+newton' integrate, then refine with Newton; 'none' - no | | | | refinement (always succeeds) | | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | refine_timeout | Timeout for refining FineContour objects in seconds. Set to None to disable the | 10.0 | | | timeout; can be useful for debugging as exceptions may get lost due to a | | | | separate thread being used to run the refine() method with a timeout. If you get | | | | func_timeout.exceptions.FunctionTimedOut exceptions and you are sure there is no | | | | problem with the grid, you could try increasing this value. | | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | refine_width | Width for line search when refining points | 1e-05 | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | reverse_Bt | Reverse the sign of toroidal magnetic field Bt. | False | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | reverse_current | Reverse the sign of the poloidal field | False | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | sfunc_checktol | Tolerance to check for small negative values that are not significantly | 1e-13 | | | different from zero in poloidal spacing functions | | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | start_at_upper_outer | Start gridding double-null at upper-outer divertor instead of lower-inner. | False | | | Warning: this option was added to enable backward compatibility with restart | | | | files from simulations in upper-disconnected-double-null configuration using | | | | grid files from the IDL hypnotoad; it is not well tested and not recommended to | | | | use. | | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | target_all_poloidal_spacing_length | Spacing at the wall end of a region (used for orthogonal grids). Use None to not | None | | | constrain the spacing. | | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | target_inner_lower_poloidal_spacing_length | Spacing at the wall end of the inner, lower divertor leg region (used for | None | | | orthogonal grids). Use None to not constrain the spacing. | | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | target_inner_upper_poloidal_spacing_length | Spacing at the wall end of the inner, upper divertor leg region (used for | None | | | orthogonal grids). Use None to not constrain the spacing. Note an upper single | | | | null equilibrium will not use this setting, but rather | | | | target_inner_lower_poloidal_spacing_length, for reasons of implementation | | | | convenience. | | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | target_outer_lower_poloidal_spacing_length | Spacing at the wall end of the outer, lower divertor leg region (used for | None | | | orthogonal grids). Use None to not constrain the spacing. | | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | target_outer_upper_poloidal_spacing_length | Spacing at the wall end of the outer, upper lower divertor leg region (used for | None | | | orthogonal grids). Use None to not constrain the spacing. Note an upper single | | | | null equilibrium will not use this setting, but rather | | | | target_outer_lower_poloidal_spacing_length, for reasons of implementation | | | | convenience. | | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | xpoint_offset | Tolerance for placing intial positions for tracing perpendiculars that should | 0.1 | | | start exactly at an X-point, but initial positions to be slightly displaced from | | | | the null so code can follow Grad(psi). This is a numerical fudge factor that | | | | may need to be increased for low-resolution input equilibria. | | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | xpoint_poloidal_spacing_length | Spacing at the X-point end of a region (used for orthogonal grids). | 0.05 | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | xpoint_refine_atol | Tolerance used when iteratively refining the position of an X-point that has | 1e-06 | | | been identified. | | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | xpoint_refine_maxits | Maximum number of iterations for iterative refinement of the position of an | 1000 | | | X-point that has been identified. | | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+ | y_boundary_guards | Number of y-boundary cells | 0 | +----------------------------------------------------------------+----------------------------------------------------------------------------------+----------------------+