| ²é¿´: 1512 | »Ø¸´: 4 | |||
guoli8832700гæ (³õÈëÎÄ̳)
|
[ÇóÖú]
Çó¸÷λfluent´óÉñ£¬UDFÒ·Á¦ÎÊÌ⣬°ï°ï棬¸Ð¼¤²»¾¡¡£¡£¡£ ÒÑÓÐ1È˲ÎÓë
|
|
ÊéÉÏ¿´µ½µÄÒ»¸öÁ÷»¯´²Ä£Ä⣬´úÂëÎÒÄÜ¿´¶®£¬µ«ÊÇΪʲôҪÓÃÁ½¸öÆø¹Ì½»»»ÏµÊý£¬ÊéÉÏÊÇÆøÏàÑ¡ÔñµÄcustom_drag_syam£¬¹ÌÏàÑ¡Ôñcustom_drag_ihme¡£»¹ÓÐÒ»¸öÎÊÌ⣬µÚÒ»¸öÓõÄÊÇsyamlal-o¡¯brienÄ£ÐÍ£¬µ«Êǵڶþ¸öÎÒ²éÁËÏ£¬²»Êdz£ÓõöÄ£ÐͰ¡£¬Ã»¸ã¶®£¬ÊéÉÏҲû˵¡£´óÉñ°ïæ¿´Ï£¬·Ç³£¸Ðл¡£¡£¡£¡£ ÆäÖÐUDF´úÂëÈçÏ£º /* This is a routine for customizing default Syamlal drag law in Fluent 6. The default drag law uses 0.8 (for void<=0.85) and 2.65 (void>0.85) for bfac. This is for a min fluid vel of 25 cm/s. The current drag law has been tuned for a min fluid vel of 8 cm/s and uses 0.28 and 9.07 for these parameters. */ #include "udf.h" #include "sg_mphase.h" # define pi 4.*atan(1.) #define diam2 3.e-4 DEFINE_EXCHANGE_PROPERTY(custom_drag_syam, cell, mix_thread, s_col, f_col) { Thread *thread_g, *thread_s; real x_vel_g, x_vel_s, y_vel_g, y_vel_s, abs_v, slip_x, slip_y, rho_g, rho_s, mu_g, reyp, afac, bfac, void_g, vfac, fdrgs, taup, k_g_s; /* find the threads for the gas (primary) and solids (secondary phases). These phases appear in columns 2 and 1 in the Interphase panel respectively*/ thread_g = THREAD_SUB_THREAD(mix_thread, s_col);/*gas phase*/ thread_s = THREAD_SUB_THREAD(mix_thread, f_col);/* solid phase*/ /* find phase velocities and properties*/ x_vel_g = C_U(cell, thread_g); y_vel_g = C_V(cell, thread_g); x_vel_s = C_U(cell, thread_s); y_vel_s = C_V(cell, thread_s); slip_x = x_vel_g - x_vel_s; slip_y = y_vel_g - y_vel_s; rho_g = C_R(cell, thread_g); rho_s = C_R(cell, thread_s); mu_g = C_MU_L(cell, thread_g); /*compute slip*/ abs_v = sqrt(slip_x*slip_x + slip_y*slip_y); /*compute reynolds number*/ reyp = rho_g*abs_v*diam2/mu_g; /* compute particle relaxation time */ taup = rho_s*diam2*diam2/18./mu_g; void_g = C_VOF(cell, thread_g);/* gas vol frac*/ /*compute drag and return drag coeff, k_g_s*/ afac = pow(void_g,4.14); if(void_g<=0.85) bfac = 0.281632*pow(void_g, 1.28); else bfac = pow(void_g, 9.076960); vfac = 0.5*(afac-0.06*reyp+sqrt(0.0036*reyp*reyp+0.12*reyp*(2.*bfac- afac)+afac*afac)); fdrgs = void_g*(pow((0.63*sqrt(reyp)/vfac+4.8*sqrt(vfac)/vfac),2))/24.0; k_g_s = (1.-void_g)*rho_s*fdrgs/taup; return k_g_s; } DEFINE_EXCHANGE_PROPERTY(custom_drag_ihme, cell, mix_thread, s_col, f_col) { Thread *thread_g, *thread_s; real x_vel_g, x_vel_s, y_vel_g, y_vel_s, abs_v, slip_x, slip_y, rho_g, rho_s, mu_g, reyp, cd, eg, void_g, k_g_s; /* find the threads for the gas (primary) and solids (secondary phases). These phases appear in columns 2 and 1 in the Interphase panel respectively*/ thread_g = THREAD_SUB_THREAD(mix_thread, s_col);/*gas phase*/ thread_s = THREAD_SUB_THREAD(mix_thread, f_col);/* solid phase*/ /* find phase velocities and properties*/ x_vel_g = C_U(cell, thread_g); y_vel_g = C_V(cell, thread_g); x_vel_s = C_U(cell, thread_s); y_vel_s = C_V(cell, thread_s); slip_x = x_vel_g - x_vel_s; slip_y = y_vel_g - y_vel_s; rho_g = C_R(cell, thread_g); rho_s = C_R(cell, thread_s); mu_g = C_MU_L(cell, thread_g); /*compute slip*/ abs_v = sqrt(slip_x*slip_x + slip_y*slip_y); /*compute reynolds number*/ reyp = rho_g*abs_v*diam2/mu_g; cd = (24./(reyp+SMALL)) + 5.48*pow((reyp+SMALL),-0.573) + 0.36; void_g = C_VOF(cell, thread_g);/* gas vol frac*/ eg = pow(void_g,-2.65); k_g_s = (3./4.)*(cd*(1.-void_g)*abs_v*rho_g*eg)/diam2; return k_g_s; } |
» ²ÂÄãϲ»¶
2026ÄêÑ»·¾¼Ã¹¦ÄܲÄÁϹú¼Ê»áÒ飨ICFMCE 2026£©
ÒѾÓÐ0È˻ظ´
2026ÄêµÚÎå½ìµçÆø¡¢µç×ÓÓëÐÅÏ¢¹¤³Ì¹ú¼Ê»áÒ飨ISEEIE 2026£©
ÒѾÓÐ0È˻ظ´
ÎïÀíѧIÂÛÎÄÈóÉ«/·ÒëÔõôÊÕ·Ñ?
ÒѾÓÐ241È˻ظ´
¹þ¶û±õÀí¹¤´óѧÎïÀíϵÕÐÊÕÎïÀíѧ¿¼Ñе÷¼Á
ÒѾÓÐ5È˻ظ´
0702Ò»Ö¾Ô¸¼ª´óBÇøÇóµ÷¼Á
ÒѾÓÐ5È˻ظ´
Çóµ÷¼Á
ÒѾÓÐ0È˻ظ´
0702Ò»Ö¾Ô¸¼ª´óBÇøÇóµ÷¼ÁÓÐÂÛÎÄ
ÒѾÓÐ0È˻ظ´
ÇëÎÊ»¹ÓÐûÓÐÓÃLatexдÎÄÕµÄС»ï°éÃÇ£¿
ÒѾÓÐ0È˻ظ´
¹âѧ¹¤³Ìѧ˶µ÷¼ÁÐÅÏ¢
ÒѾÓÐ26È˻ظ´
»¶Ó¼ÓÈë¿ÎÌâ×é
ÒѾÓÐ0È˻ظ´
É¢½ð±Ò£¬ÇóºÃÔË£¬×£ÃæÉÏ˳Àû£¡
ÒѾÓÐ34È˻ظ´
» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:
fluent UDF´úÂëµ÷ÓÃÔ¤¶¨Òå³ÌÐòµÄÎÊÌ⣨Èçfortran³ÌÐò£©
ÒѾÓÐ15È˻ظ´
64λANSYS FLUENT²»ÄÜcompile UDFµÄÎÊÌâ
ÒѾÓÐ20È˻ظ´
¡¾ÇóÖú¡¿FLUENT UDF ÆøÒºÁ½ÏàÁ÷ ÆûÊ´ Æû»¯Ç±ÈÈ(ÎÊÌâÏê¼ûÄÚÈÝ)
ÒѾÓÐ21È˻ظ´
ºÃÐÄÈ˰ï°ïæ°É£¬ÎªÊ²Ã´Õâ¸öUDFµ¼ÈëfluentÒÔºó£¬Ôڱ߽çÌõ¼þ´¦Ã»ÓÐÏÔʾ~~~
ÒѾÓÐ17È˻ظ´
UDFÔØÈëfluentÖ®ºó³ö´í£¬ÇóÖ¸µã£¡
ÒѾÓÐ7È˻ظ´
Ò·Á¦º¯ÊýµÄµÄUDF
ÒѾÓÐ15È˻ظ´
¡¾ÌÖÂÛ¡¿Fluent±ß½çÌõ¼þ¼°ÐéÄâÖÊÁ¿Á¦
ÒѾÓÐ6È˻ظ´
¡¾ÇóÖú¡¿linux°æfluentʹÓÃudf²¢ÐÐÎÊÌâÇë½Ì
ÒѾÓÐ4È˻ظ´
¡¾ÇóÖú¡¿ÈçºÎ¸Ä±äFluentÖеÄÒ·Á¦Ä£ÐÍ£¨UDF£©
ÒѾÓÐ12È˻ظ´
liubao2012
ľ³æ (СÓÐÃûÆø)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 2126.3
- É¢½ð: 10
- ºì»¨: 1
- Ìû×Ó: 208
- ÔÚÏß: 123.9Сʱ
- ³æºÅ: 1886137
- ×¢²á: 2012-07-10
- ÐÔ±ð: GG
- רҵ: »¯Ñ§·´Ó¦¹¤³Ì
|
ͬÎʰ¡ Õâ¸öÎÊÌ⻹û½â¾öÂð£¿Ð¡µÜÒ²¸ÕÈëÃÅѧudf£¬Ò²Åöµ½ÁËÕâ¸öÎÊÌ⣬¥Ö÷ÖªµÀÔÒòÁËÂ𣿠·¢×ÔСľ³æAndroid¿Í»§¶Ë |
2Â¥2016-01-01 01:45:11
ZxrzxR0508
гæ (³õÈëÎÄ̳)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 0.5
- Ìû×Ó: 10
- ÔÚÏß: 13Сʱ
- ³æºÅ: 5568095
- ×¢²á: 2017-02-13
- ÐÔ±ð: GG
- רҵ: »¯Ñ§¹¤³Ì¼°¹¤Òµ»¯Ñ§
3Â¥2018-03-06 15:33:12
2017kaixin
гæ (³õÈëÎÄ̳)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 68.6
- Ìû×Ó: 11
- ÔÚÏß: 53.2Сʱ
- ³æºÅ: 6312437
- ×¢²á: 2017-04-13
- רҵ: ȼÉÕѧ
4Â¥2018-04-17 10:52:23
jiajinghua
Ìú³æ (СÓÐÃûÆø)
- Ó¦Öú: 1 (Ó×¶ùÔ°)
- ½ð±Ò: 664
- Ìû×Ó: 137
- ÔÚÏß: 7Сʱ
- ³æºÅ: 698525
- ×¢²á: 2009-02-08
- רҵ: »¯Ñ§·´Ó¦¹¤³Ì

5Â¥2018-04-18 09:07:08













»Ø¸´´ËÂ¥