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

Problem with mass flux calculation in libsimpleFunctionObjects.so

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 24, 2017, 16:02
Default Problem with mass flux calculation in libsimpleFunctionObjects.so
  #1
Senior Member
 
Join Date: Aug 2014
Location: Germany
Posts: 292
Rep Power: 14
BlnPhoenix is on a distinguished road
Hello,


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

Code:
functions
{

    MassflowInlet
  {
    type                    faceSource;
    functionObjectLibs      ("libfieldFunctionObjects.so");
    enabled                 true;
    outputControl           timeStep;
    outputInterval          1;
    outputControlMode       timeStep;
    log                        true;
    valueOutput          false;
    source                  patch;
    sourceName           outlet;
    operation               sum;
     
fields
                (
      phi.water
      phi.air
                );
  }
}
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?

Thanks!!
BlnPhoenix is offline   Reply With Quote

Old   June 24, 2017, 16:36
Default
  #2
Senior Member
 
Join Date: Aug 2014
Location: Germany
Posts: 292
Rep Power: 14
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

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
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 08:30
DPM mass problem Henrik Ström FLUENT 9 May 20, 2016 12:00
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 03:58
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44


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