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

aiweimo

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

[ÇóÖú] VS2010»·¾³Ï£¬Í¬Ò»udfÎļþÔÚFluent16.0ÖбàÒëͨ¹ý£¬¶øÔÚ Fluent6.3 ÖбàÒëʧ°Ü£¿ ÒÑÓÐ1È˲ÎÓë

ÕâÊÇÒ»¸ö¶¨ÒåËÙ¶ÈÈë¿Ú´¦k¸úw·Ö²¼µÄudfÎļþ¡£Ö®Ç°ÔÚ×Ô¼º¹¤×÷Õ¾ÉÏÊÔ¹ý£¬¹¤×÷Õ¾ÓõıàÒë»·¾³ÊÇVS2010£¬µ±²ÉÓÃANSYS Fluent 16.0±àÒëʱ£¬Õâ¸öudfÎļþûÓÐÈκÎÎÊÌ⣬²¢ÇÒ¼ÆËãÁËÒ»¸ö¿ÎÌâ¡£ºóÀ´ÒòΪijЩԭÒò£¬±ØÐëʹÓà Fluent 6.3 ¼ÆË㣬·¢ÏÖÔÚ Fluent 6.3 ÉϱàÒëʧ°Ü¡£ÓÚÊDzâÊÔÁËÁíÍâÒ»¸ö³£¼ûµÄudf£¬¾ÍÊǶ¨ÒåÈë¿ÚËÙ¶ÈÇбä·Ö²¼µÄudf£¬Fluent6.3 ¿ÉÒÔ±àÒë²¢¼ÆË㣬Õâô˵±àÒë»·¾³Ó¦¸ÃûÓÐÎÊÌâ¡£
k¸úw·Ö²¼µÄudfµÄ²¿·ÖÌáʾ´íÎóÈçÏ£º
"¡­¡­
In file included from /public/home/zhengzhi/Fluent/Fluent.Inc/fluent6.3.26/src/udf.h:36,
                 from udf_kw.c:32:
/public/home/zhengzhi/Fluent/Fluent.Inc/fluent6.3.26/src/real_gas.h:18: error: redefinition of ¡®struct RGAS_Function_struct¡¯
/public/home/zhengzhi/Fluent/Fluent.Inc/fluent6.3.26/src/real_gas.h:35: error: conflicting types for ¡®RGAS_Functions¡¯
/public/home/zhengzhi/Fluent/Fluent.Inc/fluent6.3.26/src/real_gas.h:35: note: previous declaration of ¡®RGAS_Functions¡¯ was here
/public/home/zhengzhi/Fluent/Fluent.Inc/fluent6.3.26/src/real_gas.h:40: error: conflicting types for ¡®real_gas_fcns¡¯
/public/home/zhengzhi/Fluent/Fluent.Inc/fluent6.3.26/src/real_gas.h:40: note: previous declaration of ¡®real_gas_fcns¡¯ was here
In file included from udf_kw.c:32:
/public/home/zhengzhi/Fluent/Fluent.Inc/fluent6.3.26/src/udf.h:68: error: redefinition of ¡®struct UDF_Data¡¯
/public/home/zhengzhi/Fluent/Fluent.Inc/fluent6.3.26/src/udf.h:73: error: conflicting types for ¡®UDF_Data¡¯
/public/home/zhengzhi/Fluent/Fluent.Inc/fluent6.3.26/src/udf.h:73: note: previous declaration of ¡®UDF_Data¡¯ was here
¡­¡­"
×îºóÏÔʾ´íÎ󳬹ýÁË100¸ö¡£
ÏëÎÊÏ´ó¼ÒÊDz»ÊÇ Fluent 6.3 ijЩºêûÓлòÕßÔÚºóÀ´°æ±¾ÖиıäÁË£¿
ÎÒÖ÷ÒªÊÇÏëÔÚ¼¯ÈºÖмÆË㣬µ«¼¯ÈºÖ»ÓÐFluent6.3£¬Ã»ÓÐANSYS FLuent 16.0¡£»òÕß´ó¼ÒÖªµÀÈçºÎÒÔ·ÇGUI·½Ê½°²×° ANSYS Fluent 16.0¸æËßÎÒÒ²ºÃ£¬¶àл´ó¼ÒÁË¡£¡£
»Ø¸´´ËÂ¥

