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

Divergence with source UDF for VOF

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By Sun

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 2, 2014, 23:42
Default Divergence with source UDF for VOF
  #1
New Member
 
Join Date: Sep 2013
Posts: 4
Rep Power: 13
aleni32 is on a distinguished road
Hi everybody
I wrote an UDF for sources (lift, drag, virtual mass forces and K and epsilon) for VOF model two phase(steel and injecting argon). the simulation converged without sources but when the source became activated the simulation diverged suddenly after 1.5 sec with this error:sweeping relaxation factors, divergence in X momentum y momentum, z, k , epsilon- divergence detected in AMG solver: x-momentum', floating point exception .
Global Courant number was stable before divergence.
I did the following procedures:
1- limiting the sources to just above argon inlet and below the free surface
2- changing the URF of sources from 0.1 to 0.05
but still diverging suddenly. I really dont have any idea whether it is a structural error in sources or errors in setting of fluent.
Much appreciated if anybody help me to find the error.
aleni32 is offline   Reply With Quote

Old   September 3, 2014, 02:51
Default
  #2
Sun
Senior Member
 
Sun's Avatar
 
Join Date: Nov 2010
Posts: 103
Rep Power: 16
Sun is on a distinguished road
Since you mentioned that it worked without the source term, something might be wrong with the source term calculation. If you share your UDF with a short description, I'll have a look. The "floating point exception" error usually happens due to a bad math throughout the code such as division by zero or some variables go to infinity and etc.
aleni32 and 6863523 like this.
Sun is offline   Reply With Quote

Old   September 3, 2014, 07:51
Default your email
  #3
New Member
 
Join Date: Sep 2013
Posts: 4
Rep Power: 13
aleni32 is on a distinguished road
Dear SUN
I would be appreciated if you give me your email. I would send my UDF to you.
Thanks in advance
aleni32 is offline   Reply With Quote

Old   September 3, 2014, 11:55
Default
  #4
Sun
Senior Member
 
Sun's Avatar
 
Join Date: Nov 2010
Posts: 103
Rep Power: 16
Sun is on a distinguished road
You can send it via private message.
Sun is offline   Reply With Quote

Old   December 28, 2014, 02:16
Default
  #5
New Member
 
rishitosh's Avatar
 
Rishitosh Ranjan
Join Date: Dec 2012
Location: Trichirapalli, Tamilnadu, India
Posts: 22
Rep Power: 14
rishitosh is on a distinguished road
I m also facing same prlm...

Last edited by rishitosh; December 28, 2014 at 04:18.
rishitosh is offline   Reply With Quote

Reply


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
wmake compiling new solver mksca OpenFOAM Programming & Development 14 June 22, 2018 07:29
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 17:02
[swak4Foam] Swak4FOAM 0.2.3 / OF2.2.x installation error FerdiFuchs OpenFOAM Community Contributions 27 April 16, 2014 16:14
Help for the small implementation in turbulence model shipman OpenFOAM Programming & Development 25 March 19, 2014 11:08
help on UDF mass source shao1 FLUENT 2 July 11, 2002 21:36


All times are GMT -4. The time now is 16:43.