CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDRGM problem with implementation (https://www.cfd-online.com/Forums/fluent-udf/217526-udrgm-problem-implementation.html)

natalia_ May 15, 2019 10:18

UDRGM problem with implementation
 
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:

https://lh3.googleusercontent.com/-n...2019-05-09.png

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.

https://lh3.googleusercontent.com/-8...2019-05-15.png

Does anyone know what might be a problem?

If anybody could help, that would be much appreciated!

AlexanderZ May 15, 2019 22:35

Was your code successfully compiled?

best regards

seyf97 May 15, 2020 15:25

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.

vinerm May 15, 2020 16:50

Udrgm
 
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.

seyf97 May 15, 2020 17:02

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.


All times are GMT -4. The time now is 23:40.