Skip to content
Snippets Groups Projects
Commit b476b56a authored by mattijs's avatar mattijs
Browse files

BUG: meanVelictyForce: missing correctBoundaryConditions

parent 4910dbc9
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -178,6 +178,8 @@ void Foam::fv::meanVelocityForce::correct(volVectorField& U) ...@@ -178,6 +178,8 @@ void Foam::fv::meanVelocityForce::correct(volVectorField& U)
U[celli] += flowDir_*rAU[celli]*dGradP_; U[celli] += flowDir_*rAU[celli]*dGradP_;
} }
U.correctBoundaryConditions();
scalar gradP = gradP0_ + dGradP_; scalar gradP = gradP0_ + dGradP_;
Info<< "Pressure gradient source: uncorrected Ubar = " << magUbarAve Info<< "Pressure gradient source: uncorrected Ubar = " << magUbarAve
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment