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

Openfoam fluxes problem

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

LinkBack Thread Tools Search this Thread Display Modes
Old   November 15, 2022, 05:59
Exclamation Openfoam fluxes problem
New Member
Join Date: Nov 2022
Posts: 3
Rep Power: 2
RenMon is on a distinguished road
Hi everyone!,

I stepped into something that isn't clear at all and I hope that you can clarify some passages. I am solving an incompressible mrf problem with the simple alghoritm. Once the simulation is ended I wrote a postprocess script that evaluate the total pressure and the massflow at the inlet and outlet.
Here the problem: if I evaluate the flowrate using fvc::flux(U), where U is the velocity field given by openfoam, the continuity isn't respected and I have an higher flowrate at the outlet than at the inlet (70% higher!). Instead if I evaluate the flowrate by summing the phi field given by openfoam over the patch, the continuity is respected and the flowrates at inlet and outlet are equals.

I know that in the simple alghoritm I have a correction of the flux and then of the velocity, but I can't understand how it is possible that the results are different! The fvc::flux(U) must give the same field of phi and in general must satisfy the continuity equation, otherwise shoudn't be correct... Am I missing something? I tried also to not use fvc::flux() but to use interpolate(U) & mesh.Sf() but the results are the same...

Ps: My outlet boundary conditions are inletoutlet for velocity and fixed value for pressure. My inlet boundary conditions are fixed value for velocity and zeroGradient for pressure.
RenMon is offline   Reply With Quote


continuity, continuity equation, flux correction, velocity correction

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in transferring flameletFoam to OpenFOAM 5.x anjul OpenFOAM Community Contributions 5 February 7, 2021 23:32
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 15:54
[Other] Openfoam for windows 16.02 [CFD support] -problem with paraview ditmeyer OpenFOAM Installation 3 May 15, 2017 12:04
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin OpenFOAM Announcements from Other Sources 0 September 21, 2016 11:50
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 OpenFOAM Announcements from Other Sources 0 September 14, 2016 03:19

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