ENH: tutorials settings

This commit is contained in:
mattijs
2011-07-11 15:43:41 +01:00
parent 31de9dacf1
commit dfeadff218
3 changed files with 24 additions and 23 deletions

View File

@ -4,15 +4,15 @@ cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions # Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions . $WM_PROJECT_DIR/bin/tools/RunFunctions
surfacePointMerge constant/triSurface/m_car01.obj \ surfacePointMerge constant/triSurface/m_car01_wheels.obj \
1e-2 constant/triSurface/m_car01_merge.obj \ 1e-2 constant/triSurface/m_car01_wheels_merge.obj \
> log.surfacePointMerge 2>&1 > log.surfacePointMerge 2>&1
# Orient so point to be meshed is inside surface # Orient so point to be meshed is inside surface
surfaceOrient \ surfaceOrient \
constant/triSurface/m_car01_merge.obj \ constant/triSurface/m_car01_wheels_merge.obj \
-inside -usePierceTest '(13 -200 149)' \ -inside -usePierceTest '(13 -200 149)' \
constant/triSurface/m_car01_merge_orient.obj \ constant/triSurface/m_car01_wheels_merge_orient.obj \
> log.surfaceOrient.m_car01 2>&1 > log.surfaceOrient.m_car01 2>&1
# Same for outside # Same for outside
@ -22,10 +22,10 @@ surfaceOrient \
constant/triSurface/domain_orient.stl \ constant/triSurface/domain_orient.stl \
> log.surfaceOrient.domain 2>&1 > log.surfaceOrient.domain 2>&1
# Surface has open edges. Create dummy features for now. # Extract feature edges and points
runApplication surfaceFeatureExtract \ runApplication surfaceFeatureExtract \
constant/triSurface/m_car01_merge_orient.obj \ constant/triSurface/m_car01_wheels_merge_orient.obj \
m_car01 -includedAngle 165 -writeObj m_car01 -includedAngle 125 -writeObj
mv log.surfaceFeatureExtract log.surfaceFeatureExtract.m_car01 mv log.surfaceFeatureExtract log.surfaceFeatureExtract.m_car01
unset FOAM_SIGFPE unset FOAM_SIGFPE
@ -41,4 +41,8 @@ runApplication cvMesh
# Generate some sets for a bit of mesh inspection # Generate some sets for a bit of mesh inspection
runApplication topoSet -constant -time 0:100 runApplication topoSet -constant -time 0:100
# And a field for thresholding
writeCellCentres -constant
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -58,19 +58,12 @@ See also cvControls.H in the conformalVoronoiMesh library
geometry geometry
{ {
// Internal shape // Internal shape
m_car01_merge_orient.obj m_car01_wheels_merge_orient.obj
{ {
name m_car01; name m_car01;
type closedTriSurfaceMesh; type closedTriSurfaceMesh;
} }
// m_car01
// {
// type searchableSurfaceWithGaps;
// surface m_car01_orient.obj;
// gap 1e-2;
// }
// Outside of domain // Outside of domain
domain_orient.stl domain_orient.stl
{ {
@ -211,10 +204,10 @@ initialPoints
// to the surface. Is fraction of local target cell size (see below) // to the surface. Is fraction of local target cell size (see below)
minimumSurfaceDistanceCoeff 0.55; minimumSurfaceDistanceCoeff 0.55;
initialPointsMethod autoDensity; //initialPointsMethod autoDensity;
// initialPointsMethod uniformGrid; // initialPointsMethod uniformGrid;
// initialPointsMethod bodyCentredCubic; // initialPointsMethod bodyCentredCubic;
// initialPointsMethod pointFile; initialPointsMethod pointFile;
// Take boundbox of all geometry. Samples with this box. If too much // Take boundbox of all geometry. Samples with this box. If too much
// samples (due to target cell size) in box split box. // samples (due to target cell size) in box split box.
@ -380,6 +373,9 @@ motionControl
// Do not change. See cvControls.H // Do not change. See cvControls.H
polyMeshFiltering polyMeshFiltering
{ {
// Write the underlying Delaunay tet mesh at output time
writeTetMesh true;
// 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
filterSizeCoeff 0.2; filterSizeCoeff 0.2;
@ -425,7 +421,7 @@ polyMeshFiltering
meshQualityControls meshQualityControls
{ {
//- Maximum non-orthogonality allowed. Set to 180 to disable. //- Maximum non-orthogonality allowed. Set to 180 to disable.
maxNonOrtho 1; //65; maxNonOrtho 65;
//- Max skewness allowed. Set to <0 to disable. //- Max skewness allowed. Set to <0 to disable.
maxBoundarySkewness 50; maxBoundarySkewness 50;

View File

@ -87,10 +87,11 @@ surfaceConformation
// (circumcentre far away from centroid) // (circumcentre far away from centroid)
pointPairDistanceCoeff 0.1; pointPairDistanceCoeff 0.1;
// Mixed feature edges - both inside and outside edges. Recreated // Mixed feature points - connected to both inside and outside edges.
// by inserting triplets of points to recreate a single edge. Done for // Recreated by inserting triplets of points to recreate a single edge.
// all edges emanating from point. triplets of points get inserted // Done for all edges emanating from point. triplets of points get inserted
// mixedFeaturePointPPDistanceCoeff distance away from feature point. // mixedFeaturePointPPDistanceCoeff distance away from feature point.
// Set to a positive number to enable.
mixedFeaturePointPPDistanceCoeff 5.0; mixedFeaturePointPPDistanceCoeff 5.0;
// Distance to a feature point within which surface and edge // Distance to a feature point within which surface and edge
@ -386,7 +387,7 @@ polyMeshFiltering
// To not filter: set maxNonOrtho to 1 (so check fails) and then // To not filter: set maxNonOrtho to 1 (so check fails) and then
// set continueFilteringOnBadInitialPolyMesh to false. // set continueFilteringOnBadInitialPolyMesh to false.
continueFilteringOnBadInitialPolyMesh false; //true; continueFilteringOnBadInitialPolyMesh true;
// When a face is "bad", what fraction should the filterSizeCoeff be // When a face is "bad", what fraction should the filterSizeCoeff be
// reduced by. Recursive, so for a filterCount value of fC, the // reduced by. Recursive, so for a filterCount value of fC, the
@ -421,7 +422,7 @@ polyMeshFiltering
meshQualityControls meshQualityControls
{ {
//- Maximum non-orthogonality allowed. Set to 180 to disable. //- Maximum non-orthogonality allowed. Set to 180 to disable.
maxNonOrtho 1; maxNonOrtho 65;
//- Max skewness allowed. Set to <0 to disable. //- Max skewness allowed. Set to <0 to disable.
maxBoundarySkewness 50; maxBoundarySkewness 50;