OpenMDAO / pyCycle

Thermodynamic cycle modeling library, built on top of OpenMDAO
Other
78 stars 53 forks source link

Composition array shape error when using wet air thermo and bleeds #36

Closed lamkina closed 3 years ago

lamkina commented 3 years ago

Package Versions

Description

self.pyc_add_element(
            "comp",
            pyc.Compressor(
                map_data=pyc.AXI5,
                design=design,
                thermo_data=wet_thermo_spec,
                elements=pyc.WET_AIR_ELEMENTS,
                bleed_names=["test_bleed"],
            ),
            promotes_inputs=["Nmech"],
        )
self.pyc_add_element(
            "turb",
            pyc.Turbine(
                map_data=pyc.LPT2269,
                design=design,
                thermo_data=janaf_thermo_spec,
                elements=pyc.AIR_FUEL_ELEMENTS,
                bleed_names=["test_bleed"],
            ),
            promotes_inputs=["Nmech"],
        )
# Connect simple test bleed
self.pyc_connect_flow("comp.test_bleed", "turb.test_bleed", connect_stat=False)

Error Message

ValueError: 'DESIGN' <class WetTurbojet>: The source and target shapes do not match or are ambiguous for the connection 'DESIGN.comp.test_bleed_flow.flow.test_bleed:tot:composition' to 'DESIGN.turb.bld_mix.test_bleed:composition'. The source shape is (5,) but the target shape is (4,).