How do I convert input and output variables

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

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

評価

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

調査の方向性

Start with the balance.add_balance and self.connect calls in the MixedFlowTurbofan setup, then read the reported OpenMDAO connection error. Trace whether LP_Nmech is exposed as an input or output and how the off-design balance is intended to select N1 control. Done means the requested off-design control configuration connects valid variables without the reported RuntimeError.

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

説明

In the off-design points, I wanted to control with N1 instead of thrust and T4, so I changed the balance module as follows:
balance.add_balance('FAR_core', eq_units='rpm', lower=1e-4, val=.017)
self.connect('balance.FAR_core', 'burner.Fl_I:FAR')
self.connect('LP_Nmech', 'balance.lhs:FAR_core')

The error is as follows:
RuntimeError:
Collected errors for problem 'problem79':
'case1' : Attempted to connect from 'LP_Nmech' to 'balance.lhs:FAR_core', but 'LP_Nmech' is an input. All connections must be from an output to an input.

How can I change it

主要言語
Python
スター
212
フォーク
101
PR マージ指標
30日以内にマージされた PR はありません

環境構築

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

はじめの一歩

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

OpenMDAO/pyCycle のほかの issue

OpenMDAO/pyCycle の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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