±±¾©Ê¯ÓÍ»¯¹¤Ñ§Ôº2026ÄêÑо¿ÉúÕÐÉú½ÓÊÕµ÷¼Á¹«¸æ
²é¿´: 2253  |  »Ø¸´: 0

ÈÕÔÂÐÇ¿Õ

Ìú³æ (³õÈëÎÄ̳)

[ÇóÖú] fluentÔËÐйý³ÌÖгöÏÖ´íÎó£ºDivergence detected in AMG solver

ÎÒ×öµÄÊÇÃÜÏàÊäÔË´²ÌáÉý¹ÜÄÚÃºÆø»¯µÄÊýֵģÄâ¡£·¢ÉúµÄ¶à¸ö»¯Ñ§·´Ó¦ÐèҪдUDF¼ÓÈë½øÈ¥£¬Ã»µ¼ÈëUDF֮ǰ·´Ó¦»¹ÄܽøÐУ¬¿ÉÊÇÒ»µ¼ÈëUDF¾Í²»ÐÐÁË¡£
ËùÒÔÎÒÅжÏÓ¦¸ÃÊÇUDFдµÄÓÐÎÊÌ⣬¿Éµ¼ÈëµÄʱºòÏÔʾÓ﷨ʲôµÄû´íÎ󣬾ßÌåÄÄÀï²»ºÏÀí£¬ÎÒ̽¾¿Á˺ܾÃҲûÕÒ³ö벡¡£»¹Ï£Íû´óÉñÃÇÄܹ»¸øÓèÖ¸µ¼¡£
fluentÌáʾµÄ´íÎóÈçÏ£º
# Divergence detected in AMG solver: mp-x-momentum -> Decreasing coarsening group size!
# Divergence detected in AMG solver: mp-x-momentum -> Increasing relaxation sweeps!
# Divergence detected in AMG solver: pressure correction -> Turning off correction scaling!
# Divergence detected in AMG solver: pressure correction -> Increasing relaxation sweeps!
Errorivergence detected in AMG solver:pressure correction

Errorivergence detected in AMG solver:pressure correction.
ÆäÖÐÒ»¸öUDFÈçÏ£º

#include "udf.h"
#include "stdio.h"
#include "time.h"
DEFINE_HET_RXN_RATE(c_arr,c,t,hr,mw,yi,rr,rr_t)
{
Domain **domain_reactant = hr->domain_reactant;
real *stoich_reactant = hr->stoich_reactant;
int *reactant = hr->reactant;
int i;
int sp_id;
int dindex;
Thread *t_reactant;
real pp;
real T,C;
real p1,p3,p4,p5,mi,msum,m0,m1,m2,m3,m4,m5,m6,m7,m8,m9,ci;
/* instead of compute rr directly, compute log(rr) and then take exp */
*rr = 0;


i=0;
sp_id = reactant; /* species ID to access mw and yi */
if (sp_id == -1) sp_id = 0; /* if phase does not have species,
mw, etc. will be stored at index 0 */
dindex = DOMAIN_INDEX(domain_reactant);
/* domain index to access mw & yi */
t_reactant = THREAD_SUB_THREAD(t,dindex);
/* get conc. */
pp = 6*C_P(c,t_reactant)/101325;
m0 = yi[dindex][0]/mw[dindex][0];
m1 = yi[dindex][1]/mw[dindex][1];
m2 = yi[dindex][2]/mw[dindex][2];
m3 = yi[dindex][3]/mw[dindex][3];
m4 = yi[dindex][4]/mw[dindex][4];
m5 = yi[dindex][5]/mw[dindex][5];
m6 = yi[dindex][6]/mw[dindex][6];
m7 = yi[dindex][7]/mw[dindex][7];
m8 = yi[dindex][8]/mw[dindex][8];
m9 = yi[dindex][9]/mw[dindex][9];
msum=m0+m1+m2+m3+m4+m5+m6+m7+m8+m9;
p3=pp*yi[0][3]/mw[0][3]/msum;
p4=pp*yi[0][4]/mw[0][4]/msum;
p5=pp*yi[0][5]/mw[0][5]/msum;
ci = MAX(p3,0);
*rr+= log(ci);
ci = MAX(p4,0);
*rr+= log(ci);
ci = MAX(p5,0);
*rr+= log(ci);


i=1;
sp_id = reactant; /* species ID to access mw and yi */
if (sp_id == -1) sp_id = 0; /* if phase does not have species,
mw, etc. will be stored at index 0 */
dindex = DOMAIN_INDEX(domain_reactant);
/* domain index to access mw & yi */
t_reactant = THREAD_SUB_THREAD(t,dindex);
/* get conc. */
ci = yi[1][5]*C_R(c,t_reactant)/mw[1][5];/*»ñµÃµÚ¶þÏàÖз´Ó¦Îï̼µÄÖÊÁ¿·ÖÊý*/
ci = MAX(ci,0);
*rr+= log(ci);
T =C_T(c,t_reactant);
if (T>1117) T=1117;
*rr+= log(2250)-42000/(8.314*T)-(17.29-16326/T);
/* 1.e-40 < rr < 1.e40 */
*rr = MAX(*rr,-40);
*rr = MIN(*rr,40);
*rr = exp(*rr);

}

