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

Problem with mass flux calculation in

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

LinkBack Thread Tools Display Modes
Old   June 24, 2017, 15:02
Default Problem with mass flux calculation in
Senior Member
Join Date: Aug 2014
Location: N/A
Posts: 144
Rep Power: 4
BlnPhoenix is on a distinguished road

i want to check the mass balance for multiphase cases while running the solver multiphaseEulerFoam. Ideally i want to create an output that calculates the mass balance for all phases e.g. for water and a secondary air phase. So far the closest i got to that is using


    type                    faceSource;
    functionObjectLibs      ("");
    enabled                 true;
    outputControl           timeStep;
    outputInterval          1;
    outputControlMode       timeStep;
    log                        true;
    valueOutput          false;
    source                  patch;
    sourceName           outlet;
    operation               sum;
to ControlDict and calculating the imbalance by hand. The issue here is that the mass flux on outlet is incorrect. In an early time step there is no secondary phase on the outlet, so therefore the flux must be ZERO but it isn't. It's pretty much the inlet divided by two. I have in total one inlet and two outlets. Getting a NON zero flux for the secondary phase doesn't make sense to me, there is not yet air on the outlet, why does OpenFoam have flux there? The alpha values area averaged correctly on the outlets. What am i missing here?

Also, is there a possibilty to check the overall mass balance with a function object or do i need to calcualte it by hand for each time step?

BlnPhoenix is offline   Reply With Quote

Old   June 24, 2017, 15:36
Senior Member
Join Date: Aug 2014
Location: N/A
Posts: 144
Rep Power: 4
BlnPhoenix is on a distinguished road
Ok, i found that phi in incompressible solvers is m^3/s and so i guess, to get the mass flux i have to calculate by hand with average alpha on outlet face and the density of the phase.
BlnPhoenix is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
DPM mass problem Henrik Ström FLUENT 9 May 20, 2016 11:00
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 10 June 16, 2015 15:48
Waterwheel shaped turbine inside a pipe simulation problem mshahed91 CFX 3 January 10, 2015 12:19
UDS Flux Function Problem sunbird04 FLUENT 6 April 28, 2014 02:58
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44

All times are GMT -4. The time now is 13:16.