snappyHexMesh : refine based on curvature

This commit is contained in:
Mattijs Janssens
2022-08-04 17:09:38 +00:00
parent 227727d413
commit 27c3d0c23b
20 changed files with 2326 additions and 35 deletions

View File

@ -1342,6 +1342,17 @@ int main(int argc, char *argv[])
const snapParameters snapParams(snapDict, dryRun);
Info<< "Setting refinement level of surface to be consistent"
<< " with curvature." << endl;
surfaces.setCurvatureMinLevelFields
(
refineParams.curvature(),
meshRefiner.meshCutter().level0EdgeLength()
);
Info<< "Checked curvature refinement in = "
<< mesh.time().cpuTimeIncrement() << " s" << nl << endl;
// Add all the cellZones and faceZones
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~