Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I convert input and output variables #69

Open
NJC1012 opened this issue Jun 18, 2024 · 0 comments
Open

How do I convert input and output variables #69

NJC1012 opened this issue Jun 18, 2024 · 0 comments

Comments

@NJC1012
Copy link

NJC1012 commented Jun 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant