To handle the additional optional specification for the closeness calculation
these settings are now is a sub-dictionary of surfaceFeaturesDict, e.g.
closeness
{
// Output the closeness of surface elements to other surface elements.
faceCloseness no;
// Output the closeness of surface points to other surface elements.
pointCloseness yes;
// Optional maximum angle between opposite points considered close
internalAngleTolerance 80;
externalAngleTolerance 80;
}
60 lines
1.5 KiB
C++
60 lines
1.5 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
object surfaceFeaturesDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
pipe
|
|
{
|
|
surfaces
|
|
(
|
|
"pipe.obj"
|
|
);
|
|
|
|
// Mark edges whose adjacent surface normals are at an angle less
|
|
// than includedAngle as features
|
|
// - 0 : selects no edges
|
|
// - 180: selects all edges
|
|
includedAngle 150;
|
|
|
|
// Do not mark region edges
|
|
geometricTestOnly yes;
|
|
|
|
writeObj yes;
|
|
verboseObj yes;
|
|
}
|
|
|
|
pipeWall
|
|
{
|
|
surfaces
|
|
(
|
|
"pipeWall.obj"
|
|
);
|
|
|
|
// Mark edges whose adjacent surface normals are at an angle less
|
|
// than includedAngle as features
|
|
// - 0 : selects no edges
|
|
// - 180: selects all edges
|
|
includedAngle 150;
|
|
|
|
closeness
|
|
{
|
|
// Output the closeness of surface points to other surface elements.
|
|
pointCloseness yes;
|
|
}
|
|
|
|
writeVTK yes;
|
|
}
|
|
|
|
// ************************************************************************* //
|