Opened 14 years ago
Last modified 13 years ago
#134 new defect
Error to use a vector of PP external routines
Reported by: | Rodolfo Rodrigues | Owned by: | Rafael de Pelegrini Soares |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | EMSO | Version: | 0.9.59 |
Keywords: | Cc: |
Description
I would like to calculate a specific physical property (enthalpy) in a range of temperature. For this, I used a loop structure to attribute the calculated values.
for i in [1:N+1] h(i) = PP.VapourEnthalpy(T(i),P,x); end
See all sample in the file attached below.
The model is consistent (12 variables, 7 equations, and 5 specifications) but EMSO returns that error message to each position:
error in external routine 'VapourEnthalpy' input argument 1 expects for length 1
Attachments (2)
Change History (4)
Changed 14 years ago by
Attachment: | test_PP.mso added |
---|
comment:1 Changed 14 years ago by
Version: | 0.9.59 → 0.9.56 |
---|
On the other hand, the sample of a pipe (file 'pipe.mso' below) uses the same resource and it runs perfectly.
comment:2 Changed 13 years ago by
Priority: | major → critical |
---|---|
Version: | 0.9.56 → 0.9.59 |
This problem happens only if the property calculation is carried out in the FlowSheet? level. When it is done inside a model works fine.
sample file