久久精品草-久久精品成人-久久精品成人免费网站-久久精品成人欧美大片免费-香港三级大全-香港三级日本三级a视频

UDF-使用VOF計算泡沫的內部循環

2017-01-19  by:CAE仿真在線  來源:互聯網



Problem:
It is important to get the internal circulation inside a bubble in many cases. Here the observer is sitting at the bubble itself.
1) Get the converged solution
2) The define on demand function below computes the velocity of the centroid of the bubble (and also the coordinates of the centroid).
3) The velocity vectors are modified depending upon this velocities.
Note: If you save this case file after executing the udf, then you will lose the actual velocity data. So make sure you have the original data securely saved.

 

Resolution:
**************************************************************************
* Udf to compute the velocity of the centroid of the bubble
* change the absolute velocity field to velocity field relative to
* the centroid of the bubble
* Written by Suman Basu of Fluent India
**************************************************************************/

#include "udf.h"

DEFINE_ON_DEMAND(move_with_bubble)
{
int phase_domain_index;
real vel_sum[ND_ND],co_ord1[ND_ND],co_ord[ND_ND],volume,average_velocity[ND_ND],x[ND_ND];
cell_t cell;
Thread *cell_thread;
Domain *subdomain,*mixture_domain=Get_Domain(1);
NV_S(vel_sum,=,0.);
NV_S(co_ord,=,0.);
volume=0.;
NV_S( average_velocity,=,0.);
NV_S(co_ord1,=,0.);
/* loop over all subdomains (phases) in the superdomain (mixture) */
sub_domain_loop(subdomain, mixture_domain, phase_domain_index)
{
/* loop if secondary phase */
if (DOMAIN_ID(subdomain) == 3)
/* loop over all cell threads in the secondary phase domain */
{
thread_loop_c (cell_thread,subdomain)
{
/* loop over all cells in secondary phase cell threads */
begin_c_loop(cell,cell_thread)
{
C_CENTROID(x,cell,cell_thread);
co_ord[0]+=C_VOF(cell,cell_thread)*C_VOLUME(cell,cell_thread)*x[0];
co_ord[1]+=C_VOF(cell,cell_thread)*C_VOLUME(cell,cell_thread)*x[1];
vel_sum[0]+= C_VOF(cell,cell_thread)*C_VOLUME(cell,cell_thread)*C_U(cell,cell_thread);
vel_sum[1]+= C_VOF(cell,cell_thread)*C_VOLUME(cell,cell_thread)*C_V(cell,cell_thread);
volume+=C_VOF(cell,cell_thread)*C_VOLUME(cell,cell_thread);
}
end_c_loop(cell,cell_thread)
}
}
}
NV_VS(co_ord1,=,co_ord,/,volume);
NV_VS(average_velocity,=,vel_sum,/,volume);
Message("Centroid[0]=%f\nCentroid[1]=%f\n",co_ord1[0],co_ord1[1]);
Message("V_Centroid[0]=%f\nV_Centroid[1]=%f\n",average_velocity[0],average_velocity[1]);

thread_loop_c (cell_thread,mixture_domain)
{
begin_c_loop(cell,cell_thread)
{
C_U(cell,cell_thread)=C_U(cell,cell_thread)-average_velocity[0];
C_V(cell,cell_thread)=C_V(cell,cell_thread)-average_velocity[1];
}
end_c_loop(cell,cell_thread)
}

}

開放分享:優質有限元技術文章,助你自學成才

相關標簽搜索:UDF-使用VOF計算泡沫的內部循環 Fluent培訓 Fluent流體培訓 Fluent軟件培訓 fluent技術教程 fluent在線視頻教程 fluent資料下載 fluent分析理論 fluent化學反應 fluent軟件下載 UDF編程代做 Fluent、CFX流體分析 HFSS電磁分析 

編輯
在線報名:
  • 客服在線請直接聯系我們的客服,您也可以通過下面的方式進行在線報名,我們會及時給您回復電話,謝謝!
驗證碼

全國服務熱線

1358-032-9919

廣州公司:
廣州市環市中路306號金鷹大廈3800
電話:13580329919
          135-8032-9919
培訓QQ咨詢:點擊咨詢 點擊咨詢
項目QQ咨詢:點擊咨詢
email:kf@1cae.com




主站蜘蛛池模板: 亚洲经典一区 | 欧美日韩高清不卡一区二区三区 | 国产成人午夜片在线观看 | 国产精品久久久久久久久免费 | 成年女美黄网站大全免费播放 | 毛片免费观看网站 | 欧美一区二区三区国产精品 | 日本va在线 | 在线成人免费观看国产精品 | 欧美成人精品一区二区 | 五月天婷婷在线播放 | 日韩精品免费一区二区 | 91国内精品久久久久免费影院 | 日韩精品一区二区三区视频 | 亚洲人成在线免费观看 | 国产偷国产偷亚洲高清午夜 | 一级毛片特级毛片免费的 | 一区二区不卡免费视频 | 国产亚洲精品xxx | furry涩涩网站 | 在线欧美成人 | 国产4tube在线播放 | 99re6这里只有精品视频 | 欧美成人hd | 粉嫩极品国产 | 在线看片黄 | 国内自拍视频在线观看 | 青青青国产在线手机免费观看 | 九九热在线观看视频 | 免费a级午夜绝情美女图片 免费a级毛片 | 国产日本欧美在线观看乱码 | 日韩在线播放全免费 | 成人黄页| 亚洲成年人在线 | 欧美精品九九99久久在观看 | 欧美成人三级网站 | 一级a毛片免费 | 亚洲免费网站在线观看 | 欧美高清在线视频 | 久久美女网 | 酒色成人网 |