Skip to content
Snippets Groups Projects
Commit a9a592df authored by andy's avatar andy
Browse files

ENH: Updated patch/wall distance calculation

parent 004b5405
No related merge requests found
......@@ -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());
......
......@@ -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
{
......
......@@ -35,7 +35,12 @@ Foam::wallDist::wallDist
const bool correctWalls
)
:
patchDist(mesh, getPatchIDs<wallPolyPatch>(), correctWalls)
patchDist
(
mesh,
mesh.boundaryMesh().findPatchIDs<wallPolyPatch>(),
correctWalls
)
{}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment