CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

CEL expression for calculating center of gravity (multi-phase flow)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 4, 2016, 09:54
Default 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
hellowqy is on a distinguished road
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.
Attached Images
File Type: png 222555.png (21.9 KB, 39 views)

Last edited by hellowqy; October 12, 2016 at 07:52.
hellowqy is offline   Reply With Quote

Old   October 4, 2016, 12:49
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
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
Opaque is offline   Reply With Quote

Old   October 12, 2016, 07:56
Default
  #3
New Member
 
Qiong-yao Wang
Join Date: Apr 2014
Posts: 18
Rep Power: 12
hellowqy is on a distinguished road
Quote:
Originally Posted by Opaque View Post
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
Hello, Opaque.
Thanks for your replying. I attached the formulation, please check that.
Attached Images
File Type: png 222555.png (21.9 KB, 26 views)
hellowqy is offline   Reply With Quote

Old   October 12, 2016, 19:17
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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
ghorrocks is offline   Reply With Quote

Old   October 14, 2016, 03:53
Default
  #5
New Member
 
Qiong-yao Wang
Join Date: Apr 2014
Posts: 18
Rep Power: 12
hellowqy is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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
Hi, ghorrocks.
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.
hellowqy is offline   Reply With Quote

Old   October 15, 2016, 19:50
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Define a variable of q = x*liquid.volume fraction. Then volumeInt(q)@domain should work.
ghorrocks is offline   Reply With Quote

Old   March 29, 2020, 09:55
Default
  #7
Member
 
Shahid Parvez
Join Date: Jul 2009
Location: Pakistan
Posts: 38
Rep Power: 17
shahpar73 is on a distinguished road
Dear hellowqy
Did you solve this problem? if yes, can you please share the details? I need it desperately.
Can anyone else help?
shahpar73 is offline   Reply With Quote

Reply

Tags
center of gravity


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 20:20.