mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
surfaceFeatures: New version of surfaceFeatureExtract with simplied controls
Surfaces are specified as a list and the controls applied to each, e.g. in the
rhoPimpleFoam/RAS/annularThermalMixer tutorial:
surfaces
(
"AMI.obj"
"shaft.obj"
"wall.obj"
"statorBlades.obj"
"rotorBlades.obj"
);
includedAngle 150; // Identifes a feature when angle
// between faces < includedAngle
trimFeatures
{
minElem 10; // minimum edges within a feature
}
writeObj yes; // writes out _edgeMesh.obj files to view features
If different controls are required for different surfaces multiple
sub-dictionaries can be used:
AMIsurfaces
{
surfaces
(
"AMI.obj"
);
includedAngle 140; // Identifes a feature when angle
// between faces < includedAngle
trimFeatures
{
minElem 8; // minimum edges within a feature
}
writeObj yes; // writes out _edgeMesh.obj files to view features
}
otherSurfaces
{
surfaces
(
"shaft.obj"
"wall.obj"
"statorBlades.obj"
"rotorBlades.obj"
);
includedAngle 150; // Identifes a feature when angle
// between faces < includedAngle
trimFeatures
{
minElem 10; // minimum edges within a feature
}
writeObj yes; // writes out _edgeMesh.obj files to view features
}
Existing feature edge files corresponding to particular surfaces can be specified using
the "files" association list:
surfaces
(
"AMI.obj"
"shaft.obj"
"wall.obj"
"statorBlades.obj"
"rotorBlades.obj"
);
files
(
"AMI.obj" "constant/triSurface/AMI.obj.eMesh";
);
includedAngle 150; // Identifes a feature when angle
// between faces < includedAngle
trimFeatures
{
minElem 10; // minimum edges within a feature
}
writeObj yes; // writes out _edgeMesh.obj files to view features
This commit is contained in:
@ -1,31 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object surfaceFeatureExtractDictDefaults;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
includedAngle 150; // Identifes a feature when angle
|
||||
} // between faces < includedAngle
|
||||
|
||||
trimFeatures
|
||||
{
|
||||
minElem 10; // minimum edges within a feature
|
||||
}
|
||||
|
||||
writeObj yes; // writes out .obj files to view features
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -10,33 +10,26 @@ FoamFile
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object surfaceFeatureExtractDict;
|
||||
object surfaceFeaturesDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
AMI.obj
|
||||
surfaces
|
||||
(
|
||||
"AMI.obj"
|
||||
"shaft.obj"
|
||||
"wall.obj"
|
||||
"statorBlades.obj"
|
||||
"rotorBlades.obj"
|
||||
);
|
||||
|
||||
includedAngle 150; // Identifes a feature when angle
|
||||
// between faces < includedAngle
|
||||
trimFeatures
|
||||
{
|
||||
#include "surfaceFeatureExtractDictDefaults"
|
||||
minElem 10; // minimum edges within a feature
|
||||
}
|
||||
|
||||
shaft.obj
|
||||
{
|
||||
#include "surfaceFeatureExtractDictDefaults"
|
||||
}
|
||||
|
||||
wall.obj
|
||||
{
|
||||
#include "surfaceFeatureExtractDictDefaults"
|
||||
}
|
||||
|
||||
statorBlades.obj
|
||||
{
|
||||
#include "surfaceFeatureExtractDictDefaults"
|
||||
}
|
||||
|
||||
rotorBlades.obj
|
||||
{
|
||||
#include "surfaceFeatureExtractDictDefaults"
|
||||
}
|
||||
writeObj yes; // writes out _edgeMesh.obj files to view features
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user