Would you please tell me what I can do to solve this warning in aspen program? I want to calculate flow and mass balance for this program.
* WARNING DURING FLOWSHEET ANALYSIS
FORTRAN READ-VAR VOLFLOW IN FORTRAN BLOCK VALKIN2
APPEARS ON THE LEFT-HAND SIDE OF AN ASSIGNMENT STATEMENT.
* WARNING DURING FLOWSHEET ANALYSIS
FORTRAN READ-VAR T IN FORTRAN BLOCK VALKIN1
APPEARS ON THE LEFT-HAND SIDE OF AN ASSIGNMENT STATEMENT.
T is a import variable as this :Block-Var Block=REACTOR1 Variable=TEMP Sentence=PARAM Units=C
VOLFLOW is a import varaible this :Stream-Var Stream=ACIDPROD Substream=MIXED Variable=STDVOL-FLOW Units=cum/day
Fortran Calculation is:
A = 0.00000001
AA1 = ARG + HIS + LYS + TYR + TRY + PHE + CYS + MET + THR + SER
AA2 = LEU + ISO + VAL + GLU + ASP + GLY + ALA + PRO
AA = AA1 + AA2
IF (AA .EQ. 0.0) THEN
AA = AA + A
ENDIF
IF (VOLFLOW.EQ. 0.0) THEN
VOLFLOW = VOLFLOW + A
ENDIF
N = 1.0 / (1.0 + 0.3 / (AA / VOLFLOW))
T = T + 273.15
T0 = 298
Z = 70.0 * EXP(-(-14143.72619 / 8.314) * (1.0 / T - 1.0 / T0))
Thanks for your attention
in addition to @Neo 's feedback, just ensure variables are the correct type - classic fortran I->N are integers the rest are float/double .... , ie 'N = 1.0 / (1.0 + 0.3 / (AA / VOLFLOW))' where N will be an integer result not a float/double - so precision is lost
(duck.ai): Aspen Plus is a software used for process simulation, and it can utilize Fortran for custom kinetic subroutines. To integrate Fortran code with Aspen, you typically need to write the code in Fortran 77 for compatibility, as newer versions may not support Fortran 95 directly. Fortran 77 code does not live in modules and should be written as standalone subroutines.