» ²ÂÄãϲ»¶

» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:

Îð½¾¶ø²»Ç°£¬Îð±°¶ø×ÔÄÙ
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

aiweimo

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

#include "udf.h"
#include "math.h"
DEFINE_PROFILE(k_inlet,t,i)
{
        real x[ND_ND];
                face_t f;
                               
        real z0=0.03;
                real omega=7.272E-05;
                real lam=0.6472;
        real U=11;
               
                real z,f0,u_xing,yita,p,sigma_u,I;
                        
                begin_f_loop(f,t)
        {
                F_CENTROID(x,f,t);
                z=x[1]+15.4;
                               
                                f0=2*omega*sin(abs(lam));
                                u_xing=(0.4*U-34.5*f0*z)/(log(z/z0));
                                yita=1-6*f0*z/u_xing;
                                p=pow(yita,16);
                                sigma_u=7.5*yita*pow((0.538+0.09*log(z/z0)),p)*u_xing/(1+0.156*log(u_xing/(f0*z0)));
                                I=sigma_u/U;                               
                                                
                F_PROFILE(f,t,i)=3/2*pow((sigma_u),2);
        }
        end_f_loop(f,t)
}

#include "udf.h"
#include "math.h"
DEFINE_PROFILE(w_inlet,t,i)
{
        real x[ND_ND];
                face_t f;
                               
        real z0=0.03;
                real omeg=7.272E-05;
                real lam=0.6472;
        real U=11;
                real C_mu=0.09;
               
                real z,f0,u_xing,yita,p,sigma_u,I,eplison,k,l;
               
                begin_f_loop(f,t)
        {
                F_CENTROID(x,f,t);
                z=x[1]+15.4;
                               
                                f0=2*omeg*sin(fabs(lam));
                                u_xing=(0.4*U-34.5*f0*z)/(log(z/z0));
                                yita=1-6*f0*z/u_xing;
                                p=pow(yita,16);
                                sigma_u=7.5*yita*pow((0.538+0.09*log(z/z0)),p)*u_xing/(1+0.156*log(u_xing/(f0*z0)));
                                I=sigma_u/U;                               
                                k=3/2*pow((sigma_u),2);
                               
                                l=87.318;
                               
                                eplison=((pow(C_mu,(0.75)))*(pow(k,(1.5))))/l;
                                F_PROFILE(f,t,i)=eplison/k;
                               
        }
        end_f_loop(f,t)
}

µÚÒ»´ÎÓÃСľ³æÎÊÎÊÌ⣬ÎҼǵÃÎÒÉÏ´«ÁËudfÎļþ£¬µ«ÎÒ×Ô¼ºÕÒ²»µ½¡£ÅÂû´«ºÃ£¬¾Í°Ñµ±Ê±ÉÏ´«µÄudfÎļþÀïÃæµÄÄÚÈÝÒ²¸´ÖƵ½ÕâÀïÁË¡£Õâ¸öudfÎļþ¾ÍÊÇÄǸö¶¨Òåk¸úwÔÚÈë¿Ú´¦·Ö²¼µÄÎļþ£¬ÔÚFluent 16.0 ÉϱàÒëͨ¹ý£¬ÔÚFluent 6.3ÉϱàÒëʧ°Ü
Îð½¾¶ø²»Ç°£¬Îð±°¶ø×ÔÄÙ
2Â¥2015-12-17 11:36:36
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

dayangshi2b

ľ³æ (ÖøÃûдÊÖ)

¡¾´ð°¸¡¿Ó¦Öú»ØÌû

¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
fluent6.3ÒªÓÃvc6.0±àÒë»·¾³£¬2010Ã²ËÆ²»ÐÐ
ÉÆÓÚ°ïÖú±ðÈË£¬±ðÈ˲ÅÄܰïÖú×Ô¼º£¡
3Â¥2015-12-17 13:02:23
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

aiweimo

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

ÒýÓûØÌû:
3Â¥: Originally posted by dayangshi2b at 2015-12-17 13:02:23
fluent6.3ÒªÓÃvc6.0±àÒë»·¾³£¬2010Ã²ËÆ²»ÐÐ


