fluentÖÐн¨Ò»¸ö²ÄÁÏ£¬»¬ÓÍ¡£»¬Ó͵ÄÎïÐÔ²ÎÊýÊÇËæÎ¶ȱ仯µÄ¡£ÓÃudfдÁËÏà¹Øº¯Êý¡£
¾¹ýDefine¡·User-Defined¡·Functions¡·Compiled£¬ÔÚµ¯³öµÄ´°¿ÚÖÐSource FilesÕÒµ½ÁËËĸöÎïÐÔ²ÎÊýµÄÔ´Îļþ¡£
µã»÷build£¬´úÂë´°¿ÚÏÔʾDoneºó£¬µã»÷Load£¬´úÂë´°¿ÚÔÙ´ÎÏÔʾDone¡£
![fluentÖÐSet_Material_Property: null user-defined-function name]()
![fluentÖÐSet_Material_Property: null user-defined-function name-1]()
È»ºóÔÚMaterialsÖÐн¨²ÄÁÏhuayou£¬¾Í³öÎÊÌâÁË¡£
![fluentÖÐSet_Material_Property: null user-defined-function name-2]()
![fluentÖÐSet_Material_Property: null user-defined-function name-3]()
Á¢¿Ì³öÏÖÒÔÏ´íÎó£º
old-name (air . #f) new-name (huayou . #f)
Error: No user-defined functions have been loaded.
Error Object: #f
Primitive Error at Node 0: Set_Material_Property: null user-defined-function name
Primitive Error at Node 5: Set_Material_Property: null user-defined-function name
Primitive Error at Node 1: Set_Material_Property: null user-defined-function name
Primitive Error at Node 2: Set_Material_Property: null user-defined-function name
ÒÔÏÂÊÇËĸöudf´úÂ룺
ÎļþÃû£ºhuayou4106_cp.c
#include "udf.h"
#include "math.h"
DEFINE_PROPERTY(huayou4106_cp,c,t)
{
real cp;
real temp = C_T(c,t);
cp=(2.161443+2.555131*0.001*(temp-144)+9.535232*pow(10,-6)*pow(temp-144,2)+1.171208*pow(10,-7)*pow(temp-144,3))*1000;
return cp;
}
ÎļþÃû£ºhuayou4106_pho.c
#include "udf.h"
#include "math.h"
DEFINE_PROPERTY(huayou4106_pho,c,t)
{
real pho;
real a;
real temp = C_T(c,t);
pho=959.7/(1+60.4*pow(10,-5)*(temp-20));
return pho;
}
ÎļþÃû£ºhuayou4106_tc.c
#include "udf.h"
#include "math.h"
DEFINE_PROPERTY(huayou4106_tc,c,t)
{
real tc;
real temp = C_T(c,t);
tc=0.167*(1-0.0011976*temp);
return tc;
}
ÎļþÃû£ºhuayou4106_cviscosity.c
#include "udf.h"
#include "math.h"
DEFINE_PROPERTY(huayou4106_viscosity,c,t)
{
real mu_lam;
real a;
real temp = C_T(c,t);
a=pow(10.0,10.1295)*pow((459.7+32+temp*1.8),-3.6312f);
mu_lam=(pow(10,a)-0.6)*pow(10,-6);
return mu_lam;
}
¸ÕѧÕâЩ¶«Î÷£¬¸Õ¿ªÊ¼Ê±»·¾³±äÁ¿Ã»ÉèÖúã¬ÕÛÌÚÁ˰ëÌìÖÕÓÚÄÜÔØÈëÁË£¬ÔØÈëÖ®ºóÓÖÏÝÈëÏÖÔÚµÄÀ§¾³¡£
ÓÐûÓÐÈËÖªµÀÕâÊÇʲôÔÒò°¡£¿ÊDzÙ×÷µÄÎÊÌ⣿´úÂëµÄÎÊÌ⣿»¹ÊÇ£¿ |