reactingEulerFoam::wallDampingModel: Corrected dampingf() function to include zeroInNearWallCells option
This commit is contained in:
@ -82,18 +82,9 @@ Foam::wallDampingModel::damping() const
|
||||
|
||||
if (zeroInNearWallCells_)
|
||||
{
|
||||
tmp<volScalarField> tlimiterPrime
|
||||
(
|
||||
volScalarField::New
|
||||
(
|
||||
tlimiter->name(),
|
||||
tlimiter
|
||||
)
|
||||
);
|
||||
volScalarField& limiter = tlimiter.ref();
|
||||
|
||||
volScalarField& limiterPrime = tlimiterPrime.ref();
|
||||
|
||||
const fvBoundaryMesh& bMesh = limiterPrime.mesh().boundary();
|
||||
const fvBoundaryMesh& bMesh = limiter.mesh().boundary();
|
||||
|
||||
forAll(bMesh, patchi)
|
||||
{
|
||||
@ -103,12 +94,12 @@ Foam::wallDampingModel::damping() const
|
||||
|
||||
forAll(faceCells, facei)
|
||||
{
|
||||
limiterPrime[faceCells[facei]] = 0;
|
||||
limiter[faceCells[facei]] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return tlimiterPrime;
|
||||
return tlimiter;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -120,7 +111,7 @@ Foam::wallDampingModel::damping() const
|
||||
Foam::tmp<Foam::surfaceScalarField>
|
||||
Foam::wallDampingModel::dampingf() const
|
||||
{
|
||||
return fvc::interpolate(limiter());
|
||||
return fvc::interpolate(damping());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2014-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2014-2020 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -73,10 +73,10 @@ public:
|
||||
|
||||
// Member Functions
|
||||
|
||||
// Return the wall distance, creating and storing it if necessary
|
||||
//- Return the wall distance, creating and storing it if necessary
|
||||
const volScalarField& yWall() const;
|
||||
|
||||
// Return the wall normal, creating and storing it if necessary
|
||||
//- Return the wall normal, creating and storing it if necessary
|
||||
const volVectorField& nWall() const;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user