Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

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.

Edited by: Tomithy - Dec-08-16 13:29:35

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.

There are 0 guests and 0 other users also viewing this topic