Znn3bq.jpeg
²é¿´: 261  |  »Ø¸´: 1

bobosfw

гæ (³õÈëÎÄ̳)

[ÇóÖú] СµÜÎÞÕÐÁË£¬´ó¸çÃǰïæ¿´¿´É¶ÎÊÌ⣡

СµÜ¸Õѧudf²»¾Ã£¬ÓÃudf±àдµÄÎïÐÔ£¬º¯ÊýÐÎʽºÜ¼òµ¥£¬ÊÇÎÒ¸ù¾ÝÎïÐÔÊý¾Ý×Ô¼ºÄâºÏµÄÁù½×¸µÀïÒ¶¼¶Êý
f(x)=a0+a1*cos(w*x)+b1*sin(w*x)+...+a6*cos(6*w*x)+b6*sin(6*w*x)
´úÂëÈçÏ£º
#include "udf.h"
#include "math.h"
#define a0 33900
#define a1 -3.874 E 4
#define b1 -4.376 E 4
#define a2 -4500
#define b2 3.687 E 4
#define a3 1.398 E 4
#define b3 -9630
#define a4 -5142
#define b4 -1277
#define a5 468.8
#define b5 898.8
#define a6 32.21
#define b6 -83.98
#define w 0.001045
DEFINE_PROPERTY(cell_viscosity,cell,thread)
{
        real mu_lam;
        real wendu;
        wendu=C_T(cell,thread);
        mu_lam=a0+a1*cos(w*wendu)+b1*sin(w*wendu)+a2*cos(2*w*wendu)+b2*sin(2*w*wendu)+a3*cos(3*w*wendu)+b3*sin(3*w*wendu)+a4*cos(4*w*wendu)+b4*sin(4*w*wendu)+a5*cos(5*w*wendu)+b5*sin(5*w*wendu)+a6*cos(6*w*wendu)+b6*sin(6*w*wendu);
        return mu_lam;
}

±àÒëµÄʱºò³öÏÖÁËÈçϵĴíÎó
Error: F:\model\Dodecane\viscosity\viscosity.c: line 22: parse error.
µÚ22ÐУ¬Ò²¾ÍÊÇ×îºóÒ»ÐУ¬return mulam£»ÎÒʵÔÚÊÇÕÒ²»³öÄÄÀï³öÁËÎÊÌ⣬Çó¸÷λ´ó¸ç²»Áߴͽ̣¡
»Ø¸´´ËÂ¥

» ²ÂÄãϲ»¶

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

ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

smart222

ľ³æ (СÓÐÃûÆø)

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

¡ï ¡ï
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
xiegangmai: ½ð±Ò+2, ллӦÖú£¡ 2012-09-21 09:33:30
#define a1 -3.874 E 4
#define b1 -4.376 E 4  Õâ¸öдµÄ²»¶Ô

ÏÂÃæÊÇÎÒ±àÒëµÄÏûÏ¢Ìáʾ£º
e:\fluent.inc\fluent6.3.26\src\machine.h(114) : warning C4005: ¡°stdout¡±: ºêÖØ¶¨Òå
        E:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\stdio.h(161) : ²Î¼û¡°stdout¡±µÄǰһ¸ö¶¨Òå
e:\fluent.inc\fluent6.3.26\src\machine.h(115) : warning C4005: ¡°stderr¡±: ºêÖØ¶¨Òå
        E:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\stdio.h(162) : ²Î¼û¡°stderr¡±µÄǰһ¸ö¶¨Òå
e:\fluent.inc\fluent6.3.26\src\machine.h(116) : warning C4005: ¡°stdin¡±: ºêÖØ¶¨Òå
        E:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\stdio.h(160) : ²Î¼û¡°stdin¡±µÄǰһ¸ö¶¨Òå
# Generating udf_names.c because of makefile 11.obj
udf_names.c
e:\fluent.inc\fluent6.3.26\src\machine.h(114) : warning C4005: ¡°stdout¡±: ºêÖØ¶¨Òå
        E:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\stdio.h(161) : ²Î¼û¡°stdout¡±µÄǰһ¸ö¶¨Òå
e:\fluent.inc\fluent6.3.26\src\machine.h(115) : warning C4005: ¡°stderr¡±: ºêÖØ¶¨Òå
        E:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\stdio.h(162) : ²Î¼û¡°stderr¡±µÄǰһ¸ö¶¨Òå
e:\fluent.inc\fluent6.3.26\src\machine.h(116) : warning C4005: ¡°stdin¡±: ºêÖØ¶¨Òå
        E:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\stdio.h(160) : ²Î¼û¡°stdin¡±µÄǰһ¸ö¶¨Òå
