|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Ysmn
Join Date: Mar 2018
Location: Auburn,AL
Posts: 34
Rep Power: 8 ![]() |
Hello,
Is anyone know how can I find the total volume of air in the the domain for an exact time after simulation finished? I mean when simulation finished, I would like to see, for example, how much air stays in the domain at the time 15 sec. Accually how air volume changes in time. I am using OpenFOAM 4.1 and water and air are the fluids in the domain. Thank you, Yasemin |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Taher Chegini
Join Date: Nov 2014
Location: Houston, Texas
Posts: 125
Rep Power: 12 ![]() |
Just add this block to controlDict:
Code:
functions { waterVolume { type volFieldValue; libs ("libfieldFunctionObjects.so"); log true; writeControl writeTime; writeFields true; regionType all; operation volIntegrate; fields ( alpha.water ); } } I didn't test it myself but it should work. You can find more info here. |
|
![]() |
![]() |
![]() |
![]() |
#3 | ||
Member
Ysmn
Join Date: Mar 2018
Location: Auburn,AL
Posts: 34
Rep Power: 8 ![]() |
Hi Taataa,
Thank you so much for your reply. I have added it to the controlDict but it gives error as is seen below. Do you have any idea about it? Quote:
Quote:
Please ignore the last part. Thank you for any help in advance! Yasemin |
|||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Taher Chegini
Join Date: Nov 2014
Location: Houston, Texas
Posts: 125
Rep Power: 12 ![]() |
Try changing regionType to cellZone and name to all.
Code:
functions { waterVolume { type volFieldValue; libs ("libfieldFunctionObjects.so"); log true; writeControl writeTime; writeFields true; regionType cellZone; name all; operation volIntegrate; fields ( alpha.water ); } } |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] blockMesh error - Negative Volume Block | adoledin | OpenFOAM Meshing & Mesh Conversion | 2 | June 22, 2016 10:44 |
Rotating Disc in a Volume of Air | alcesalces | FLOW-3D | 5 | August 28, 2009 17:04 |
Rotating Disc in a Volume of Air | alcesalces | Siemens | 0 | August 24, 2009 13:59 |
*extract volume of air in VOF model | Adriano | FLUENT | 0 | April 13, 2007 03:57 |
How to apply negtive pressure to outlet | bioman66 | CFX | 5 | June 3, 2006 01:40 |