Opened 13 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)

test_PP.mso (831 bytes) - added by Rodolfo Rodrigues 13 years ago.
sample file
pipe.mso (5.3 KB) - added by Rodolfo Rodrigues 13 years ago.
pipe sample runs perfectly

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by Rodolfo Rodrigues

Attachment: test_PP.mso added

sample file

comment:1 in reply to:  description Changed 13 years ago by Rodolfo Rodrigues

Version: 0.9.590.9.56

On the other hand, the sample of a pipe (file 'pipe.mso' below) uses the same resource and it runs perfectly.

Changed 13 years ago by Rodolfo Rodrigues

Attachment: pipe.mso added

pipe sample runs perfectly

comment:2 Changed 13 years ago by Argimiro Resende Secchi

Priority: majorcritical
Version: 0.9.560.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.

Note: See TracTickets for help on using tickets.