mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: snappyHexMesh: directional smoothing. See #1031
This commit is contained in:
@ -4,22 +4,13 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
# Serial
|
||||
runApplication snappyHexMesh -overwrite
|
||||
runApplication $(getApplication)
|
||||
## Serial
|
||||
#runApplication snappyHexMesh -overwrite
|
||||
#runApplication $(getApplication)
|
||||
|
||||
## Parallel
|
||||
#runApplication decomposePar -fileHandler collated
|
||||
#runParallel snappyHexMesh -overwrite -fileHandler collated
|
||||
## Remove any include files from the field dictionaries
|
||||
#( mkdir -p processors/0 && \
|
||||
# cd 0 && \
|
||||
# for f in *; do [ -f "$f" ] && \
|
||||
# foamDictionary "$f" > "../processors/0/$f"; done \
|
||||
#)
|
||||
#
|
||||
#runParallel $(getApplication) -fileHandler collated
|
||||
#runApplication reconstructParMesh -constant -mergeTol 1e-6
|
||||
#runApplication reconstructPar
|
||||
runApplication decomposePar -fileHandler collated
|
||||
runParallel snappyHexMesh -overwrite -fileHandler collated
|
||||
runApplication reconstructParMesh -constant -fileHandler collated -mergeTol 1e-6
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -18,13 +18,4 @@ numberOfSubdomains 2;
|
||||
|
||||
method scotch;
|
||||
|
||||
//coeffs
|
||||
//{
|
||||
// n (3 2 1);
|
||||
// delta 0.001;
|
||||
// order xyz;
|
||||
// dataFile "cellDecomposition";
|
||||
//}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -124,10 +124,10 @@ castellatedMeshControls
|
||||
// actually be a lot less.
|
||||
maxGlobalCells 2000000;
|
||||
|
||||
// The surface refinement loop might spend lots of iterations refining just a
|
||||
// few cells. This setting will cause refinement to stop if <= minimumRefine
|
||||
// are selected for refinement. Note: it will at least do one iteration
|
||||
// (unless the number of cells to refine is 0)
|
||||
// The surface refinement loop might spend lots of iterations refining
|
||||
// just a few cells. This setting will cause refinement to stop if <=
|
||||
// minimumRefineare selected for refinement. Note: it will at least do one
|
||||
// iteration (unless the number of cells to refine is 0)
|
||||
minRefinementCells 100;
|
||||
|
||||
// Number of buffer layers between different levels.
|
||||
@ -229,10 +229,10 @@ castellatedMeshControls
|
||||
// (after all other refinement). Directional refinement
|
||||
// for all cells according to 'mode' ('inside' or 'outside';
|
||||
// 'distance' not supported) and within certain range. E.g.
|
||||
// - for all cells with level 0-100
|
||||
// - do two splits in z direction. The resulting mesh is
|
||||
// - for all cells with level 0-1
|
||||
// - do one split in z direction. The resulting mesh is
|
||||
// no longer compatible with e.g. dynamic refinement/unrefinement.
|
||||
levelIncrement (0 0 (0 0 1));
|
||||
levelIncrement (0 1 (0 0 1));
|
||||
}
|
||||
dirRefineBox2
|
||||
{
|
||||
@ -245,7 +245,7 @@ castellatedMeshControls
|
||||
// (after all other refinement). Directional refinement
|
||||
// for all cells according to 'mode' ('inside' or 'outside';
|
||||
// 'distance' not supported) and within certain range. E.g.
|
||||
// - for all cells with level 0-100
|
||||
// - for all cells with level 0-1
|
||||
// - do two splits in z direction. The resulting mesh is
|
||||
// no longer compatible with e.g. dynamic refinement/unrefinement.
|
||||
levelIncrement (0 1 (0 0 2));
|
||||
|
||||
Reference in New Issue
Block a user