CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Error using FORTRAN Routine

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 24, 2017, 13:13
Default Error using FORTRAN Routine
  #1
New Member
 
Patrick
Join Date: Jan 2017
Posts: 10
Rep Power: 9
b4kerman is on a distinguished road
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...
Attached Images
File Type: png cfx_error.png (75.7 KB, 14 views)
b4kerman is offline   Reply With Quote

Old   May 24, 2017, 18:54
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,852
Rep Power: 33
Opaque will become famous soon enough
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,
Opaque is offline   Reply With Quote

Old   May 24, 2017, 19:03
Default
  #3
New Member
 
Patrick
Join Date: Jan 2017
Posts: 10
Rep Power: 9
b4kerman is on a distinguished road
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?
b4kerman is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 12:09.