|
[Sponsors] |
November 15, 2022, 06:59 |
Openfoam fluxes problem
|
#1 |
New Member
Renato
Join Date: Nov 2022
Posts: 6
Rep Power: 4 |
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. |
|
Tags |
continuity, continuity equation, flux correction, velocity correction |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem in transferring flameletFoam to OpenFOAM 5.x | anjul | OpenFOAM Community Contributions | 5 | February 8, 2021 00:32 |
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology | wyldckat | OpenFOAM | 17 | November 10, 2017 16:54 |
[Other] Openfoam for windows 16.02 [CFD support] -problem with paraview | ditmeyer | OpenFOAM Installation | 3 | May 15, 2017 13:04 |
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 21, 2016 12:50 |
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 14, 2016 04:19 |