av久久久-av九九九-av九九-av激情网-欧美三级在线-欧美三级一区二区三区

fluent中使用非牛頓流體

2017-04-24  by:CAE仿真在線  來(lái)源:互聯(lián)網(wǎng)



1、非牛頓流體:剪應(yīng)力與剪切應(yīng)變率之間滿(mǎn)足線性關(guān)系的流體稱(chēng)為牛頓流體,而把不滿(mǎn)足線性關(guān)系的流體稱(chēng)為非牛頓流體。

2、fluent中使用非牛頓流體

a、層流狀態(tài):直接在材料物性下設(shè)置材料的粘度,設(shè)置其為非牛頓流體。

b、湍流狀態(tài)

fluent在設(shè)置湍流模型后,會(huì)自動(dòng)將材料的非牛頓流體性質(zhì)直接改成了牛頓流體,因此需要做一些修改。最基本的方式有兩種:1、打開(kāi)隱藏的湍流模型下非牛頓流體功能;2,直接利用UDF宏DEFINE_PROPERTY定義

3、打開(kāi)隱藏的湍流模型下非牛頓流體功能

方法為:

(1) 在湍流模型中選擇標(biāo)準(zhǔn)的k-e模型;(2) 在Fluent窗口輸入命令:define/models/viscous/turbulence-expert/turb-non-newtonian 然后回車(chē)。

(3) 輸入:y 然后回車(chē)。


4、利用DEFINE_PROPERTY宏

A:這是一個(gè)自定義材料的粘度程序如下,也許對(duì)你有幫助。
在記事本中編輯的,另存為“visosity1.c"
#include "udf.h"
DEFINE_PROPERTY(cell_viscosity, cell, thread)
{
real mu_lam;
real trial;
rate=CELL_STRAIN_RATE_MAG(cell, thread);
real temp=C_T(cell, thread);
mu_lam=1.e12;
{
if(rate>1.0e-4 && rate<1.e5)
trial=12830000./rate*log(pow((rate*exp(17440.46/temp)/1.535146e8),0.2817)+pow((1.+pow((rate*exp(17440.46/temp)/1.535146e8),0.5634)),0.5));
else if (rate>=1.e5)
trial=128.3*log(pow((exp(17440.46/temp)/1.535146e8),0.2817)+pow((1.+pow((exp(17440.46/temp)/1.535146e8),0.5634)),0.5));
else
trial=1.283e11*log(pow((exp(17440.46/temp)/1.535146e12),0.2817)+pow((1.+pow((exp(17440.46/temp)/1.535146e12),0.5634)),0.5));
}
else if(temp>=855.&&temp<905.)
{
if(rate>1.0e-4 && rate<1.e5)
trial=12830000./rate*log(pow((rate*4.7063),0.2817)+pow((1.+pow((rate*4.7063),0.5634)),0.5))*pow(10.,-0.06*(temp-855.));
else if (rate>=1.e5)
trial=243.654*pow(10.,-0.06*(temp-855.));
else
trial=1.47897e10*pow(10.,-0.06*(temp-855.));
}
else if(temp>=905.)
{
if(rate>1.0e-4 && rate<1.e5)
trial=12830./rate*log(pow((rate*4.7063),0.2817)+pow((1.+pow((rate*4.7063),0.5634)),0.5));
else if (rate>=1.e5)
trial=0.24365;
else
trial=1.47897e7;
}
if(trial<1.e12&&trial>100.)
mu_lam=trial;
else if(trial<=1.)
mu_lam=1.;
else
mu_lam=1.e12;
return mu_lam;
}

B:在Fluent中使用Herschel-Bulkley粘性模型:

/* UDF for Herschel-Bulkley viscosity */
#include "udf.h”
real T,vis, s_mag, s_mag_c, sigma_y,n,k;
real C_1 = 1.0;
real C_2 = 1.0;
real C_3 = 1.0;
real C_4 = 1.0;
int ia ;
DEFINE_PROPERTY(hb_viscosity,c,t)
{
T=C_T(c, t);
s_mag = CELL_STRAIN_RATE_MAG(c,t);
/* Input parameters for H-B Viscosity */
if (ia==0.0)
{ C_1 = RP_Get_Real("c_1");
C_2 = RP_Get_Real("c_2");
C_3 = RP_Get_Real("c_3");
C_4 = RP_Get_Real("c_4");
ia = 1;}
k= C_1 ;
n= C_2 ;
sigma_y = C_3 ;
s_mag_c = C_4 ;
if (s_mag < s_mag_c)
{vis = sigma_y*(2-s_mag/s_mag_c)/s_mag_c+k*((2-n)+(n-1)*s_mag/s_mag_c)*pow(s_mag_c,(n-1));}
else
{ vis = sigma_y / s_mag + k*pow(s_mag, (n-1));}
return vis;
}

