Opened 7 years ago
Closed 7 years ago
#4441 closed defect (fixed)
Incorrect calculation of stream variables
Reported by: | Owned by: | Vitalij Ruge | |
---|---|---|---|
Priority: | high | Milestone: | 1.13.0 |
Component: | Backend | Version: | v1.11.0 |
Keywords: | stream variable, incorrect calculation | Cc: |
Description
The discrepancy in calculation will occur if a node connects more than two components and one component’s mass flow rate is explicitly set to zero. In case of three components with one component’s mass flow rate set to zero, the incorrectly calculated stream variable amounts to exactly 50 % of its proper value. If this component, the mass flow rate of which is set to zero, is removed, the stream variable will be calculated correctly.
The ZIP archive contains two packages: “StreamSolarSystem2” and “TILMedia”. The latter is included to provide necessary thermophysical property data. The “StreamSolarSystem2” package contains two system models: Running “System1” will deliver the incorrect result for the stream variable “pump.portA.hOut”. In “System1_withoutSensor” the component, the mass flow rate of which has been set to zero is removed, and, thus, the correct value for “pump.portA.hOut” will be calculated.
Other tools detect if a model sets the mass flow rate explicitly to zero, and treat them as if they were not existing. The inStream() value in the other connected models only refer to each other, not to the model with m_flow = 0. The treatment and behaviour of two connected models is exactly the same, as of three connected models with one having m_flow set to zero.
Attachments (1)
Change History (6)
by , 7 years ago
Attachment: | Incorrect calculation of stream variables.zip added |
---|
comment:1 by , 7 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 7 years ago
Milestone: | Future → 1.13.0 |
---|
comment:5 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Example