| ²é¿´: 3610 | »Ø¸´: 11 | ||
| µ±Ç°Ö»ÏÔʾÂú×ãÖ¸¶¨Ìõ¼þµÄ»ØÌû£¬µã»÷ÕâÀï²é¿´±¾»°ÌâµÄËùÓлØÌû | ||
leixiaobo713Òø³æ (ÕýʽдÊÖ)
|
[ÇóÖú]
fluentÖÐUDF±àÒëµÄÎÊÌ⣡
|
|
|
±¾ÈËÏë±àµÄ³ÌÐòÊÇÕâÑùµÄ£º ²ÄÁÏÊÇÓгõʼζȵ쬶øÇÒ³õʼζÈΪX£¨XÖá×ø±ê£©µÄº¯Êý£»Ä£Ä⿪ʼºó£¬ÔںܶÌʱ¼äÄÚ²ÄÁϵÄζȽ«·¢Éú±ä»¯£¬±ä»¯µÄζÈΪ³õʼζȵĺ¯Êý£¬ÔÚÒ»¶¨Ê±¼äºó£¨ÉÏÃæÌáµ½µÄºÜ¶Ìʱ¼ä£©£¬²ÄÁϵÄζȽöËæÁ÷ÌåµÄÁ÷¶¯¶ø×ÔÈ»·¢Éú±ä»¯£¬Ã»ÓÐÔÙÉúÈÈÔ´¡£ÎÒ±äµÃ³ÌÐòÊÇÕâÑùµÄ£¬ËäÈ»ÄܱàÒ룬µ«ÊÇÄ£ÄâÒ»¿ªÊ¼¾Í³öÏÖ´íÎó£¬Çë¸ßÊÖÖ¸µã£¬±¾ÈËÊÇС°×£¬Ð»Ð»£¡ #include "udf.h" DEFINE_PROFILE(unsteady_temperature,thread,position) { real t, temperature; face_t f; real x; begin_f_loop(f,thread) { t=RP_Get_Real("flow-time" ;if(t<=0.000000001) {temperature=325.0-0.115*x; F_PROFILE(f,thread,position) =temperature+(297.68625-7.37218/(1+exp((temperature-299.65187)/7.97379))); } else F_PROFILE(f,thread,position) =temperature; } end_f_loop(f,thread); } Ä£Äâ³öÏֵĴíÎóÌáʾ£º Updating solution at time level N... done. iter continuity x-velocity y-velocity energy time/iter chip-exec: unsteady_temperature: wrong return type: float udf function expectedchip-exec: unsteady_temperature: argument 1: incorrect type (36): int expectedchip-exec: unsteady_temperature: argument 2: incorrect type (5): pointer expected Error: FLUENT received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error Object: () |
» ²ÂÄãϲ»¶
309Çóµ÷¼Á
ÒѾÓÐ8È˻ظ´
Ò»Ö¾Ô¸ÄϺ½ 335·Ö | 0856 | GPA 4.07 | ÓпÆÑоÀú
ÒѾÓÐ8È˻ظ´
Çóµ÷¼Á
ÒѾÓÐ5È˻ظ´
Çó»¯Ñ§µ÷¼Á
ÒѾÓÐ5È˻ظ´
085600£¬²ÄÁÏÓ뻯¹¤321·ÖÇóµ÷¼Á
ÒѾÓÐ10È˻ظ´
0703 »¯Ñ§ Çóµ÷¼Á£¬Ò»Ö¾Ô¸É½¶«´óѧ 342 ·Ö
ÒѾÓÐ5È˻ظ´
Ò»Ö¾Ô¸ÄÏ¿ª´óѧ0710ÉúÎïѧ359Çóµ÷¼Á
ÒѾÓÐ3È˻ظ´
085600£¬×¨Òµ¿Î»¯¹¤ÔÀí£¬320·ÖÇóµ÷¼Á
ÒѾÓÐ4È˻ظ´
²ÄÁÏÓ뻯¹¤272Çóµ÷¼Á
ÒѾÓÐ16È˻ظ´
290Çóµ÷¼Á
ÒѾÓÐ3È˻ظ´
» ±¾Ö÷ÌâÏà¹ØÉ̼ÒÍÆ¼ö: (ÎÒÒ²ÒªÔÚÕâÀïÍÆ¹ã)

for_the_king
гæ (СÓÐÃûÆø)
- Ó¦Öú: 91 (³õÖÐÉú)
- ½ð±Ò: -169.1
- ºì»¨: 3
- Ìû×Ó: 156
- ÔÚÏß: 4.5Сʱ
- ³æºÅ: 2638376
- ×¢²á: 2013-09-05
- ÐÔ±ð: MM
- רҵ: Á÷ÌåÁ¦Ñ§
11Â¥2013-09-10 09:42:39
fangdian
ľ³æ (ÕýʽдÊÖ)
- Ó¦Öú: 201 (´óѧÉú)
- ½ð±Ò: 2836.4
- É¢½ð: 64
- ºì»¨: 33
- Ìû×Ó: 818
- ÔÚÏß: 206.9Сʱ
- ³æºÅ: 1926821
- ×¢²á: 2012-08-06
- רҵ: ¶àÏàÁ÷ÈÈÎïÀíѧ
¡¾´ð°¸¡¿Ó¦Öú»ØÌû
¡ï ¡ï
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
xiegangmai: ½ð±Ò+2, лл²ÎÓ룡 2013-09-08 22:06:42
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
xiegangmai: ½ð±Ò+2, лл²ÎÓ룡 2013-09-08 22:06:42
| ÊDz»ÊÇζÈûÓи³³õÖµ£¿Èç¹ût<=0.000000001Ìõ¼þ´ï²»µ½temperatureµÈÓÚ¶àÉÙÄØ£¿£¿»¹ÓУ¬¼´Ê¹Âú×ãt<=0.000000001£¬ÄÇôxֵΪ¶àÉÙ£¿x²»ÖªµÀµÄ»°£¬Î¶ÈҲȷ¶¨²»ÁËÁ˰¡ |
» ±¾ÌûÒÑ»ñµÃµÄºì»¨£¨×îÐÂ10¶ä£©
2Â¥2013-09-04 08:41:46
leixiaobo713
Òø³æ (ÕýʽдÊÖ)
- Ó¦Öú: 1 (Ó×¶ùÔ°)
- ½ð±Ò: 1228.5
- É¢½ð: 148
- ºì»¨: 4
- Ìû×Ó: 490
- ÔÚÏß: 121.9Сʱ
- ³æºÅ: 1997539
- ×¢²á: 2012-09-13
- ÐÔ±ð: GG
- רҵ: ½ðÊô¹¦ÄܲÄÁÏ

3Â¥2013-09-04 09:11:56
leixiaobo713
Òø³æ (ÕýʽдÊÖ)
- Ó¦Öú: 1 (Ó×¶ùÔ°)
- ½ð±Ò: 1228.5
- É¢½ð: 148
- ºì»¨: 4
- Ìû×Ó: 490
- ÔÚÏß: 121.9Сʱ
- ³æºÅ: 1997539
- ×¢²á: 2012-09-13
- ÐÔ±ð: GG
- רҵ: ½ðÊô¹¦ÄܲÄÁÏ
|
#include "udf.h" DEFINE_PROFILE(unsteady_temperature,thread,position) { real t, temperature=298.0; face_t f; real x[ND_ND]; F_CENTROID(x,f,thread); begin_f_loop(f,thread) { t=RP_Get_Real("flow-time" ; if(t>0&&t<=0.1) F_PROFILE(f,thread,position)=temperature; else if(t>=0.1&&t<0.4) { temperature=298.0+5*x[1]; F_PROFILE(f,thread,position) =temperature+(297.68625-7.37218/(1+exp((temperature-299.65187)/7.97379))); } else { temperature=F_PROFILE(f,thread,position); F_PROFILE(f,thread,position) =temperature; } } end_f_loop(f,thread); } ÎҸijÉÕâÑù£¬»¹ÊÇÉÏÃæµÄÎÊÌâ°¡£¬ÇëÖ¸½Ì! FLUENT received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error Object: () |

4Â¥2013-09-04 11:13:42














;
»Ø¸´´ËÂ¥
leixiaobo713