How do I convert input and output variables

Đang mở
#69 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Python
Star
212
Fork
101
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của OpenMDAO/pyCycle

Tất cả issue của OpenMDAO/pyCycle

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.