fluent中用udf编写粘度函数如何看有没有
1个回答
展开全部
#include "udf.h"
/*1-oil density*/
DEFINE_PROPERTY(cell_density,cell,thread)
{
real density;
real temp = C_T(cell,thread); /*temp就是温度*/
density = -1172.12 ; /*补全你的函数*/
return density;
}
/*2-oil viscosity*/
DEFINE_PROPERTY(cell_viscosity,cell,thread)
{
real viscosity;
real temp = C_T(cell,thread);
viscosity = 0.001779 ; /*补全你的函数*/
return viscosity;
}
/*3-oil thermal conductivity*/
DEFINE_PROPERTY(cell_heatconductivity,cell,thread)
{
real heatconductivity;
real temp = C_T(cell,thread);
heatconductivity = -2.2969+; /*补全你的函数*/
return thecon;
}
/*1-oil density*/
DEFINE_PROPERTY(cell_density,cell,thread)
{
real density;
real temp = C_T(cell,thread); /*temp就是温度*/
density = -1172.12 ; /*补全你的函数*/
return density;
}
/*2-oil viscosity*/
DEFINE_PROPERTY(cell_viscosity,cell,thread)
{
real viscosity;
real temp = C_T(cell,thread);
viscosity = 0.001779 ; /*补全你的函数*/
return viscosity;
}
/*3-oil thermal conductivity*/
DEFINE_PROPERTY(cell_heatconductivity,cell,thread)
{
real heatconductivity;
real temp = C_T(cell,thread);
heatconductivity = -2.2969+; /*补全你的函数*/
return thecon;
}
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询