CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Total Volume of a phase interFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 6, 2024, 09:40
Default Total Volume of a phase interFoam
  #1
New Member
 
Volkan Atar
Join Date: Oct 2022
Posts: 19
Rep Power: 3
Volkanatar is on a distinguished road
Hello Foamers,

i wanted to ask. How can i write into a file of the total volume of a phase (lets say water) for the specific time steps in the whole domain. Should i use functions in controlDict?

I did something like that but how should i modify it?

functions
{
waterVolume
{
type volFieldValue;
libs (fieldFunctionObjects);

writeControl timeStep;
writeInterval 1;
writeFields false;
writeToFile true;
log true;
regionType all;

operation sum;

fields
(
V()*alpha.water
);
}
};

Thanks in advance
Volkanatar is offline   Reply With Quote

Reply


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
SU2-7.0.1 on ubuntu 18.04 hyunko SU2 Installation 7 March 16, 2020 04:37
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 05:42
On the damBreak4phaseFine cases paean OpenFOAM Running, Solving & CFD 0 November 14, 2008 21:14
compressible two phase flow in CFX4.4 youngan CFX 0 July 1, 2003 23:32
help needed about phase change Yanhu Guo Main CFD Forum 4 January 23, 2001 23:16


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