Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
5a62444c
Commit
5a62444c
authored
Apr 05, 2013
by
andy
Browse files
Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev
parents
26c2c3f6
fcf165f8
Changes
8
Hide whitespace changes
Inline
Side-by-side
applications/utilities/mesh/generation/snappyHexMesh/snappyHexMeshDict
View file @
5a62444c
...
...
@@ -337,55 +337,75 @@ addLayersControls
// Advanced settings
// When not to extrude surface. 0 is flat surface, 90 is when two faces
// are perpendicular
featureAngle 60;
// At non-patched sides allow mesh to slip if extrusion direction makes
// angle larger than slipFeatureAngle.
slipFeatureAngle 30;
// Static analysis of starting mesh
// Maximum number of snapping relaxation iterations. Should stop
// before upon reaching a correct mesh.
nRelaxIter 5;
// When not to extrude surface. 0 is flat surface, 90 is when two faces
// are perpendicular
featureAngle 130;
// Stop layer growth on highly warped cells
maxFaceThicknessRatio 0.5;
// Patch displacement
// Number of smoothing iterations of surface normals
nSmoothSurfaceNormals 1;
// Smooth layer thickness over surface patches
nSmoothThickness 10;
// Medial axis analysis
// Angle used to pick up medial axis points
// Note: changed(corrected) w.r.t 17x! 90 degrees corresponds to 130
// in 17x.
minMedianAxisAngle 90;
// Reduce layer growth where ratio thickness to medial
// distance is large
maxThicknessToMedialRatio 0.3;
// Number of smoothing iterations of
surface normals
nSmooth
Surface
Normals
1
;
// Number of smoothing iterations of
interior mesh movement direction
nSmoothNormals
3
;
// Number of smoothing iterations of interior mesh movement direction
nSmoothNormals 3;
// Optional: smooth displacement after medial axis determination.
// default is 0.
nSmoothDisplacement 90;
// Smooth layer thickness over surface patches
nSmoothThickness 10;
// Stop layer growth on highly warped cells
maxFaceThicknessRatio 0.5;
// Mesh shrinking
// Reduce layer growth where ratio thickness to medial
// distance is large
maxThicknessToMedialRatio 0.3;
// Optional: at non-patched sides allow mesh to slip if extrusion
// direction makes angle larger than slipFeatureAngle. Default is
// 0.5*featureAngle.
slipFeatureAngle 30;
//
Angle used to pick up medial axis points
//
Note:
ch
a
ng
ed(
correct
ed) w.r.t 17x! 90 degrees corresponds to 130 in 17x
.
minMedianAxisAngle 90
;
//
Maximum number of snapping relaxation iterations. Should stop
//
before upon rea
ch
i
ng
a
correct
mesh
.
nRelaxIter 5
;
// Create buffer region for new layer terminations
nBufferCellsNoExtrude 0;
// Create buffer region for new layer terminations
nBufferCellsNoExtrude 0;
// Overall max number of layer addition iterations. The mesher will
exit
// if it reaches this number of iterations; possibly with an
illegal
// mesh.
nLayerIter 50;
// Overall max number of layer addition iterations. The mesher will
//
exit
if it reaches this number of iterations; possibly with an
//
illegal
mesh.
nLayerIter 50;
// Max number of iterations after which relaxed meshQuality controls
// get used. Up to nRelaxIter it uses the settings in meshQualityControls,
// after nRelaxIter it uses the values in meshQualityControls::relaxed.
nRelaxedIter 20;
// Max number of iterations after which relaxed meshQuality controls
// get used. Up to nRelaxIter it uses the settings in
// meshQualityControls,
// after nRelaxIter it uses the values in meshQualityControls::relaxed.
nRelaxedIter 20;
// Additional reporting: if there are just a few faces where there
// are mesh errors (after adding the layers) print their face centres.
// This helps in tracking down problematic mesh areas.
//additionalReporting true;
// Additional reporting: if there are just a few faces where there
// are mesh errors (after adding the layers) print their face centres.
// This helps in tracking down problematic mesh areas.
//additionalReporting true;
}
// Generic mesh quality settings. At any undoable phase these determine
...
...
applications/utilities/mesh/manipulation/createBaffles/faceSelection/searchableSurfaceSelection.C
View file @
5a62444c
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012
-2013
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -97,7 +97,7 @@ void Foam::faceSelections::searchableSurfaceSelection::select
// Boundary faces
vectorField
neighbourCellCentres
;
syncTools
::
swapBoundaryCell
List
syncTools
::
swapBoundaryCell
Positions
(
mesh_
,
mesh_
.
cellCentres
(),
...
...
applications/utilities/mesh/manipulation/splitMeshRegions/splitMeshRegions.C
View file @
5a62444c
...
...
@@ -1404,6 +1404,7 @@ int main(int argc, char *argv[])
(
"splits mesh into multiple regions (detected by walking across faces)"
);
# include "addRegionOption.H"
#include "addOverwriteOption.H"
argList
::
addBoolOption
(
...
...
@@ -1467,7 +1468,7 @@ int main(int argc, char *argv[])
#include "setRootCase.H"
#include "createTime.H"
runTime
.
functionObjects
().
off
();
#include "createMesh.H"
#include "create
Named
Mesh.H"
const
word
oldInstance
=
mesh
.
pointsInstance
();
word
blockedFacesName
;
...
...
src/OpenFOAM/meshes/primitiveMesh/PatchTools/PatchTools.H
View file @
5a62444c
...
...
@@ -254,8 +254,8 @@ public:
);
//- Gather points and faces onto master and merge
(geometrically) into
//
single patch
.
//- Gather points and faces onto master and merge
into single patch.
//
Note: uses faces/points, not localFaces/localPoints
.
template
<
class
Face
,
...
...
src/OpenFOAM/meshes/primitiveMesh/PatchTools/PatchToolsGatherAndMerge.C
View file @
5a62444c
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012
-2013
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -52,7 +52,8 @@ void Foam::PatchTools::gatherAndMerge
labelList
pointSizes
;
{
List
<
Field
<
PointType
>
>
gatheredPoints
(
Pstream
::
nProcs
());
gatheredPoints
[
Pstream
::
myProcNo
()]
=
p
.
localPoints
();
gatheredPoints
[
Pstream
::
myProcNo
()]
=
p
.
points
();
Pstream
::
gatherList
(
gatheredPoints
);
if
(
Pstream
::
master
())
...
...
@@ -75,7 +76,7 @@ void Foam::PatchTools::gatherAndMerge
// gathered points
{
List
<
List
<
Face
>
>
gatheredFaces
(
Pstream
::
nProcs
());
gatheredFaces
[
Pstream
::
myProcNo
()]
=
p
.
localFaces
()
;
gatheredFaces
[
Pstream
::
myProcNo
()]
=
p
;
Pstream
::
gatherList
(
gatheredFaces
);
if
(
Pstream
::
master
())
...
...
src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoSnapDriver.C
View file @
5a62444c
...
...
@@ -1529,13 +1529,18 @@ void Foam::autoSnapDriver::doSnap
if
(
!
meshOk
)
{
Info
<<
"Did not succesfully snap mesh. Giving up."
<<
nl
<<
endl
;
// Use current mesh as base mesh
meshMover
.
correct
();
break
;
WarningIn
(
"autoSnapDriver::doSnap(..)"
)
<<
"Did not succesfully snap mesh."
<<
" Continuing to snap to resolve easy surfaces but the"
<<
" resulting mesh will not satisfy your quality"
<<
" constraints"
<<
nl
<<
endl
;
//Info<< "Did not succesfully snap mesh. Giving up."
// << nl << endl;
//
//// Use current mesh as base mesh
//meshMover.correct();
//
//break;
}
if
(
debug
&
meshRefinement
::
MESH
)
...
...
tutorials/incompressible/simpleFoam/motorBike/system/controlDict
View file @
5a62444c
...
...
@@ -40,17 +40,17 @@ writeInterval 100;
purgeWrite 0;
//-
Have regular
restart files
secondaryWriteControl cpuTime;
secondaryWriteInterval
36
00;
secondaryPurgeWrite 1;
//-
Uncomment to have regular (every 2 hours of run time)
restart files
//
secondaryWriteControl cpuTime;
// runtime
//
secondaryWriteInterval
72
00;
// seconds
//
secondaryPurgeWrite 1;
// keep all but last dump
writeFormat
ascii
;
writeFormat
binary
;
writePrecision 6;
writeCompression compressed;
writeCompression
un
compressed;
timeFormat general;
...
...
tutorials/incompressible/simpleFoam/motorBike/system/forceCoeffs
View file @
5a62444c
...
...
@@ -9,8 +9,12 @@
forceCoeffs1
{
type forceCoeffs;
functionObjectLibs ( "libforces.so" );
outputControl outputTime;
outputControl timeStep;
outputInterval 1;
log yes;
patches ( "motorBike.*" );
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment