CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming


Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   May 15, 2020, 14:20
Exclamation UDRGM Error
New Member
seyf97's Avatar
Join Date: May 2020
Posts: 5
Rep Power: 4
seyf97 is on a distinguished road
Hi everyone!

I would like to model a condensing R22 vapor, and initially I started an example by modelling the User Defined Real Gas Model (UDRGM) given in the manual :

I have compiled and built the code, but when I load it, I receive this warning message:


..\..\src\myGas.c(135): warning C4113: 'double (*)(double,double,double *)' differs in parameter lists from 'double (*)(cxboolean,double,double,double *)'

If I ignore the message and Hybrid Initialize, I get a message indicating:

turbulent viscosity limited to viscosity ratio of 1.000000e+05 in 6250 cells

Then, when I run the calculation,

# Divergence detected in AMG for temperature, protective actions enabled!

and the calculation stops.

When I change relaxation, I only achieve 5-10 iterations which diverge dramatically. When I checked the results in Post-Processing, I realized that the pressure values are unrealistic, and std. initialization by default tries to initialize pressure to 2.e-11 Pa

Additional background info:

I run fluent from VS 2019 Command Prompt and then load my .MSH file from dp0/FFF/mech in order to build the UDF properly.
The geometry is a simple 2D rectangle (10mm x 100mm)

Inlet: mass flow (0.001 kg/s)
Outlet: pressure outlet (0 pa gauge)
Temperature is patched to 300K

Any help is appreciated. Thanks.
seyf97 is offline   Reply With Quote

Old   May 16, 2020, 03:43
New Member
seyf97's Avatar
Join Date: May 2020
Posts: 5
Rep Power: 4
seyf97 is on a distinguished road
SOLVED. The UDRGM provided in the link is outdated, the one in the ANSYS software user's guide is working flawlessly.
seyf97 is offline   Reply With Quote


ansys, fluent, refrigerant, udf, udrgm

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 00:21
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51

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