- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Gas composition wrong?
Gas composition wrong?
Gas composition wrong?
I'm trying to make a simple CO2 Brayton cycle and when I connected the HeatExchanger and the GasHeader, there comes an error below.
Code:
Incompatible components in connect statement: connect(heatexchanger_needre.gasOut, gasHeader1.inlet)
- heatexchanger_needre.gasOut has components {C_outflow, Xi_outflow, h_outflow, m_flow, p}
- gasHeader1.inlet has components {C_outflow, Xi_outflow, h_outflow, m_flow, p}
And this also happens on the connection between the compressor and the heatexchanger.
Thanks for any help.
Re: Gas composition wrong?
I had a similar issue a while back. Your heat exchanger and gas header are probably components from different libraries, but the same medium is being declared to each component. In order to fix this, declare the correct medium according to each components respected libraries and they should work together properly.
- KFung
- 27 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Gas composition wrong?