|
[Sponsors] |
Divergence in AMG solver after adding in mass source |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Join Date: Oct 2017
Posts: 4
Rep Power: 8 ![]() |
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; } |
|
![]() |
![]() |
Tags |
amg divergence |
|
|
![]() |
||||
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 |