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, 10:40
Default Total Volume of a phase interFoam
  #1
New Member
 
Volkan Atar
Join Date: Oct 2022
Posts: 23
Rep Power: 4
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 05:37
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 06:42
On the damBreak4phaseFine cases paean OpenFOAM Running, Solving & CFD 0 November 14, 2008 22:14
compressible two phase flow in CFX4.4 youngan CFX 0 July 2, 2003 00:32
help needed about phase change Yanhu Guo Main CFD Forum 4 January 24, 2001 00:16


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