不知火舞的被虐|伊人天伊人天天综合网|博洛尼亚天气|任你懆这里只有精品4|久久美日韩精品久久|掌中之物漫画免费阅读观看|0丨d老妇

fluent中利用UDF定義物性隨溫度變化,初始化報錯?

瀏覽:1882

用UDF定義了流體物性隨溫度變化,初始化時報錯出現(xiàn)Error: received a fatal signal (segmentation fault)
UDF 程序如下:
#include "udf.h"
DEFINE_PROPERTY(cell_density_hot,c,t)
{
  Thread*t;
  cell_t c;
  real rho;
  real temp;
  temp=C_T(c,t);
  rho=29440*exp(-0.01821*temp)+240.4*exp(-0.001971*temp);
  return rho;
}

DEFINE_SPECIFIC_HEAT(cell_specificheat_hot,T,Tref,h,yi)
{
  Thread*t;
  cell_t c;
  real cp;
  real temp;
  temp=C_T(c,t);
    if(temp>=360&&temp<=425)
    {
      cp=1.658e8*exp(-0.0373*temp)+1598*exp(-0.0007418*temp);  
    }
    else
    {
      cp=2.388e5*exp(-0.01836*temp)+980.9*exp(0.0002479*temp);
    }
  *h=cp*(temp-Tref);
  return cp;
}

DEFINE_PROPERTY(cell_thermalcond_hot,c,t)
{
  Thread*t;
  cell_t c;
  real ktc;
  real temp;
  temp=C_T(c,t);
  ktc=1.828e10*exp(-0.08465*temp)+0.01377*exp(0.00194*temp);
  return ktc;
}

DEFINE_PROPERTY(cell_viscosity_hot,c,t)
{
  Thread*t;
  cell_t c;
  real mu;
  real temp;
  temp=C_T(c,t);
  mu=-1.696e-19*exp(0.04779*temp)+1.17e-5*exp(0.001517*temp);
  return mu;
}

請問,這是什么原因,如何解決

邀請回答 我來回答

當前暫無回答

回答可獲贈 200金幣

沒解決?試試專家一對一服務(wù)

換一批
    App下載
    技術(shù)鄰APP
    工程師必備
    • 項目客服
    • 培訓(xùn)客服
    • 平臺客服

    TOP