Make cfMesh tutorials run faster

This commit is contained in:
Hrvoje Jasak 2015-08-25 11:35:03 +01:00
parent f1eb13aa4f
commit 0bd16b9e7f
5 changed files with 32 additions and 76 deletions

View file

@ -21,23 +21,21 @@ surfaceFile "geom.stl";
maxCellSize 0.2; maxCellSize 0.2;
boundaryCellSize 0.025; boundaryCellSize 0.1;
minCellSize 0.0125;
localRefinement localRefinement
{ {
defaultFaces0006 defaultFaces0006
{ {
cellSize 0.005; cellSize 0.01;
} }
defaultFaces0007 defaultFaces0007
{ {
cellSize 0.0025; cellSize 0.005;
} }
defaultFaces0009 defaultFaces0009
{ {
cellSize 0.0025; cellSize 0.005;
} }
} }

View file

@ -19,15 +19,15 @@ FoamFile
surfaceFile "bunnyWrapped.stl"; surfaceFile "bunnyWrapped.stl";
maxCellSize 30.0; maxCellSize 100.0;
boundaryCellSize 7.5; boundaryCellSize 25;
objectRefinements objectRefinements
{ {
ear1 ear1
{ {
cellSize 3.75; cellSize 10;
type cone; type cone;
p0 (-100 1873 -320); p0 (-100 1873 -320);
radius0 200; radius0 200;
@ -36,7 +36,7 @@ objectRefinements
} }
ear2 ear2
{ {
cellSize 3.75; cellSize 10;
type cone; type cone;
p0 (-650 1873 -620); p0 (-650 1873 -620);
radius0 200; radius0 200;
@ -45,7 +45,7 @@ objectRefinements
} }
tail tail
{ {
cellSize 3.75; cellSize 10;
type box; type box;
centre (500 500 150); centre (500 500 150);
lengthX 100; lengthX 100;
@ -54,14 +54,14 @@ objectRefinements
} }
insideTheBody insideTheBody
{ {
cellSize 3.75; cellSize 10;
type sphere; type sphere;
centre (0 700 0); centre (0 700 0);
radius 50; radius 50;
} }
muzzlePiercing muzzlePiercing
{ {
cellSize 3.75; cellSize 10;
type line; type line;
p0 (-750 1000 450); p0 (-750 1000 450);
p1 (-750 1500 450); p1 (-750 1500 450);

View file

@ -19,16 +19,13 @@ FoamFile
surfaceFile "5415Joined3.ftr"; surfaceFile "5415Joined3.ftr";
maxCellSize 100; maxCellSize 150;
boundaryCellSize 50;
//boundaryCellSizeRefinementThickness 50;
surfaceMeshRefinement surfaceMeshRefinement
{ {
hull hull
{ {
additionalRefinementLevels 3; additionalRefinementLevels 1;
surfaceFile "5415Joined1.stl"; surfaceFile "5415Joined1.stl";
refinementThickness 50; refinementThickness 50;
} }
@ -86,7 +83,7 @@ boundaryLayers
optimisationParameters optimisationParameters
{ {
nSmoothNormals 3; nSmoothNormals 3;
maxNumIterations 5; maxNumIterations 2;
featureSizeFactor 0.4; featureSizeFactor 0.4;
reCalculateNormals 1; reCalculateNormals 1;
relThicknessTol 0.1; relThicknessTol 0.1;

View file

@ -21,7 +21,7 @@ surfaceFile "multipleOrifices.stl";
maxCellSize 5.0; maxCellSize 5.0;
boundaryCellSize 2.0; //boundaryCellSize 2.0;
localRefinement localRefinement
{ {
@ -49,46 +49,6 @@ localRefinement
boundaryLayers boundaryLayers
{ {
nLayers 1; nLayers 1;
thicknessRatio 1.2;
patchBoundaryLayers
{
"orifice.*"
{
nLayers 4;
thicknessRatio 1.2;
maxFirstLayerThickness 0.2;
allowDiscontinuity 0;
}
"fixedWalls.*"
{
nLayers 4;
thicknessRatio 1.2;
maxFirstLayerThickness 1.0;
allowDiscontinuity 0;
}
"tubes.*"
{
nLayers 4;
thicknessRatio 1.2;
maxFirstLayerThickness 1.0;
allowDiscontinuity 0;
}
}
optimiseLayer 1;
} }
renameBoundary renameBoundary
@ -127,4 +87,5 @@ workflowControls
//restartFromLatestStep 1; //restartFromLatestStep 1;
} }
// ************************************************************************* // // ************************************************************************* //

View file

@ -17,28 +17,28 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
boundaryCellSize 1.5; boundaryCellSize 4.5;
keepCellsIntersectingBoundary 1; //keepCellsIntersectingBoundary 1;
maxCellSize 3; maxCellSize 9;
minCellSize 0.375; //minCellSize 0.375;
removeGluedMesh 0;
surfaceFile "socket.fms"; surfaceFile "socket.fms";
boundaryLayers boundaryLayers
{ {
maxFirstLayerThickness 0.5; maxFirstLayerThickness 2.0;
nLayers 3; nLayers 1;
thicknessRatio 1.2; thicknessRatio 1.2;
patchBoundaryLayers patchBoundaryLayers
{ {
patch7 patch7
{ {
allowDiscontinuity 0; allowDiscontinuity 0;
maxFirstLayerThickness 0.5; maxFirstLayerThickness 1.0;
nLayers 4; nLayers 2;
thicknessRatio 1.1; thicknessRatio 1.1;
} }
} }
} }
@ -48,17 +48,17 @@ localRefinement
patch15 patch15
{ {
additionalRefinementLevels 1; additionalRefinementLevels 1;
} }
subset1 subset1
{ {
cellSize 1.5; cellSize 4.5;
} }
subset2 subset2
{ {
cellSize 1.5; cellSize 4.5;
} }
} }