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

Divergence in AMG solver after adding in mass source

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   October 25, 2017, 13:55
Default Divergence in AMG solver after adding in mass source
  #1
New Member
 
Join Date: Oct 2017
Posts: 4
Rep Power: 8
say2017 is on a distinguished road
Hello,

I am trying to simulate a heat pipe and have managed to compile the code with no errors. However, as soon I load in one of the source terms, I get an error that says "Divergence detected in AMG solver: x-momentum". I have tried changing the URFs and reducing the time step but I still get this error. I have included the code for the mass source, which is the only source term I am currently loading, below. Any help will be appreciated! Thank you.

DEFINE_SOURCE(mass_source,c,t,dS,i)
{
face_t f;
Thread *tf;
int n;
int nn;
real S = 0;

/* loop over all faces of cell */
c_face_loop(c,t,n){
/* find face and thread */
f = C_FACE(c,t,n);
tf = C_FACE_THREAD(c,t,n);

for(nn=0;nn<N_WICK_VAPOR_INTERFACE; ++nn){
if ((THREAD_ID(tf)==t_wall_wick_id[nn])||(THREAD_ID(tf)==t_wall_vapor_id[nn])){
if (THREAD_ID(tf)==t_wall_wick_id[nn]){
S += F_UDMI(f,tf,MVAR)/C_VOLUME(c,t);
}
else{
S -= F_UDMI(f,tf,MVAR)/C_VOLUME(c,t);
}
}
}
}
return S;
}
say2017 is offline   Reply With Quote

 

Tags
amg divergence


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
Population Balance Modeling (PBM) - Ansys Fluent chittipo FLUENT 164 November 18, 2023 11:54
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 17:34
[Other] How to use finite area method in official OpenFOAM 2.2.0? Detian Liu OpenFOAM Meshing & Mesh Conversion 4 November 3, 2015 03:04
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08


All times are GMT -4. The time now is 04:46.