|
[Sponsors] |
CEL expression for calculating center of gravity (multi-phase flow) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 4, 2016, 09:54 |
CEL expression for calculating center of gravity (multi-phase flow)
|
#1 |
New Member
Qiong-yao Wang
Join Date: Apr 2014
Posts: 18
Rep Power: 12 |
Hello, everyone, I am now doing liquid sloshing in a closer tank with CFX. Multi-phase flow (air phase and water phase) is considered in my case. I want to obtain the time-history of the center of the gravity of liquid (water) during sloshing, using CEL expression. however, I don't know how to write the CEL expression. Could anyone help me? Thanks a lot.
Last edited by hellowqy; October 12, 2016 at 07:52. |
|
October 4, 2016, 12:49 |
|
#2 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
Before you attempt to write the CEL expression, you must have the formulas of what you are trying to compute.
In the case of the center of gravity, what do you think the formulas should be ? You can express them in mathematical terms, or plain English. Several here in the forum will be able help you to translate your formulas into CEL |
|
October 12, 2016, 07:56 |
|
#3 | |
New Member
Qiong-yao Wang
Join Date: Apr 2014
Posts: 18
Rep Power: 12 |
Quote:
Thanks for your replying. I attached the formulation, please check that. |
||
October 12, 2016, 19:17 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
You can get total liquid volume from volumeInt(liquid.volume fraction)@domain.
The sum over the mesh with a volume weighting is volumeInt(x*liquid.volume fraction)@domain I will leave it up to you from there |
|
October 14, 2016, 03:53 |
|
#5 | |
New Member
Qiong-yao Wang
Join Date: Apr 2014
Posts: 18
Rep Power: 12 |
Quote:
Thanks for your help. Well, volumeInt(liquid.volume fraction)@domain can be used to calculate the total liquid volume, while, this is something wrong with volumeInt(x*liquid.volume fraction)@domain. Since, in the fist, 'x' is a disallowed argument, so I used 'xGlobal' to substitute it. In the second, CFX give me a hint that only arguments that consist of a single recognised variable name are supported by the solver. In your expression, there are two variable names, which are 'x' and 'liquid.volume fraction' , respectively. So please help me to how to figure it out. Thanks a lot. |
||
October 15, 2016, 19:50 |
|
#6 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
Define a variable of q = x*liquid.volume fraction. Then volumeInt(q)@domain should work.
|
|
March 29, 2020, 09:55 |
|
#7 |
Member
Shahid Parvez
Join Date: Jul 2009
Location: Pakistan
Posts: 38
Rep Power: 17 |
Dear hellowqy
Did you solve this problem? if yes, can you please share the details? I need it desperately. Can anyone else help? |
|
Tags |
center of gravity |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bubble plume simulation, multi phase flow | Artvandelay | Main CFD Forum | 5 | August 23, 2018 04:52 |
CFX siphon two phase flow - boundary conditions | bolus13 | CFX | 18 | August 25, 2016 19:39 |
Two phase flow in ANSYS CFX | helen | CFX | 13 | June 21, 2016 21:46 |
coupling vof with single phase flow and gravity term | alame005 | Main CFD Forum | 7 | August 6, 2013 12:02 |
compressible two phase flow in CFX4.4 | youngan | CFX | 0 | July 2, 2003 00:32 |