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

ENH: Updated patch/wall distance calculation

parent 004b5405
Branches
Tags
No related merge requests found
...@@ -48,7 +48,6 @@ Foam::patchDist::patchDist ...@@ -48,7 +48,6 @@ Foam::patchDist::patchDist
mesh, mesh,
dimensionedScalar("y", dimLength, GREAT) dimensionedScalar("y", dimLength, GREAT)
), ),
cellDistFuncs(mesh),
patchIDs_(patchIDs), patchIDs_(patchIDs),
correctWalls_(correctWalls), correctWalls_(correctWalls),
nUnset_(0) nUnset_(0)
...@@ -68,7 +67,7 @@ Foam::patchDist::~patchDist() ...@@ -68,7 +67,7 @@ Foam::patchDist::~patchDist()
void Foam::patchDist::correct() void Foam::patchDist::correct()
{ {
// Calculate distance starting from patch faces // 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 cell values from wave into *this
transfer(wave.distance()); transfer(wave.distance());
......
...@@ -62,7 +62,6 @@ SourceFiles ...@@ -62,7 +62,6 @@ SourceFiles
#define patchDist_H #define patchDist_H
#include "volFields.H" #include "volFields.H"
#include "cellDistFuncs.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...@@ -77,8 +76,7 @@ class fvMesh; ...@@ -77,8 +76,7 @@ class fvMesh;
class patchDist class patchDist
: :
public volScalarField, public volScalarField
public cellDistFuncs
{ {
......
...@@ -35,7 +35,12 @@ Foam::wallDist::wallDist ...@@ -35,7 +35,12 @@ Foam::wallDist::wallDist
const bool correctWalls 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