Skip to content
Snippets Groups Projects
Commit 33221dc8 authored by laurence's avatar laurence
Browse files

STYLE: Update default cvMeshDict

parent db648a75
Branches
Tags
No related merge requests found
...@@ -70,10 +70,9 @@ geometry ...@@ -70,10 +70,9 @@ geometry
type triSurfaceMesh; type triSurfaceMesh;
} }
// Surface used for cell size control refinementBox
tunnel_APPROACH_INLET.obj
{ {
type triSurfaceMesh; type searchableBox;
} }
} }
...@@ -101,16 +100,16 @@ surfaceConformation ...@@ -101,16 +100,16 @@ surfaceConformation
// Distance to a feature point within which surface and edge // Distance to a feature point within which surface and edge
// conformation points are excluded - fraction of the local target // conformation points are excluded - fraction of the local target
// cell size // cell size
featurePointExclusionDistanceCoeff 0.4; featurePointExclusionDistanceCoeff 0.65;
// Distance to an existing feature edge conformation location // Distance to an existing feature edge conformation location
// within which other edge conformation location are excluded - // within which other edge conformation location are excluded -
// fraction of the local target cell size // fraction of the local target cell size
featureEdgeExclusionDistanceCoeff 0.2; featureEdgeExclusionDistanceCoeff 0.65;
// Optimisation: do not check for surface intersection (of dual edges) // Optimisation: do not check for surface intersection (of dual edges)
// for points near to surface. // for points near to surface.
surfaceSearchDistanceCoeff 2.5; surfaceSearchDistanceCoeff 5;
// Maximum allowable protrusion through the surface before // Maximum allowable protrusion through the surface before
// conformation points are added - fraction of the local target // conformation points are added - fraction of the local target
...@@ -126,31 +125,22 @@ surfaceConformation ...@@ -126,31 +125,22 @@ surfaceConformation
surfaceConformationRebuildFrequency 10; surfaceConformationRebuildFrequency 10;
// Initial and intermediate controls // Initial and intermediate controls
coarseConformationControls conformationControls
{ {
// Initial conformation // We've got a point poking through the surface. Don't do any
initial // surface conformation if near feature edge (since feature edge
{ // conformation should have priority)
// We've got a point poking through the surface. Don't do any
// surface conformation if near feature edge (since feature edge
// conformation should have priority)
// distance to search for near feature edges
edgeSearchDistCoeff 1.1;
// Proximity to a feature edge where a surface hit is
// not created, only the edge conformation is created
// - fraction of the local target cell size. Coarse
// conformation, initial protrusion tests.
surfacePtReplaceDistCoeff 0.5;
}
// Same for iterations // distance to search for near feature edges
iteration edgeSearchDistCoeff 1.1;
{
edgeSearchDistCoeff 1.25; // Proximity to a feature edge where a surface hit is
surfacePtReplaceDistCoeff 0.7; // not created, only the edge conformation is created
} // - fraction of the local target cell size. Coarse
// conformation, initial protrusion tests.
surfacePtReplaceDistCoeff 0.5;
surfacePtExclusionDistanceCoeff 0.5;
// Stop either at maxIterations or if the number of surface pokes // Stop either at maxIterations or if the number of surface pokes
// is very small (iterationToInitialHitRatioLimit * initial number) // is very small (iterationToInitialHitRatioLimit * initial number)
...@@ -161,26 +151,6 @@ surfaceConformation ...@@ -161,26 +151,6 @@ surfaceConformation
iterationToInitialHitRatioLimit 0.001; iterationToInitialHitRatioLimit 0.001;
} }
// Final (at endTime) controls
fineConformationControls
{
initial
{
edgeSearchDistCoeff 1.1;
surfacePtReplaceDistCoeff 0.5;
}
iteration
{
edgeSearchDistCoeff 1.25;
surfacePtReplaceDistCoeff 0.7;
}
maxIterations 15;
iterationToInitialHitRatioLimit 0.001;
}
// Geometry to mesh to // Geometry to mesh to
geometryToConformTo geometryToConformTo
{ {
...@@ -219,7 +189,7 @@ initialPoints ...@@ -219,7 +189,7 @@ initialPoints
// Take boundbox of all geometry. Sample with this box. If too much // Take boundbox of all geometry. Sample with this box. If too much
// samples in box (due to target cell size) split box. // samples in box (due to target cell size) split box.
autoDensityDetails autoDensityCoeffs
{ {
// Initial number of refinement levels. Needs to be enough to pick // Initial number of refinement levels. Needs to be enough to pick
// up features due to size ratio. If not enough it will take longer // up features due to size ratio. If not enough it will take longer
...@@ -233,7 +203,7 @@ initialPoints ...@@ -233,7 +203,7 @@ initialPoints
surfaceSampleResolution 5; surfaceSampleResolution 5;
} }
uniformGridDetails uniformGridCoeffs
{ {
// Absolute cell size. // Absolute cell size.
initialCellSize 0.0015; initialCellSize 0.0015;
...@@ -241,14 +211,14 @@ initialPoints ...@@ -241,14 +211,14 @@ initialPoints
randomPerturbationCoeff 0.02; randomPerturbationCoeff 0.02;
} }
bodyCentredCubicDetails bodyCentredCubicCoeffs
{ {
initialCellSize 0.0015; initialCellSize 0.0015;
randomiseInitialGrid no; randomiseInitialGrid no;
randomPerturbationCoeff 0.1; randomPerturbationCoeff 0.1;
} }
pointFileDetails pointFileCoeffs
{ {
// Reads points from file. Still rejects points that are too // Reads points from file. Still rejects points that are too
// close to the surface (minimumSurfaceDistanceCoeff) or on the // close to the surface (minimumSurfaceDistanceCoeff) or on the
...@@ -269,75 +239,45 @@ initialPoints ...@@ -269,75 +239,45 @@ initialPoints
motionControl motionControl
{ {
// Absolute cell size of back ground mesh. This is the maximum cell size. // Absolute cell size of back ground mesh. This is the maximum cell size.
defaultCellSize 0.00075; defaultCellSize 0.25;
// Absolute cell size of back ground mesh. This is the minimum cell size. minimumCellSizeCoeff 0;
minimumCellSize 0;
//cellShapeControl constantControl; maxSmoothingIterations 200;
//cellShapeControl fileControl;
cellShapeControl surfaceControl;
// Provide constant values for cell size and alignment maxRefinementIterations 2;
constantControlCoeffs
{
cellSize 0.00075;
cellAlignment (1 0 0 0 1 0 0 0 1);
}
// Read in the points of the background grid used for cell shape control
// from a file, with corresponding files for alignment and size
fileControlCoeffs
{
pointFile "";
sizesFile "";
alignmentsFile "";
}
// Calculate the sizes and alignments from surfaces // Calculate the sizes and alignments from surfaces
surfaceControlCoeffs shapeControlFunctions
{ {
ref7_outside flange
{ {
// optional name of geometry type searchableSurfaceControl;
surface ref7; forceInitialPointInsertion on;
priority 1; priority 1;
mode outside;//inside/bothSides mode inside;
cellSizeFunction linearDistance; surfaceCellSizeFunction uniformValue;
uniformValueCoeffs
// cellSizeFunctions:
// uniform : uniform size
// uniformDistance : fixed size for all within distance
// linearSpatial : grading in specified direction only
// linearDistance : vary linearly as distance to surface
// surfaceOffsetLinearDistance : constant close to surface then
// fade like linearDistance
// Vary from surfaceCellSize (close to the surface) to
// distanceCellSize (further than 'distance')
linearDistanceCoeffs
{ {
surfaceCellSize 1e-5; // absolute size surfaceCellSizeCoeff 0.5;
distanceCellSize $defaultCellSize;
distance 1.0;
} }
} cellSizeFunction surfaceOffsetLinearDistance;
tunnel_APPROACH_INLET.obj
{
priority 1;
mode bothSides;
cellSizeFunction surfaceOffsetLinearDistance;
// Constant within a certain distance then linear fade away.
// Good for layers.
surfaceOffsetLinearDistanceCoeffs surfaceOffsetLinearDistanceCoeffs
{ {
surfaceCellSize 1e-5; distanceCellSizeCoeff 1;
distanceCellSize $defaultCellSize; surfaceOffsetCoeff 1;
surfaceOffset 0.1; linearDistanceCoeff 1;
totalDistance 1.0;
} }
} }
fileControl
{
type fileControl;
priority 1;
pointsFile "points";
sizesFile "sizes";
alignmentsFile "alignments";
}
} }
// Provide an aspect ratio and the direction in which it acts on the mesh. // Provide an aspect ratio and the direction in which it acts on the mesh.
...@@ -345,7 +285,7 @@ motionControl ...@@ -345,7 +285,7 @@ motionControl
cellAspectRatioControl cellAspectRatioControl
{ {
// Aspect ratio. // Aspect ratio.
aspectRatio 2.0; aspectRatio 1.0;
// Direction of action of the aspect ratio // Direction of action of the aspect ratio
aspectRatioDirection (1 0 0); aspectRatioDirection (1 0 0);
} }
...@@ -366,26 +306,7 @@ motionControl ...@@ -366,26 +306,7 @@ motionControl
objOutput no; objOutput no;
// Timing and memory usage. // Timing and memory usage.
timeChecks yes; timeChecks no;
// Number of rays in plane parallel to nearest surface. Used to detect
// next closest surfaces. Used to work out alignment (three vectors)
// to surface.
// Note that only the initial points (from the seeding) calculate this
// information so if these are not fine enough the alignment will
// not be correct. (any points added during the running will lookup
// this information from the nearest initial point since it is
// expensive)
alignmentSearchSpokes 36;
// For each delaunay edge (between two vertices, becomes
// the Voronoi face normal) snap to the alignment direction if within
// alignmentAcceptanceAngle. Slightly > 45 is a good choice - prevents
// flipping.
alignmentAcceptanceAngle 48;
// How often to rebuild the alignment info (expensive)
sizeAndAlignmentRebuildFrequency 20;
// When to insert points. Not advisable change to // When to insert points. Not advisable change to
// these settings. // these settings.
...@@ -434,7 +355,7 @@ polyMeshFiltering ...@@ -434,7 +355,7 @@ polyMeshFiltering
filterFaces off; filterFaces off;
// Write the underlying Delaunay tet mesh at output time // Write the underlying Delaunay tet mesh at output time
writeTetDualMesh false; //true; writeTetDualMesh false;
// Upper limit on the size of faces to be filtered. // Upper limit on the size of faces to be filtered.
// fraction of the local target cell size // fraction of the local target cell size
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment