KineticForces - Read the kinetic file's zeff dataset

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
22/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
領域
data

調査の方向性

Start with resolve_ntv_species and the [KineticForces] zimp and mimp settings, then trace how zpitch and multi_ion_composition consume Zeff. The first step is a design decision: record what a supplied Zeff means for zpitch when Zeff is at or above zimp, and for the impurity density and collision frequencies. Done means the NTV path reads the file's zeff under that rule, logs its source, and is covered by a test with and without the dataset, with docs/src/kinetic_forces.md updated.

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

説明

The kinetic profile file can carry an optional zeff dataset, which the SLAYER layer and the resistive-layer overlap scan prefer to their own closure (PR #298). The NTV path does not read it: resolve_ntv_species always derives Zeff from quasi-neutrality with one impurity ([KineticForces] zimp, mimp). One run can therefore use two Zeff profiles: the file's in the tearing analysis and the closure's in the NTV torque.

Why this is more than a one-line change:

  • In the NTV path Zeff comes with the pitch-angle factor zpitch and the impurity density from multi_ion_composition, and the collision frequencies use all three. Overriding Zeff alone would leave them inconsistent.
  • zpitch has a pole at Zeff = zimp, so a supplied Zeff above zimp needs a defined behaviour.
  • The impurity charge is set twice, as [KineticForces] zimp (integer) and [SLAYER] zimp (float). They should become one setting, or be documented as deliberately separate.

Done when:

  • A rule is recorded for what a supplied Zeff means for zpitch, the impurity density and the collision frequencies.
  • The NTV path uses the file's zeff under that rule and logs which source it used.
  • A test covers a file with and without the dataset.
  • docs/src/kinetic_forces.md states the precedence for both paths.

🤖 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 を短くまとめたダイジェスト。