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

simpleFoam serious mass balance issue

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   November 6, 2011, 04:50
Exclamation simpleFoam serious mass balance issue
  #1
Senior Member
 
Phoevos
Join Date: Mar 2009
Posts: 104
Rep Power: 17
fivos is on a distinguished road
Hi to everyone,

I am facing a strange issue with simpleFoam, where the solver calculates a large mass unbalance through inlets and outlet. I would be gratefull if anyone could take a look.

The geometry is shown in geometry2.png and geometry3.png. The geometry of the case consists of two inlets, at the back of this tank, and one outlet at the front (painted with black). The upper part of the tank is considered as a free-slip wall (blue), whereas all the rest walls are no-slip walls. In geometry3.png is a slice of the geometry at the symmetry plane, showing a pipe with yellow (no-slip wall too).

A view of the mesh is visible in mesh.png. The mesh is a hybrid mesh of hexahedra, wedges, prisms, tets, etc created in gambit and imported with fluent3DMeshToFoam. The mesh passes the checkMesh without any errors (no wrong oriented faces, negative volumes). Please see the checkMesh log in run.tar.gz. The mesh is scaled correctly (it was generated in meters so there is no need for scaling).

I have set up the case for water, using RNGkEpsilon model, fixed velocities at inlets and pressure at outlet (see run.tar.gz for detailed set up at the beginning of the run). SimpleFoam runs without any divergence, or bounding for k/e. Residuals are going down as you can see from res.png.

However the volume flow rate (and consequently mass flux) is much larger than the flow rate at inlets. The flow rate from both inlets should be ~2m^3/sec. This would result to a velocity at outlet ~4m/s. But I get velocities at outlet that increase as the solver runs; at 200 iteration velocity at outlet is 13.9m/s (vol. flow rate 6.86m^3s) and at 1000 iteration velocity is 39m/s (vol. flow rate 20m^3/s) !!!

I have tightened convergence tolerances at all solvers (see in run.tar.gz -> system -> fvsolution), added non-orthogonal correctors, but nothing, the same issue persists.

Does anyone have a single clue what might be happening? Did I do something wrong, and due to my frustration I can' t see it?

Any ideas are welcome. Thanks in advance.


PS. I have tried the same mesh, for the same boundary conditions using Fluent, CFX and star ccm+. All programs gave reasonable results, so I doubt this being a mesh problem.
Attached Images
File Type: png res.png (22.1 KB, 85 views)
File Type: jpg mesh.jpg (72.2 KB, 72 views)
File Type: jpg geometry2.jpg (14.4 KB, 65 views)
File Type: jpg geometry3.jpg (16.0 KB, 65 views)
Attached Files
File Type: gz run.tar.gz (82.7 KB, 26 views)
fivos is offline   Reply With Quote

 

Tags
mass balance error, simplefoam


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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
OpenFoam vs CFX5 mass balance in OpenFoam tangd OpenFOAM Running, Solving & CFD 33 May 23, 2010 16:36
particle, parcel and mass flow rate balance flybird FLUENT 0 May 24, 2007 10:44
DEFINE_SOURCE, injection in one Cell, mass balance Vitali FLUENT 2 April 27, 2007 16:39
mass balance of single species antonietta FLUENT 0 November 11, 2005 11:11


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