mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
tutorials: Updated to use surfaceFeatures rather than the deprecated surfaceFeatureExtract
This commit is contained in:
@ -73,7 +73,7 @@ runApplication blockMesh -region backgroundMeshDecomposition
|
||||
runApplication -s backgroundMeshDecomposition \
|
||||
decomposePar -region backgroundMeshDecomposition
|
||||
|
||||
runApplication surfaceFeatureExtract
|
||||
runApplication surfaceFeatures
|
||||
|
||||
runParallel foamyHexMesh
|
||||
|
||||
|
||||
@ -1,144 +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 surfaceFeatureExtractDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
shaftRotating.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
includedAngle 100;
|
||||
}
|
||||
|
||||
subsetFeatures
|
||||
{
|
||||
// Remove the top feature
|
||||
insideBox (-0.1 -0.1 -0.1)(0.1 0.1 0.1);
|
||||
}
|
||||
|
||||
// Write options
|
||||
|
||||
writeObj yes;
|
||||
}
|
||||
|
||||
|
||||
vessel.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
subsetFeatures
|
||||
{
|
||||
// Keep nonManifold edges (edges with >2 connected faces where
|
||||
// the faces form more than two different normal planes)
|
||||
nonManifoldEdges no;
|
||||
|
||||
// Keep open edges (edges with 1 connected face)
|
||||
openEdges no;
|
||||
}
|
||||
|
||||
// Write options
|
||||
|
||||
writeObj no;
|
||||
}
|
||||
|
||||
|
||||
spargerInlet.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
// Write options
|
||||
|
||||
writeObj no;
|
||||
}
|
||||
|
||||
|
||||
stirrer.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
// Write options
|
||||
|
||||
writeObj no;
|
||||
}
|
||||
|
||||
|
||||
stirrer_baffles.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
baffles (stirrer);
|
||||
|
||||
// Write options
|
||||
|
||||
writeObj no;
|
||||
}
|
||||
|
||||
|
||||
rotating.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
baffles (MRF);
|
||||
|
||||
// Write options
|
||||
|
||||
writeObj yes;
|
||||
}
|
||||
|
||||
|
||||
baffles.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
baffles (baffles);
|
||||
|
||||
// Write options
|
||||
|
||||
writeObj no;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,85 @@
|
||||
/*--------------------------------*- 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 surfaceFeaturesDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
shaftRotating
|
||||
{
|
||||
surfaces ("shaftRotating.stl");
|
||||
|
||||
includedAngle 100;
|
||||
|
||||
subsetFeatures
|
||||
{
|
||||
// Remove the top feature
|
||||
insideBox (-0.1 -0.1 -0.1)(0.1 0.1 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
vessel
|
||||
{
|
||||
surfaces ("vessel.stl");
|
||||
|
||||
includedAngle 120;
|
||||
|
||||
subsetFeatures
|
||||
{
|
||||
// Keep nonManifold edges (edges with >2 connected faces where
|
||||
// the faces form more than two different normal planes)
|
||||
nonManifoldEdges no;
|
||||
|
||||
// Keep open edges (edges with 1 connected face)
|
||||
openEdges no;
|
||||
}
|
||||
}
|
||||
|
||||
spargerInletStirrer
|
||||
{
|
||||
surfaces
|
||||
(
|
||||
"spargerInlet.stl"
|
||||
"stirrer.stl"
|
||||
);
|
||||
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
stirrerBaffles
|
||||
{
|
||||
surfaces ("stirrer_baffles.stl");
|
||||
|
||||
includedAngle 120;
|
||||
|
||||
baffles (stirrer);
|
||||
}
|
||||
|
||||
rotating
|
||||
{
|
||||
surfaces ("rotating.stl");
|
||||
|
||||
includedAngle 120;
|
||||
|
||||
baffles (MRF);
|
||||
}
|
||||
|
||||
baffles
|
||||
{
|
||||
surfaces ("baffles.stl");
|
||||
|
||||
includedAngle 120;
|
||||
|
||||
baffles (baffles);
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user