# Linking libudf.dll because of makefile user_nt.udf udf_names.obj 11.obj
Microsoft (R) Incremental Linker Version 9.00.21022.08
Copyright (C) Microsoft Corporation.  All rights reserved.

   ÕýÔÚ´´½¨¿â libudf.lib ºÍ¶ÔÏó libudf.exp

Done.
"F:/fluent/test_uniformity"

Opening library "libudf"...
Library "libudf\win64\3d\libudf.dll" opened
        cell_viscosity
Done.
2Â¥2012-09-20 22:36:38
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ bobosfw µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] Ò»Ö¾Ô¸±±Àí¹¤298Ó¢Ò»Êý¶þÇóµ÷¼Á +10 Reframe 2026-04-10 11/550 2026-04-10 13:18 by forestmumu
[¿¼ÑÐ] Çóµ÷¼Á +8 Ñ©·ê¶¬ 2026-04-10 8/400 2026-04-10 11:34 by wp06
[¿¼ÑÐ] Çóµ÷¼Á +11 ôæôæÒ»ÊéÉú 2026-04-09 13/650 2026-04-10 10:27 by liuhuiying09
[¿¼ÑÐ] µ÷¼Á +4 ÇàµÆ²»¸º 2026-04-09 4/200 2026-04-10 09:55 by LHGeng
[¿¼ÑÐ] һ־Ը˫·Ç085400µç×ÓÐÅÏ¢344 Çóµ÷¼Á£¬¶Ô²ÄÁϺͻ¯Ñ§·½ÏòÒ²¸ÐÐËȤ +8 ÎÞÇéµÄСÑò 2026-04-09 9/450 2026-04-10 09:30 by ËÉ»¨¸×1201
[¿¼ÑÐ] ²ÄÁÏ»¯¹¤×Ü·Ö334Çóµ÷¼Á +16 Riot2025 2026-04-08 17/850 2026-04-09 20:19 by maddjdld
[¿¼ÑÐ] 0703»¯Ñ§µ÷¼Á325·Ö +13 15771691647 2026-04-04 15/750 2026-04-09 16:55 by 15771691647
[¿¼ÑÐ] »¯Ñ§µ÷¼ÁÇóÖú +14 LULONG1 2026-04-03 19/950 2026-04-09 10:43 by chenxi233
[¿¼ÑÐ] Ò»Ö¾Ô¸»ª¶«Àí¹¤085601²ÄÁϹ¤³Ì303·ÖÇóµ÷¼Á +15 a1708 2026-04-06 15/750 2026-04-08 16:23 by luoyongfeng
[¿¼ÑÐ] 285Çóµ÷¼Á +7 ¶ñ·¨´ó¶þµÄÆøÎ¶ß 2026-04-05 10/500 2026-04-08 14:34 by zhq0425
[¿¼ÑÐ] ²ÄÁϵ÷¼Á +13 ºº123456 2026-04-07 14/700 2026-04-07 22:53 by À´¿´Á÷ÐÇÓê10
[¿¼ÑÐ] 334·Ö»úеר˶Çóµ÷¼Á +3 µ°»¨×ϲËÌÀ 2026-04-03 3/150 2026-04-07 14:49 by åÐÒ£cocoa
[¿¼ÑÐ] Çóµ÷¼Á +11 xzghyuj 2026-04-04 11/550 2026-04-06 11:49 by lijunpoly
[¿¼ÑÐ] Çóµ÷¼Á +10 chenxrlkx 2026-04-05 10/500 2026-04-06 11:31 by Öí»á·É
[¿¼ÑÐ] 288Çóµ÷¼Á£¬Ò»Ö¾Ô¸»ªÄÏÀí¹¤´óѧ071005 +6 ioodiiij 2026-04-04 6/300 2026-04-05 10:09 by guoweigw
[¿¼ÑÐ] Ò»Ö¾Ô¸±±¾©»¯¹¤´óѧ£¬³õÊԳɼ¨350Çóµ÷¼Á +9 ÑØ°¶?±´¿Ç 2026-04-04 14/700 2026-04-05 01:09 by ÑØ°¶?±´¿Ç
[¿¼ÑÐ] µ÷¼Á +9 19945159693 2026-04-03 10/500 2026-04-04 20:16 by dongzh2009
[¿¼ÑÐ] 342Çóµ÷¼Á +3 Liang7111 2026-04-04 5/250 2026-04-04 19:47 by dongzh2009
[¿¼ÑÐ] 309Çóµ÷¼Á +4 ¿ìÀÖµÄС°×¸ë 2026-04-04 5/250 2026-04-04 15:55 by cql1109
[¿¼ÑÐ] µ÷¼Á0855-288 +5 xÐܶþa 2026-04-03 5/250 2026-04-04 00:19 by Öí»á·É
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û