CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDRGM problem with implementation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 15, 2019, 10:18
Default UDRGM problem with implementation
  #1
New Member
 
Natalia
Join Date: May 2019
Posts: 2
Rep Power: 0
natalia_ is on a distinguished road
Hello everyone,

currently, I'm struggling with user defined real gas model of an ideal gas. When I compile the template code (ideal gas) I receive warnings:



When I turn on the real-gas and start the calculation a have nan values of residuals. I don't really have a clue, what is the reason for this error. I'm using a template code provided by Fluent in the user's guide for Fluent v.193 (https://ansyshelp.ansys.com/account/...gas_udrgm.html). So I assume that there is no problem with the structure of the code, but with the compilation or Fluent interpretation.



Does anyone know what might be a problem?

If anybody could help, that would be much appreciated!
natalia_ is offline   Reply With Quote

Old   May 15, 2019, 22:35
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Was your code successfully compiled?

best regards
AlexanderZ is offline   Reply With Quote

Old   May 15, 2020, 15:25
Default
  #3
New Member
 
seyf97's Avatar
 
seyf
Join Date: May 2020
Posts: 5
Rep Power: 5
seyf97 is on a distinguished road
Hi, I have the same problem. I found out that this is caused because the given code in the user's guide is for an older version of Fluent, but I couldn't find any recent version of the code.
seyf97 is offline   Reply With Quote

Old   May 15, 2020, 16:50
Default Udrgm
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
Yes, this is because the arguments for the functions and the functions themselves have changed over last few versions. So, you need to ensure correct arguments. There is an old UDRGM code given in examples. It has been there for last decade or so but has not been updated. If you are using that code, then update the arguments to the functions. The code will work, except that the arguments need to be properly given.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   May 15, 2020, 17:02
Default
  #5
New Member
 
seyf97's Avatar
 
seyf
Join Date: May 2020
Posts: 5
Rep Power: 5
seyf97 is on a distinguished road
Thank you so much for your swift reply. I have solved the problem by using the example code given in the program's user guide.
seyf97 is offline   Reply With Quote

Reply

Tags
nan residuals, udf compilation, udrgm


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
Convergence Problem in Multiphase problem (three phases) m.uzair FLUENT 0 August 2, 2018 08:23
Advection dominated problem SUPG implementation Shakil Masum Main CFD Forum 0 March 8, 2018 06:06
Large problem partitioner tzy CFX 3 February 7, 2018 17:11
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13


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