Fundamental questions on Validation and Calculation methods
Posted: 13 June 2021, 19:44
Greetings.
I am new to CAPE-OPEN development, starting with COBIA, with the aim of developing PMC for my thesis. I use the COBIA class wizard, refer to its documents, while slowly progressing through the CAPE OPEN documentation, especially interfaces needed for my unit operation. I have a basic question about validation and calculation methods in the ICapeUnit Interface:
My understanding is that validation is called at least once before calculation and in scenarios explained in CO_Unit_Operations_v6.25. However, the two methods feel entangled in my head, and I wonder if I am missing something. The mixer example in the class wizard guide performs few checks when validation is called. One check is comparing the material compounds among ports to ensure consistency. It iterates through the ports of the portCollection which is simple and contains only feed and product material streams in this case. However, if I am adding a blank stream in the PME as the product expecting it to be populated by the unit, how are validation and calculation performed?
I am new to CAPE-OPEN development, starting with COBIA, with the aim of developing PMC for my thesis. I use the COBIA class wizard, refer to its documents, while slowly progressing through the CAPE OPEN documentation, especially interfaces needed for my unit operation. I have a basic question about validation and calculation methods in the ICapeUnit Interface:
My understanding is that validation is called at least once before calculation and in scenarios explained in CO_Unit_Operations_v6.25. However, the two methods feel entangled in my head, and I wonder if I am missing something. The mixer example in the class wizard guide performs few checks when validation is called. One check is comparing the material compounds among ports to ensure consistency. It iterates through the ports of the portCollection which is simple and contains only feed and product material streams in this case. However, if I am adding a blank stream in the PME as the product expecting it to be populated by the unit, how are validation and calculation performed?