這是一個(gè)自定義材料的粘度程序如下,也許對(duì)你有幫助。
在記事本中編輯的,另存為“visosity1.c"
#include "udf.h"
DEFINE_PROPERTY(cell_viscosity, cell, thread)
{
real mu_lam;
real trial;
rate=CELL_STRAIN_RATE_MAG(cell, thread);
real temp=C_T(cell, thread);
mu_lam=1.e12;
{
if(rate>1.0e-4 && rate<1.e5)
trial=12830000./rate*log(pow((rate*exp(17440.46/temp)
/1.535146e8),0.2817)+pow((1.+pow((rate*exp(17440.46/
temp)/1.535146e8),0.5634)),0.5));
else if (rate>=1.e5)
trial=128.3*log(pow((exp(17440.46/temp)/
1.535146e8),0.2817)+pow((1.+pow((exp(17440.46/temp)/
1.535146e8),0.5634)),0.5));
else
trial=1.283e11*log(pow((exp(17440.46/temp)/
1.535146e12),0.2817)+pow((1.+pow((exp(17440.46/temp)/
1.535146e12),0.5634)),0.5));
}
else if(temp>=855.&&temp<905.)
{
if(rate>1.0e-4 && rate<1.e5)
trial=12830000./rate*log(pow((rate*4.7063),0.2817)+
pow((1.+pow((rate*4.7063),0.5634)),0.5))*pow(10.,-0.06
*(temp-855.));
else if (rate>=1.e5)
trial=243.654*pow(10.,-0.06*(temp-855.));
else
trial=1.47897e10*pow(10.,-0.06*(temp-855.));
}
else if(temp>=905.)
{
if(rate>1.0e-4 && rate<1.e5)
trial=12830./rate*log(pow((rate*4.7063),0.2817)+
pow((1.+pow((rate*4.7063),0.5634)),0.5));
else if (rate>=1.e5)
trial=0.24365;
else
trial=1.47897e7;
}
if(trial<1.e12&&trial>100.)
mu_lam=trial;
else if(trial<=1.)
mu_lam=1.;
else
mu_lam=1.e12;
return mu_lam;
}

.Fluent中使用Herschel-Bulkley粘性模型:

/* UDF for Herschel-Bulkley viscosity */
#include "udf.h”
real T,vis, s_mag, s_mag_c, sigma_y,n,k;
real C_1 = 1.0;
real C_2 = 1.0;
real C_3 = 1.0;
real C_4 = 1.0;
int ia ;
DEFINE_PROPERTY(hb_viscosity,c,t)
{
T=C_T(c, t);
s_mag = CELL_STRAIN_RATE_MAG(c,t);
/* Input parameters for H-B Viscosity */
if (ia==0.0)
{ C_1 = RP_Get_Real("c_1");
C_2 = RP_Get_Real("c_2");
C_3 = RP_Get_Real("c_3");
C_4 = RP_Get_Real("c_4");
ia = 1;}
k= C_1 ;
n= C_2 ;
sigma_y = C_3 ;
s_mag_c = C_4 ;
if (s_mag < s_mag_c)
{vis = sigma_y*(2-s_mag/s_mag_c)/s_mag_c+k*((2-n)+(n-1)*s_mag/s_mag_c)*pow(s_mag_c,(n-1));}
else
{ vis = sigma_y / s_mag + k*pow(s_mag, (n-1));}
return vis;
}

另外,如果在Fluent中使用了湍流模型,那么Fluent將默認(rèn)地不允許使用非牛頓流體模型,你的UDF出現(xiàn)CELL_STRAIN_RATE_MAG: undeclared variable這樣的錯(cuò)誤也可能與此有關(guān),你需要激活在湍流模型條件下使用非牛頓流體模型的選項(xiàng):

方法為:

(1) 在湍流模型中選擇標(biāo)準(zhǔn)的k-e模型;

(2) 在Fluent窗口輸入命令:define/models/viscous/turbulence-expert/turb-non-newtonian 然后回車(chē)。

(3) 輸入:y 然后回車(chē)。



開(kāi)放分享:優(yōu)質(zhì)有限元技術(shù)文章,助你自學(xué)成才

相關(guān)標(biāo)簽搜索:fluent中使用非牛頓流體 Fluent培訓(xùn) Fluent流體培訓(xùn) Fluent軟件培訓(xùn) fluent技術(shù)教程 fluent在線視頻教程 fluent資料下載 fluent分析理論 fluent化學(xué)反應(yīng) fluent軟件下載 UDF編程代做 Fluent、CFX流體分析 HFSS電磁分析 

編輯
在線報(bào)名:
  • 客服在線請(qǐng)直接聯(lián)系我們的客服,您也可以通過(guò)下面的方式進(jìn)行在線報(bào)名,我們會(huì)及時(shí)給您回復(fù)電話(huà),謝謝!
驗(yàn)證碼

全國(guó)服務(wù)熱線

1358-032-9919

廣州公司:
廣州市環(huán)市中路306號(hào)金鷹大廈3800
電話(huà):13580329919
          135-8032-9919
培訓(xùn)QQ咨詢(xún):點(diǎn)擊咨詢(xún) 點(diǎn)擊咨詢(xún)
項(xiàng)目QQ咨詢(xún):點(diǎn)擊咨詢(xún)
email:kf@1cae.com




主站蜘蛛池模板: 屈原话剧| 女演员佟欣简介| 中央6套| 孤掷一注在线观看| 一块奶酪预习| 村上信五| 2024微信头像图片| 秀人网周妍希| 齐力电影| 视觉暂留现象原理| 爱情重伤| 纵情四海| 徐宝麟| remember11| 美女被吃| 爸爸的儿子| 动漫秀场| 民国奇探2出来了吗| 吴京电影全集完整版喜剧| 范海辛电影原声在线观看免费| 汤姆·塞兹摩尔| 简单的应急预案怎么写| 操老女人视频| 完美情人| 《东北警察故事2》大结局| 永夜星河演员| 动物园作文| 暴走财神1| 二年级aab词语| 改病句| 情欲迷宫电影| 拾贝的小女孩阅读理解答案| 朱莉娅·安最经典十部电影| 狗年电影| 秀场视频高清完整版| 色戒 在线看| 缝鞋子针法视频| 保镖电影在线完整观看| 草逼啊啊啊| 泰国xxx| 杨贵妃黄色片|