|
[Sponsors] |
May 15, 2020, 15:20 |
UDRGM Error
|
#1 |
New Member
seyf
Join Date: May 2020
Posts: 5
Rep Power: 6 |
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. |
|
May 16, 2020, 04:43 |
|
#2 |
New Member
seyf
Join Date: May 2020
Posts: 5
Rep Power: 6 |
SOLVED. The UDRGM provided in the link is outdated, the one in the ANSYS software user's guide is working flawlessly.
|
|
Tags |
ansys, fluent, refrigerant, udf, udrgm |
|
|
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 |