|
[Sponsors] |
How to compute total liquid volume of the whole domain |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 21, 2010, 16:13 |
How to compute total liquid volume of the whole domain
|
#1 |
Member
angel
Join Date: May 2009
Location: Spain
Posts: 46
Rep Power: 17 |
I finished an interDyMFoam run. The case has variations of liquid in the domain, i would like to discover it but at the same time, I would like to compute the total liquid volume at each time step (post-porcessing). Can someone suggest the way(s) to do this?
Where i have to put the code from http://www.cfd-online.com/Forums/ope...le-domain.html Info << " Liquid: " << sum(mesh.V()*gamma) << endl; Thanks! |
|
April 22, 2010, 04:05 |
|
#2 |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
You can put the code into the main function, close to the end of the loop like before the solver writes the time information.
After that you have to recompile the solver.
__________________
~roman |
|
April 22, 2010, 16:22 |
|
#3 |
Member
angel
Join Date: May 2009
Location: Spain
Posts: 46
Rep Power: 17 |
Thanks a lot,
I have recompile interDyMFoam, and now i can see the total volume of fluid inside my domain as: Time = 0.05 Liquid: sum((V*alpha1)) [0 3 0 0 0 0 0] 0.033936 Time = 9.08938 Liquid: sum((V*alpha1)) [0 3 0 0 0 0 0] 0.0338348 Unfortunately, i still have another problem. I have some fluid, but my simulation is a Tank (wall) excite by a sinusoidal lateral excitation using InterDyMFoam. Anybody know what could be the reason? Any ideas? Thanks, |
|
April 23, 2010, 03:16 |
code correction
|
#4 | |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
Quote:
Code:
Info << " Liquid: " << sum(mesh.V()*gamma).value() << endl;
__________________
~roman |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error message: Insufficient Catalogue Size | Paresh Jain | CFX | 33 | August 16, 2024 06:09 |
Calculation of the Governing Equations | Mihail | CFX | 7 | September 7, 2014 07:27 |
interDyMFoam - change in volume fraction | gopala | OpenFOAM Running, Solving & CFD | 0 | April 27, 2009 11:46 |
How to apply negtive pressure to outlet | bioman66 | CFX | 5 | June 3, 2006 02:40 |
New topic on same subject - Flow around race car | Tudor Miron | CFX | 15 | April 2, 2004 07:18 |