Re: COBIA EnergyPort Class
Posted:
07 August 2021, 13:40
by jasper
If you want to predict the values on the energy stream, it must be an output stream.
Please note that the sign in work should change in that case. A positive sign on work on an inlet energy stream means energy consumed. A positive sign on work on an outlet energy stream means work produced.
Also, the parameter that actually contains work is provided by the stream object connected to the unit operation. So
- change the port to an OUTLET port
- from the object connected to the port, get the "work" parameter
- set its value
- do the same for the temperature limits, in case of a thermal energy stream
In CAPE-OPEN v1.1, the port object merely exposes a parameter specification. As in CAPE-OPEN 1.2 the parameter specification no longer exists, the port itself exposes a parameter, but the only aspects used of this parameter is the meta information (name, description, unit of measure ...)
Re: COBIA EnergyPort Class
Posted:
09 August 2021, 08:28
by ahmedsabriz
Thank you once again for the clarification. The energy stream now exposes all the parameters just as it does with the built-in heater (at least it appears so). I can now comfortably move on to practise with more complicated units.