点击CFD之仿真区 关注公众 号交流学习
概述
在多相流模拟中,特别是在液箱晃动等VOF模拟中,随着界面的移动或变化,可能需要提取或监测随时间变化的液相重心。这可以使用自定义字段函数来完成。通过一个例子演示这种方法。注:此过程可以扩展到任何其他多相模型,但通常推荐用于突变的界面捕获模拟。
液相重心表达式
通过自定义字段函数Custom Field Functions定义
Monitor (Report Definitions)设置
1.设置Volume Report Definitions,分别定义cg-x、cg-y和cg-z的Sum,分别命名为cg-x-numerator,cg-y-numerator和cg-z-numerator。
2.建立液体质量的Volume Report Definition,命名为liq-mass。
3.建立Expression Report Definitions,每个坐标一个,计算cg-x-numerator与liq-mass的比值。
简单油箱晃动案例:
计算出某时刻重心值,将该值定义为point surface,后处理显示其位置。
Anywhere you are, I am near
Anywhere you go, I'll be there
Anytime you whisper my name, you'll see
How every single promise I keep
Cause what kind of guy would I be
If I was to leave when you need me most
What are words
If you really don't mean them
When you say them
What are words
If they're only for good times
Then they done
When it's love
Yeah, you say them out-loud those words
They never go away
They live on, even when we're gone
And I know an angel was sent just for me
And I know I'm meant to be where I am
And I'm gonna be standing right beside her tonight
And I'm gonna be by your side
I would never leave when she needs me most
What are words
If you really don't mean them
When you say them
What are words
If they're only for good times
Then they done
When it's love
Yeah, you say them out-loud those words
They never go away
They live on, even when we're gone
Anywhere you are, I am near
Anywhere you go, I'll be there
And I'm gonna be here forever more
Every single promise I keep
Cause what kind of guy would I be
If I was to leave when you need me most
I'm forever keeping my angel close