LeastSquaresGrad: Corrected handling of boundary values in flattening

This commit is contained in:
Henry
2013-02-23 17:26:17 +00:00
parent 14ace46518
commit f75a6fa546
2 changed files with 12 additions and 1 deletions

View File

@ -101,7 +101,11 @@ Foam::fv::LeastSquaresGrad<Type, Stencil>::calcGrad
forAll(vtf.boundaryField(), patchi)
{
const fvPatchField<Type>& ptf = vtf.boundaryField()[patchi];
label nCompact = ptf.patch().start();
label nCompact =
ptf.patch().start()
- mesh.nInternalFaces()
+ mesh.nCells();
forAll(ptf, i)
{

View File

@ -24,6 +24,7 @@ License
\*---------------------------------------------------------------------------*/
#include "LeastSquaresGrad.H"
//#include "centredCFCCellToCellStencilObject.H"
#include "centredCPCCellToCellStencilObject.H"
#include "centredCECCellToCellStencilObject.H"
@ -33,6 +34,12 @@ namespace Foam
{
namespace fv
{
// makeLeastSquaresGradScheme
// (
// faceCellsLeastSquares,
// centredCFCCellToCellStencilObject
// )
makeLeastSquaresGradScheme
(
pointCellsLeastSquares,