Considering the following problem
import openmdao.api as om
class Sys(om.Group):
def setup(self):
self.add_subsystem('sys1', om.ExecComp('v1 = a + b'), promotes=['*'])
self.add_subsystem('sys2', om.ExecComp('v2 = v1 + c'), promotes=['*'])
if __name__ == '__main__':
prob = om.Problem()
model = prob.model
comp = model.add_subsystem('comp', Sys(), promotes=['*'])
prob.setup()
prob.run_model()
comp.list_inputs()
the list_inputs
command gives the following
4 Input(s) in 'comp'
varname val
------- ----
sys1
a [1.]
b [1.]
sys2
c [1.]
v1 [2.]
However we can clearly see that v1 in an 'internal' input to the system. If we were to attach this to an IndepVarComp or another system, we would not have to provide v1
since it is already internally connected.
Is there a function that can list the inputs that are unconnected or that must be provided to a Group?