mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated patch/wall distance calculation
This commit is contained in:
@ -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
|
||||
)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user