Multiple Monitor Sinks + Remove monitor field from case

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
cpp
領域
backend

調査の方向性

まず、*.case.json から monitors を読み取るコードと、solver 設定のパーサーを見つけます。issue にある monitors 配列の例を使って、コンポーネントデータがどのように選択され、別々のファイルに書き込まれるかを追跡し、その後、case レベルの monitor フィールドが不要になっていることを確認します。

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

説明

Summary

Ability to make a monitor in the *.solver.json and collect component monitor data based on some regular expression

Rationale

Having the monitors defined in the *.case.json is not intuitive and really difficult to use. Having a wildcard/regex in the .solver.json and beign able to colelct output into different files is what we need.

Description
{
    "system_model_file": "../../../../cases/PhasorDynamics/wecc.case.json",
    "dt_monitor": 0.004166666666666667,
    "tmax": 10.0,
    "events": [
        { "time": 1.0, "type": "fault_on", "element_id": 0 },
        { "time": 1.15, "type": "fault_off", "element_id": 0 }
    ],
    "monitors": [
        {
            "file_name": "wecc.omega.csv",
            "include": "Genrou_*_omega",
            "reference_file": "wecc.omega.ref.csv",
            "error_type": "relative",
            "error_tolerance": 1e-2,
            "abs_err_threshold": 1e-6
        },
        {
            "file_name": "wecc.vmag.csv",
            "include": "Bus_*_Vm",
            "reference_file": "wecc.vmag.ref.csv",
            "error_type": "relative",
            "error_tolerance": 1e-2,
            "abs_err_threshold": 1e-6
        },
        {
            "file_name": "wecc.p.csv",
            "include": "Genrou_*_p",
            "reference_file": "wecc.p.ref.csv",
            "error_type": "relative",
            "error_tolerance": 1e-2,
            "abs_err_threshold": 1e-6
        },
        {
            "file_name": "wecc.q.csv",
            "include": "Genrou_*_q",
            "reference_file": "wecc.q.ref.csv",
            "error_type": "relative",
            "error_tolerance": 1e-2,
            "abs_err_threshold": 1e-6
        }
    ]
}
Additional information

@PhilipFackler I liked your vision for this

主要言語
C++
スター
27
フォーク
11
平均マージ
2日 21時間
マージ済み PR(30日)
15

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

ORNL/GridKit のほかの issue

ORNL/GridKit の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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