|
[Sponsors] |
May 24, 2017, 13:13 |
Error using FORTRAN Routine
|
#1 |
New Member
Patrick
Join Date: Jan 2017
Posts: 10
Rep Power: 9 |
Hello,
I am trying to implement a modification of the Finnie Erosion Rate as Fortran User Routine. So as a first step I want to use the unchanged pt_erosion.F code (available as example), which in theory should give the same results as selecting the Finnie model in the CFX GUI. That works perfectly for the Ansys CFX Valve Tutorial. However, it doesn't work for my case (multistage compressor). It works exactly for one stage/blade. Using the user defined erosion (code still unchanged) on other domains leads to the attached error. I don't know what the problem could be. According to the documentation pt_erosion.F does exactly the same as the Finnie model. The Finnie model works on all domains, the Fortran routine fails... Any ideas? It is driving me nuts... |
|
May 24, 2017, 18:54 |
|
#2 |
Senior Member
Join Date: Jun 2009
Posts: 1,852
Rep Power: 33 |
The compiler has detected that a variable or array contains data that has not been initialized.
For example, you are supposed to fill an array in such routine, and you forgot to define all the values the software is trying to read from that array. Hope it helps, |
|
May 24, 2017, 19:03 |
|
#3 |
New Member
Patrick
Join Date: Jan 2017
Posts: 10
Rep Power: 9 |
I don't understand why though. The code of the routine is written by ansys itself and all input parameters are set in CFX. Also it works for certain cases, but fails in other cases with the same setup.
The missing variable is not even part of the user routine and the mentioned fortran file in the console is not available as source code, so I don't know what it is supposed to do. Is there any way to debug this? Any other hints or ideas? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to compile a user fortran routine in linux | xyq916 | CFX | 1 | May 3, 2016 06:17 |
user routine, user funcion, or fortran compile effect on the memroy? | princeps11 | CFX | 1 | May 13, 2009 18:37 |
user subroutine error | CFDUSER | CFX | 2 | December 9, 2006 06:31 |
user defined function | cfduser | CFX | 0 | April 29, 2006 10:58 |
FORTRAN Routine - variable passing | Malcolm | CFX | 1 | August 11, 2005 18:51 |