Do we need `BusInfinite` to inherit from `BusBase`?
メンテナーはふだん 1 日以内に返信
@pelesh がすでに取り組んでいます。
2026年6月24日 から。
評価
この issue はまだ評価されていません。
説明
Summary
I suggest to make BusInfinite a standalone class, not inheriting from BusBase. In that case, the system composer would have separate loops for buses and infinite buses. The latter might be needed only for component instantiation and not for allocation, residual evaluation or Jacobian evaluation.
In GridKit phasor dynamics module, similar example is SignalNode, which is also a standalone class.
CC @lukelowry @PhilipFackler @nkoukpaizan @abirchfield
Rationale
Inheritance is "is a" relationship and despite its name infinite bus is not really a bus. Rather it stands in for a connection to a grid that is much larger than the grid being modeled.
The infinite bus does not have internal variables or equations and can be skipped in SystemSolver when allocating workspace, evaluating residual or Jacobian, etc. Without the inheritance, the BusInfinite class could be simplified and BusBase could be merged with Bus class to further simplify the code.
Description
I suggest implementing BusInfinite as a standalone class that is treated separately from the Bus instances. We needed inheritance because component constructors needed pointers to buses. Since ComponentData instance has all the connectivity information for each component, pointers to the buses will be eventually removed.
Additional information
No response
- 主要言語
- C++
- スター
- 27
- フォーク
- 11
- 平均マージ
- 2日 21時間
- マージ済み PR(30日)
- 15
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ORNL/GridKit のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
ORNL/GridKit#587 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Companion OPF models for PD initialization constraints対応中かも @lukelowry が 3 日前に担当しました。 オープンIVP question
メンテナーはふだん 1 日以内に返信
-
Extract CommonMath functions対応中かも @amandeep25100-a11y が 6 日前に担当しました。 オープンcleanup
難易度 4/5 3〜5日 初心者へのやさしさ 54/100
メンテナーはふだん 1 日以内に返信
-
enhancement question
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
ORNL/GridKit#624 · コメント 2 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Add support for hierarchical modeling to the JSON format case file specifications対応中かも @abirchfield が 33 日前に担当しました。 オープンdocumentation enhancement new case question
ORNL/GridKit#619 · コメント 8 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
useless statementオープン
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
grizzlypeak3d/DJV#962 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信