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

Divergence when use UDRGM in Fluent.

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 24, 2022, 23:34
Default Divergence when use UDRGM in Fluent.
  #1
New Member
 
Join Date: Aug 2022
Posts: 9
Rep Power: 4
zeoffle is on a distinguished road
Hello.

I'm going to use the properties calculated through the User Defined Real Gas Model (UDRGM) in Fluent.

I made the UDRGM by referring to the examples presented in the Fluent manual.

Compile proceeded without any problems. However, when use it to perform calculations, the following message appears and interrupts:

'Divergence detected in AMG solver : temperature'
'Divergence detected in AMG solver : pressure coupled'

In some solution to this problem, it said this may be caused by an inappropriate mesh.
However, the example UDRGM in the Fluent manual is calculated with the same mesh, it proceeded without interruption.
Also, someone said that the boundary condition can also be affected, but it was also calculated without interruption by using the example UDRGM with the same boundary condition.
Besides this, I checked if there was a problem writing the code, and there was nothing wrong with the code I wrote.

So, if anyone has done Fluent's calculations using UDRGM, can you tell me how to solve these problems or some tips related UDRGM?

Additionally, in the Fluent manual, it said the complexity of UDRGM can also affect, is this related to the number of variables used by UDRGM?

Thank you.
zeoffle is offline   Reply With Quote

Old   August 26, 2022, 03:37
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
beliving that you've checked mesh and boundary conditions, we may assume, that problem is in UDRGM model
as UDRGM is complicated
it's hard to find the exact reson, which lead to divergence
so I recommned you to simplify equation inside the model as much as possible (you may use just constant values in the beggining)
once you confirm, that simplified model works -> move on and add equatios, so you may find the exact reason of divergence
zeoffle likes this.
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   August 26, 2022, 04:11
Default
  #3
New Member
 
Join Date: Aug 2022
Posts: 9
Rep Power: 4
zeoffle is on a distinguished road
Hi

Firstly, thank you for reply to my question.

And I also agree that complexity of UDRGM is one of the reasons of divergence.

After reading your advice, I re-checked my UDRGM code.
It is quite complicated then example in Fluent manual. Especially, it has so many variables and equations.

So, I will try your method to simplify the equation and code.

Thank you.
zeoffle is offline   Reply With Quote

Old   September 1, 2022, 04:14
Default UDRGM in liquid phase.
  #4
New Member
 
Join Date: Aug 2022
Posts: 9
Rep Power: 4
zeoffle is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
beliving that you've checked mesh and boundary conditions, we may assume, that problem is in UDRGM model
as UDRGM is complicated
it's hard to find the exact reson, which lead to divergence
so I recommned you to simplify equation inside the model as much as possible (you may use just constant values in the beggining)
once you confirm, that simplified model works -> move on and add equatios, so you may find the exact reason of divergence

Hi

After reading your advice, I modified some equations simpler than I was first made.

And It works! There are no divergence! I'm really appreciating to you and your advice.

But there are another issue about properties' phase.

Calculating vapor phase properties using UDRGM are good. But I think that it doesn't calculate liquid phase properties.

So, I used some solutions in Fluent manual to solve this issue.

First, I changed the Boolean variable from 'vapor_phase' to 'Liquid_phase'. But it didn't work and results are diverged.

I also set phase in the text-interface command, that in Fluent manual.

'define/user-defined/real-gas-models/set-state'
'define/boundary-conditions/modify-zones/change-zone-state'

Also, it didn't work and results were diverged.

I re-checked equation and code, but there were no special error.

And I searched about this problem, there were not enough information.

So, If you or someone had experience about this problem and know how to solve this, Can tell some hint or solutions about how to set the UDRGM to calculate liquid phase properties?

Thank you.
zeoffle is offline   Reply With Quote

Reply

Tags
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
Divergence detected in AMG solver. VOF. Mr.Mister Fluent Multiphase 5 November 22, 2024 07:32
Population Balance Modeling (PBM) - Ansys Fluent chittipo FLUENT 164 November 18, 2023 12:54
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 17:08
Fluent running GPGPU throws up divergence error but not in parallel without GPGPU rsdsaurav FLUENT 0 December 16, 2014 03:57
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 10:28


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