Feature: Create partitioning of a system

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
cpp
領域
backend

調査の方向性

まず、既存の GridKit の協調シミュレーション分割の概念実証と、issue に記載されているシステムベクトルの配布経路を確認します。提案された分割設計が受け入れられているか確認してください。コンポーネントのクローン作成、強制コンポーネントとノード、ベクトルマッピングを含む実装方針について合意できれば完了です。

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

説明

enhancement

For co-simulation methods, it's necessary to partition a system and evaluate the residuals and Jacobians of the partitions separately.

For the proof-of-concept version of the co-simulation methods, this is how we did the partitioning:

  1. A full system is constructed normally.
  2. A "partitioning" routine takes the full system, as well as a list of component IDs and node IDs that we want to be in each partition. This routine creates duplicates of all of the components/nodes and creates new systems for each partition. Each system contains the components and nodes that are assigned to it through the lists of component IDs and node IDs.
  3. The routine identifies components/nodes which are connected to components/nodes in other partitions and creates additional copies of these components to be inserted into those systems without increasing the system size of those systems. It does this through a system similar, but distinct from, the reference/ground nodes (setting the system mapping to -1). We'll call these "forcing components/nodes" as they are responsible for introducing the coupling forcing into each system.
  4. A separate partitioning manager keeps track of the forcing components/nodes, as well as the mapping to/from the overall system vector between all of the partitions.

When an integrator asks for the residual or Jacobian evaluation for a particular partition, it updates the internal variables for all of the forcing components and voltages for each forcing node, then evaluates the residual or Jacobian for the system belonging to that partition.

If we wanted to implement partitioning this way, these were the changes we made to GridKit to support it:

  • a clone_component() virtual function which allows creation of a duplicate component (used for forcing components)
  • a way to keep track of forcing components/nodes that works similarly to reference nodes (in that you can set their values and they do not contribute to overall system vector) but can perhaps be distinct from reference nodes
  • currently, reference nodes are zero-d out every time distributeVectors() is called. This should not be the case for forcing components/nodes.

Let me know if we want to go with this design or if we want to go a different way @pelesh @nkoukpaizan

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