Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added feature snapping criteria to snappyHexMeshDict and changed decomposition method #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
30 changes: 30 additions & 0 deletions constant/polyMesh/boundary
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2206 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
arch "LSB;label=32;scalar=64";
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

1
(
defaultFaces
{
type empty;
inGroups 1(empty);
nFaces 50400;
startFace 1150800;
}
)

// ************************************************************************* //
Binary file added constant/polyMesh/faces.gz
Binary file not shown.
Binary file added constant/polyMesh/neighbour.gz
Binary file not shown.
Binary file added constant/polyMesh/owner.gz
Binary file not shown.
Binary file added constant/polyMesh/points.gz
Binary file not shown.
Binary file added constant/triSurface/pipe02.curvature.gz
Binary file not shown.
Binary file added constant/triSurface/pipe02.eMesh.gz
Binary file not shown.
18 changes: 9 additions & 9 deletions system/blockMeshDict
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ scale 1;

vertices
(
(-0.33 -0.33 -0.044)
( 0.11 -0.33 -0.044)
( 0.11 0.11 -0.044)
(-0.33 0.11 -0.044)
(-0.33 -0.33 0.044)
( 0.11 -0.33 0.044)
( 0.11 0.11 0.044)
(-0.33 0.11 0.044)
(-0.5 -0.5 -0.05)
( 0.2 -0.5 -0.05)
( 0.2 0.2 -0.05)
(-0.5 0.2 -0.05)
(-0.5 -0.5 0.05)
( 0.2 -0.5 0.05)
( 0.2 0.2 0.05)
(-0.5 0.2 0.05)
);

blocks
(
hex (0 1 2 3 4 5 6 7) (100 100 20) simpleGrading (1 1 1)
hex (0 1 2 3 4 5 6 7) (140 140 20) simpleGrading (1 1 1)
);

edges
Expand Down
2 changes: 1 addition & 1 deletion system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ purgeWrite 0;

writeFormat ascii;

writePrecision 16;
writePrecision 8;

writeCompression true;

Expand Down
2 changes: 1 addition & 1 deletion system/decomposeParDict
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ FoamFile

numberOfSubdomains 4;

method hierarchical;
method scotch;

coeffs
{
Expand Down
16 changes: 16 additions & 0 deletions system/snappyHexMeshDict
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,22 @@ snapControls
nRelaxIter 5;
nFeatureSnapIter 3;
strictRegionSnap true;

// Feature snapping - copied from template dict generated by foamGetDict snappyHexMeshDict
// Number of feature edge snapping iterations.
// Leave out altogether to disable.
nFeatureSnapIter 10;

// Detect (geometric only) features by sampling the surface
// (default=false).
implicitFeatureSnap false;

// Use castellatedMeshControls::features (default = true)
explicitFeatureSnap true;

// Detect features between multiple surfaces
// (only for explicitFeatureSnap, default = false)
multiRegionFeatureSnap false;
}

addLayersControls
Expand Down
Loading