¿ÉÊÇÁíÒ»¸öudfÔÚFluent6.3ÉÏÒѾ­µ÷ͨÁ˰¡
Îð½¾¶ø²»Ç°£¬Îð±°¶ø×ÔÄÙ
4Â¥2015-12-19 10:04:34
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ aiweimo µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼²©] ²©Ê¿ÉêÇë +3 IQwQl 2026-04-05 3/150 2026-04-07 20:31 by greychen00
[¿¼ÑÐ] Ò»Ö¾Ô¸Î÷µç085401Çóµ÷¼Á +4 sunw1306 2026-04-07 4/200 2026-04-07 16:40 by à£à£à£0119
[¿¼ÑÐ] 372·Ö²ÄÁÏÓ뻯¹¤£¨085600£©Ó¢¶þÊý¶þÇóµ÷¼Á +4 À¶¼ãƬ 2026-04-06 4/200 2026-04-07 12:30 by dongzh2009
[˶²©¼ÒÔ°] 0856²ÄÁÏ»¯¹¤Çóµ÷¼Á£¬Ò»Ö¾Ô¸211£¬³õÊԳɼ¨349 +4 ½­»´±±Ô 2026-04-05 4/200 2026-04-06 22:44 by chenzhimin
[¿¼ÑÐ] 26×ÔÈ»µØÀíѧ303·ÖÇóµ÷¼Á +4 Ò»Õ½³É˶°¡°¡°¡° 2026-04-06 9/450 2026-04-06 20:35 by lin-da
[¿¼ÑÐ] ²ÄÁÏÓ뻯¹¤363ÇóÍÆ¼ö +11 zh096 2026-04-04 11/550 2026-04-06 19:14 by guanxin1001
[¿¼ÑÐ] Çóµ÷¼Á +10 chenxrlkx 2026-04-05 10/500 2026-04-06 11:31 by Öí»á·É
[¿¼ÑÐ] 327Çóµ÷¼Á +4 ʰ¹âÈÎȾ 2026-04-05 4/200 2026-04-05 20:16 by ÄϺ½~ÍòÀÏʦ
[¿¼ÑÐ] 0854Çóµ÷¼Á +4 assdll 2026-04-03 4/200 2026-04-04 22:17 by hemengdong
[¿¼ÑÐ] 333Çóµ÷¼Á +12 wfh030413@ 2026-04-03 13/650 2026-04-04 21:02 by jj987
[¿¼ÑÐ] 348·Ö»·¾³¹¤³Ì¡¤µ÷¼Á +10 ÎâÑå׿24k 2026-04-03 11/550 2026-04-04 14:19 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] 265Çóµ÷¼Á +17 ÁÖÉîÎÂÀ½ 2026-04-01 20/1000 2026-04-04 01:09 by userper
[¿¼ÑÐ] ×Ü·Ö328ÉúÎïÓëÒ½Ò©¿¼ÊýѧÇóµ÷¼Á +7 aaadim 2026-04-02 9/450 2026-04-03 22:53 by syh9288
[¿¼ÑÐ] 320µ÷¼Á +4 ũҵ¹¤³ÌÓëÐÅÏ¢¼ 2026-04-03 4/200 2026-04-03 21:40 by lbsjt
[¿¼ÑÐ] ¹¤¿Æ341·Öµ÷¼Á +3 Âå¶àÂÞ 2026-04-03 3/150 2026-04-03 14:20 by 1753564080
[˶²©¼ÒÔ°] ÇóÀÏʦÊÕÁô +9 lllq123 2026-04-03 9/450 2026-04-03 13:48 by ºôÎü¶¼ÊǼõ·Ê
[¿¼ÑÐ] 285Çóµ÷¼Á +7 AZMK 2026-04-02 9/450 2026-04-03 11:12 by wanwan00
[¿¼ÑÐ] ½»Í¨ÔËÊ俼ÊÔ264·ÖÇ󹤿Ƶ÷¼Á +4 jike777 2026-04-02 4/200 2026-04-02 21:53 by zllcz
[¿¼ÑÐ] Çóµ÷¼Á +7 Aniyaio 2026-04-02 7/350 2026-04-02 16:42 by zzsw+
[¿¼ÑÐ] Ò»Ö¾Ô¸346ÉϺ£´óѧÉúÎïѧ +3 ÉϺ£´óѧ346µ÷¼Á 2026-04-01 3/150 2026-04-02 08:36 by w³æ³æ123
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û