The FLARE code is a magnetic mesh generator that is integrated within a suite of tools for the analysis of the magnetic geometry in toroidal fusion devices. A magnetic mesh is constructed from field line segments and permits fast reconstruction of field lines in 3D boundary plasma codes such as EMC3-EIRENE. Both intrinsically non-axisymmetric configurations (stellarators) and those with symmetry breaking perturbations of an axisymmetric equilibrium (tokamaks) are supported. The code itself is written in Modern Fortran with MPI support for parallel computing, and it incorporates object-oriented programming for the definition of the magnetic field and the material surface geometry. Extended derived types for a number of different magnetohydrodynamic equilibrium and plasma response models are implemented. The core element of FLARE is a field line tracer with adaptive step-size control, and this is integrated into tools for the construction of Poincaré maps and invariant manifolds of X-points. A collection of high-level procedures that generate output files for visualization is build on top of that. The analysis modules are build with Python frontends that facilitate customization of tasks and/or scripting of parameter scans.
FLAREコードは、トロイダル核融合装置における磁気幾何学の解析のためのツール群に統合された磁気メッシュ生成器です。磁気メッシュは磁力線セグメントから構築され、EMC3-EIRENEのような3次元境界プラズマコードにおける磁力線の高速再構築を可能にします。本質的に非軸対称な配位(ステラレータ)と、軸対称平衡の対称性を破る摂動を持つ配位(トカマク)の両方がサポートされます。コード自体はModern Fortranで書かれており、並列計算のためのMPIサポートを備え、磁場と材料表面形状の定義にオブジェクト指向プログラミングを採用しています。多数の異なる電磁流体力学平衡およびプラズマ応答モデルに対する拡張派生型が実装されています。FLAREの核心要素は、適応的ステップサイズ制御を備えた磁力線トレーサーであり、これはポアンカレ写像およびX点の不変多様体の構築のためのツールに統合されています。その上に、可視化のための出力ファイルを生成する高水準手続きのコレクションが構築されています。解析モジュールはPythonフロントエンドを用いて構築され、タスクのカスタマイズおよび/またはパラメータスキャンのスクリプト化を容易にします。