亚洲精品美女久久_91国内精品久久_亚洲九九在线_91精品国产高潮抽搐_国产一区二区三区在线免费观看_91com在线观看

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:[email protected]




主站蜘蛛池模板: 国产精品国产av片国产 | 欧美日韩亚洲综合另类ac | 老太脱裤子让老头玩xxxxx | 中文字幕人成无码免费视频 | 成人毛片网 | 亚洲午夜爱爱香蕉片 | 久久久久亚洲av片无码v | 少妇私密会所按摩到高潮呻吟 | 青青在线视频 | 亚洲成人免费观看 | 国产精品一二区 | 精品福利在线观看 | 亚洲欧美视频一区二区三区 | 欧美黑人性暴力猛交喷水黑人巨大 | 免费国产黄网站在线观看动图 | 无码中文字幕日韩专区视频 | 久久亚洲精品无码观看不卡 | 99re热这里有精品首页视频 | 午夜三级a三级三点在线观看 | 免费黄色一级视频 | 一区二区视频在线 | 欧洲成人全免费视频网站 | 国产福利三区 | 无码人妻少妇久久中文字幕蜜桃 | 国产成人www免费人成看片 | 亚洲欧美自拍视频 | 国产成人精品久久 | 四虎影院大全 | 国产精品国产三级国产an不卡 | 中文字幕亚洲精品 | 国产在线国偷精品产拍 | 亚洲网站www | 亚洲国产精品综合欧美 | 欧美一级在线毛片免费观看 | 熟女精品视频一区二区三区 | www.香蕉网| 亚洲 欧美 动漫 少妇 自拍 | 草逼综合| 色综合亚洲一区二区小说 | 无码国产福利av私拍 | 国产免费观看青青草原网站 |