Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
a9a592df
Commit
a9a592df
authored
Jan 07, 2013
by
andy
Browse files
ENH: Updated patch/wall distance calculation
parent
004b5405
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/finiteVolume/fvMesh/wallDist/patchDist.C
View file @
a9a592df
...
...
@@ -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
());
...
...
src/finiteVolume/fvMesh/wallDist/patchDist.H
View file @
a9a592df
...
...
@@ -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
{
...
...
src/finiteVolume/fvMesh/wallDist/wallDist.C
View file @
a9a592df
...
...
@@ -35,7 +35,12 @@ Foam::wallDist::wallDist
const
bool
correctWalls
)
:
patchDist
(
mesh
,
getPatchIDs
<
wallPolyPatch
>
(),
correctWalls
)
patchDist
(
mesh
,
mesh
.
boundaryMesh
().
findPatchIDs
<
wallPolyPatch
>
(),
correctWalls
)
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment