Tearing - Tell a limited plasma from a padded g-file before placing surfaces past the boundary

オープン
#529 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
領域
backend

調査の方向性

Start with the g-file reader, which currently drops the limiter contour, and with the overlap scan that places surfaces past ψ_N = 1 when separatrix_q_law fires on a limited plasma. First keep the limiter contour when it is present, then have the scan check whether the boundary touches the limiter and skip any surface past ψ_N = 1 in that case, with a message saying so. Done when a limited EFIT-style test file with a nearby X-point produces no phantom surface and no overlap warning.

索引モデルが issue の本文から書いたものです。

説明

separatrix_q_law builds a law whenever a poloidal-field minimum on the outermost surface leads to a saddle and the law reproduces the traced shear. A limited plasma with an X-point nearby passes both: one EFIT reconstruction checked gives an X-point at ψ_N = 1.093 and a shear ratio of 0.86. The overlap scan then treats it like a padded diverted file. It places one rational past ψ_N = 1, where no closed surface exists, and warns that no overlap could be established.

Today the domain is unchanged, so this is only a spurious warning. But if the kinetic profiles extend past ψ_N = 1 (p-files often reach about 1.12), that phantom surface would be scored and could move the cut one rational inward.

The size of the gap cannot distinguish the two cases, since a plasma close to diverting can have an X-point just outside ψ_N = 1. The reliable discriminator is the g-file's limiter contour, which GPEC's reader does not keep: a boundary touching the limiter is limited, and no surface past it should be placed.

Done when:

  • The reader keeps the limiter contour, where present.
  • The scan places no surface past ψ_N = 1 when the boundary touches the limiter, and says so.
  • A test with a limited EFIT-style file that has an X-point nearby.

🤖 Generated with Claude Code

主要言語
Julia
スター
11
フォーク
7
平均マージ
4日 3時間
マージ済み PR(30日)
70

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenFUSIONToolkit/GPEC のほかの issue

OpenFUSIONToolkit/GPEC の issue をすべて見る

似ている issue

Julia の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。