Jump to content



Featured Articles

Check out the latest featured articles.

File Library

Check out the latest downloads available in the File Library.

New Article

Product Viscosity vs. Shear

Featured File

Vertical Tank Selection

New Blog Entry

Low Flow in Pipes- posted in Ankur's blog

0

Aspen Plus Fortran Statement


5 replies to this topic
Share this topic:
| More

#1 CHEMSTRONG

CHEMSTRONG

    Gold Member

  • Members
  • 348 posts

Posted 18 April 2022 - 10:24 AM

 For ASPEN PLUS V11 Calculator Block, I have used IF logic here
 
: But not able to execute second statement CO1= TEMP1345 here , other statements are getting excused .
 
Real W1TEMP, CO1, TEMP1345, TEMP1222
 
If (W1TEMP.EQ.0 )Then
      
      CO1= TEMP1345
      
      Else 
      
      CO=TEMP1222
      
      End if 
 
 
What is wrong here in this Fortran Statements ?
 
Please advice
 


#2 CHEMSTRONG

CHEMSTRONG

    Gold Member

  • Members
  • 348 posts

Posted 18 April 2022 - 11:39 AM

W1TEMP,CO1, TEMP1345, TEMP1222 are basically process Variables in a process model in ASPEN PLUS V11. CO1 is export variables and others are import variables types in Calc Block in ASPEN PLUS V11. 

 

I am not able to get why assignment operator is not working in first statement which is CO1= TEMP1345



#3 PingPong

PingPong

    Gold Member

  • Members
  • 1,446 posts

Posted 19 April 2022 - 07:58 AM

You seem to be using variable names CO as well as CO1

 

Is one of them a typo?

 



#4 CHEMSTRONG

CHEMSTRONG

    Gold Member

  • Members
  • 348 posts

Posted 19 April 2022 - 10:48 AM

no typo in this...



#5 PingPong

PingPong

    Gold Member

  • Members
  • 1,446 posts

Posted 19 April 2022 - 03:20 PM

If not a typo, should the variable CO then not have been included in the REAL statement?



#6 CHEMSTRONG

CHEMSTRONG

    Gold Member

  • Members
  • 348 posts

Posted 19 April 2022 - 08:07 PM

Ok will check this for sure




Similar Topics