Opened 6 years ago
Last modified 6 years ago
#5331 new defect
illogical "incompatible components" error in library model replica
Reported by: | NRELintern | Owned by: | somebody |
---|---|---|---|
Priority: | high | Milestone: | Future |
Component: | Frontend | Version: | |
Keywords: | Cc: |
Description
I am trying to model and replicate the "Open Brayton Power Cycle" from the OpenModelica Library and have come across an error message that makes little sense. The error message is the result of incompatibility between sourceMassflow.mo and CombustionChamber.mo, all taken from the modelica library and connected in the same fashion as the library Brayton example has been done.
This error has occurred after completely replicating the "Brayton Power Cycle - Open" from the modelica library.
This is the error I am receiving. This message almost proves that the two components are compatible with one another however I cannot figure out the reason why they are "not working" together.
Code:// [11] 14:18:40 Translation Error [BraytonCycle_First: 49:3-50:84]: Incompatible components in connect statement: connect(sourceMassFlow1.flange, combustionChamber1.inf) - sourceMassFlow1.flange has components {C_outflow, Xi_outflow, h_outflow, m_flow, p} - combustionChamber1.inf has components {C_outflow, Xi_outflow, h_outflow, m_flow, p}
I copied all of the library's component parameters into my model and expected this to solve the issue. Nothing I have done fixes this issue, where it seems that these models would be compatible due to the error message above.
Any help or advice would be greatly appreciated.
Attachments (2)
Change History (6)
by , 6 years ago
Attachment: | BraytonCycleLibraryReplica.mo added |
---|
comment:2 by , 6 years ago
Component: | *unknown* → Frontend |
---|
by , 6 years ago
Attachment: | BraytonCycleLibraryReplica_fixed_redeclares.mo added |
---|
The error message is actually correct, but very bad, it should include the types of the components. The problem is that in the connectors there is a replaceable medium package and the types from this medium are used:
This means that the medium in both right hand side and left hand side connectors in the connect equations needs to be redeclared to be the same.
I will try to adapt the model to do that.