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

UDRGM Error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 15, 2020, 15:20
Exclamation UDRGM Error
  #1
New Member
 
seyf97's Avatar
 
seyf
Join Date: May 2020
Posts: 5
Rep Power: 6
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 : https://www.afs.enea.it/project/nept...ug/node337.htm

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

myGas.c

..\..\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)
BC's:

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, 04:43
Default
  #2
New Member
 
seyf97's Avatar
 
seyf
Join Date: May 2020
Posts: 5
Rep Power: 6
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

Reply

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


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