Ï£Íû´óÉñ¿´µ½ºóÄܹ»¸øÓèÖ¸µ¼£¬¶àлÁË¡£
»Ø¸´´ËÂ¥
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ ÈÕÔÂÐÇ¿Õ µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] 385·Ö ÉúÎïѧ£¨071000£©Çóµ÷¼Á +7 qf626 2026-04-01 7/350 2026-04-04 12:47 by kk112233
[¿¼ÑÐ] Ò»Ö¾Ô¸085404£¬×Ü·Ö291£¬Ëļ¶Òѹý£¬Çóµ÷¼Á +5 °¢¿¡°¢¿¡°¢¿¡ 2026-04-04 6/300 2026-04-04 10:08 by Ò»ÇÐOK
[¿¼ÑÐ] Çóµ÷¼Á£¬Ò»Ö¾Ô¸ÄϾ©º½¿Õº½Ìì´óѧ £¬080500²ÄÁÏ¿ÆÑ§Ó빤³Ìѧ˶ +10 @taotao 2026-04-03 10/500 2026-04-04 09:01 by T¿É¿ÉÎ÷ÀïT
[¿¼ÑÐ] 320·ÖÈ˹¤ÖÇÄܵ÷¼Á +6 Õñ¡ªTZ 2026-04-03 6/300 2026-04-04 01:05 by Dream007008
[¿¼ÑÐ] ÊÞÒ½µ÷¼Á +3 wh119216 2026-04-02 3/150 2026-04-03 19:34 by zrongyan
[¿¼ÑÐ] Ó¢Ò»ÊýÒ»408£¬×Ü·Ö284£¬¶þÕ½Õæ³ÏÇóµ÷¼Á +13 12.27 2026-03-30 15/750 2026-04-03 14:41 by µªÆøÆøÆø
[¿¼ÑÐ] µ÷¼ÁÇóÖú +8 Ïë»»ÊÖ»ú²»Ïë½âÊ 2026-04-02 11/550 2026-04-03 14:16 by ÐÇ¿ÕÐÇÔÂ
[¿¼ÑÐ] ²ÄÁÏÓ뻯¹¤306·ÖÕÒµ÷¼Á +10 ²×º£ÇáÖÛe 2026-04-03 11/550 2026-04-03 11:07 by à£à£à£0119
[¿¼ÑÐ] 298·Ö 070300Çóµ÷¼Á +11 zwen03 2026-04-02 11/550 2026-04-03 10:19 by macy2011
[¿¼ÑÐ] ¸´ÊÔµ÷¼Á +3 bvzz 2026-04-01 3/150 2026-04-03 09:47 by À¶ÔÆË¼Óê
[¿¼ÑÐ] Çóµ÷¼Á +5 Ë·Ë·»° 2026-04-02 6/300 2026-04-02 22:02 by barlinike
[ÂÛÎÄͶ¸å] chinese chemical lettersÓ¢ÎİæÍ¶¸åÇóÖú 120+4 Yishengeryi 2026-03-30 6/300 2026-04-02 17:19 by Yishengeryi
[¿¼ÑÐ] ²ÄÁϵ÷¼Á +11 Ò»ÑùYWY 2026-03-31 11/550 2026-04-01 22:25 by zhouyuwinner
[¿¼ÑÐ] ½­ËտƼ¼´óѧÕвÄÁÏÑо¿Éú +4 Su032713. 2026-04-01 5/250 2026-04-01 22:03 by cccchenso
[¿¼ÑÐ] 353Çóµ÷¼Á +4 À­¹³²»Ðí±ä 2026-04-01 4/200 2026-04-01 18:10 by ¼Çʱ¾2026
[¿¼ÑÐ] 291Çóµ÷¼Á +3 ÃÔÃÉľľ 2026-04-01 4/200 2026-04-01 11:07 by ÄæË®³Ë·ç
[¿¼ÑÐ] ¡¾µ÷¼Á¡¿Ò»Ö¾Ô¸ÏôóÉúÎïÓëÒ½Ò©µ÷¼Á +3 EchoϺÃ× 2026-03-31 3/150 2026-04-01 08:40 by JourneyLucky
[¿¼ÑÐ] 070300»¯Ñ§×¨Òµ279µ÷¼Á +10 ¹þ¹þ¹þ^_^ 2026-03-31 10/500 2026-03-31 23:13 by liu823948201
[¿¼ÑÐ] ¹þ¶û±õ¹¤Òµ´óѧ²ÄÁÏÓ뻯¹¤×¨Ë¶378Çóµ÷¼Á +3 Ëþ±ÈÎÚ˹ 2026-03-30 3/150 2026-03-30 22:55 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] 293Çóµ÷¼Á +3 ĩδmm 2026-03-30 5/250 2026-03-30 17:23 by Íõ±£½Ü33
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û