ENH: Updated patch/wall distance calculation

This commit is contained in:
andy
2013-01-07 11:29:22 +00:00
parent 004b540522
commit a9a592df55
3 changed files with 8 additions and 6 deletions

View File

@ -48,7 +48,6 @@ Foam::patchDist::patchDist
mesh,
dimensionedScalar("y", dimLength, GREAT)
),
cellDistFuncs(mesh),
patchIDs_(patchIDs),
correctWalls_(correctWalls),
nUnset_(0)
@ -68,7 +67,7 @@ Foam::patchDist::~patchDist()
void Foam::patchDist::correct()
{
// Calculate distance starting from patch faces
patchWave wave(cellDistFuncs::mesh(), patchIDs_, correctWalls_);
patchWave wave(mesh(), patchIDs_, correctWalls_);
// Transfer cell values from wave into *this
transfer(wave.distance());

View File

@ -62,7 +62,6 @@ SourceFiles
#define patchDist_H
#include "volFields.H"
#include "cellDistFuncs.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -77,8 +76,7 @@ class fvMesh;
class patchDist
:
public volScalarField,
public cellDistFuncs
public volScalarField
{

View File

@ -35,7 +35,12 @@ Foam::wallDist::wallDist
const bool correctWalls
)
:
patchDist(mesh, getPatchIDs<wallPolyPatch>(), correctWalls)
patchDist
(
mesh,
mesh.boundaryMesh().findPatchIDs<wallPolyPatch>(),
correctWalls
)
{}