CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Calculate 3D bubble volume in twoPhaseEulerFoam in OF23x

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   April 16, 2015, 10:17
Default Calculate 3D bubble volume in twoPhaseEulerFoam in OF23x
Join Date: Jan 2010
Location: Finland
Posts: 73
Rep Power: 12
Gitesh P is on a distinguished road

I am using twoPhaseEulerFoam in OF23x for simulations of two-phase steam water system.

Is there any suggestions about how to calculate bubble volume in 3D case?

With regards,
Gitesh P is offline   Reply With Quote

Old   November 7, 2015, 15:07
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,958
Blog Entries: 45
Rep Power: 122
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: I'll quote part of a recent PM you sent me:
Originally Posted by Gitesh P
Somehow I need to calculate bubble volume in certain box. To calculate bubble volume in defined box I need to integrate volume fraction and cell volumes there. And I need that information at each iteration. Could you suggest something how I can do that in OpenFOAM?

I have already extracted many data via sampling during run. But for bubble volume data requires also the cell volumes in defined box and I have tried to find it via Google but no any success yet.
You've already got part of the idea correctly. The simplest way of calculating the total volume of bubbles is to rely on the alpha field and to multiply by the volumes of the cells... which you can do by using the integration operation. I know that's explained somewhere on the forum... if I'm not mistaken, this can help: - start reading from post #7 and onwards.

As for calculating only in a particular region, this thread has part of the idea you need: - using topoSet can be used either after the simulation is already done, because you can do several cell/face/point selection operations, as described in the main "topoSetDict" example: - namely in the location given by this command:
echo $FOAM_UTILITIES/mesh/manipulation/topoSet/topoSetDict
As for the other part, namely to do the calculation for a part of the mesh... I can't remember exactly how it's definable, it at all... but I vaguely remember seeing something about it for swak4Foam... I don't know if the library "swakTopoSources" has what you need... have a look at the tutorial mentioned here:
In addition, check in the main page: - for the sections "FAQ", "Further information" and "Examples"
wyldckat is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
twoPhaseEulerFoam for modelling bubble plumes davibarreira OpenFOAM Verification & Validation 0 January 6, 2015 08:24
[ICEM] How to calculate the volume of mesh BrolY ANSYS Meshing & Geometry 5 February 7, 2013 13:08
calculate volume flow from a 2D simulation SimonH. OpenFOAM 0 October 27, 2009 05:39
calculate cell volume, center...? Paul Main CFD Forum 5 June 21, 2003 13:55

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