Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
0c6789e5
Commit
0c6789e5
authored
Jan 20, 2011
by
mattijs
Browse files
STYLE: removed globalMeshData::bb(). Use mesh.bounds() instead
parent
fc1e4431
Changes
8
Hide whitespace changes
Inline
Side-by-side
applications/utilities/mesh/generation/extrude/extrudeMesh/extrudeMesh.C
View file @
0c6789e5
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2004-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 2004-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -522,7 +522,7 @@ int main(int argc, char *argv[])
);
const
boundBox
&
bb
=
mesh
.
globalData
().
bb
();
const
boundBox
&
bb
=
mesh
.
bounds
();
const
vector
span
=
bb
.
span
();
const
scalar
mergeDim
=
1E-4
*
bb
.
minDim
();
...
...
applications/utilities/parallelProcessing/redistributeMeshPar/redistributeMeshPar.C
View file @
0c6789e5
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2004-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 2004-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -910,7 +910,7 @@ int main(int argc, char *argv[])
(
args
,
runTime
,
mesh
.
globalData
().
bb
()
mesh
.
bounds
()
);
// Mesh distribution engine
...
...
applications/utilities/surface/surfaceToPatch/surfaceToPatch.C
View file @
0c6789e5
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2004-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 2004-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -208,7 +208,7 @@ int main(int argc, char *argv[])
const
scalar
searchTol
=
args
.
optionLookupOrDefault
(
"tol"
,
1e-3
);
// Get search box. Anything not within this box will not be considered.
const
boundBox
&
meshBb
=
mesh
.
globalData
().
bb
();
const
boundBox
&
meshBb
=
mesh
.
bounds
();
const
vector
searchSpan
=
searchTol
*
meshBb
.
span
();
Info
<<
"All boundary faces further away than "
<<
searchTol
...
...
src/dynamicMesh/polyTopoChange/polyTopoChange/hexRef8.C
View file @
0c6789e5
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2004-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 2004-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -4394,7 +4394,7 @@ void Foam::hexRef8::distribute(const mapDistributePolyMesh& map)
void
Foam
::
hexRef8
::
checkMesh
()
const
{
const
scalar
smallDim
=
1E-6
*
mesh_
.
globalData
().
bb
().
mag
();
const
scalar
smallDim
=
1E-6
*
mesh_
.
bounds
().
mag
();
if
(
debug
)
{
...
...
src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinement.C
View file @
0c6789e5
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2004-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 2004-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -1791,7 +1791,7 @@ Foam::autoPtr<Foam::mapPolyMesh> Foam::meshRefinement::splitMeshRegions
"meshRefinement::splitMeshRegions(const point&)"
)
<<
"Point "
<<
keepPoint
<<
" is not inside the mesh."
<<
nl
<<
"Bounding box of the mesh:"
<<
mesh_
.
globalData
().
bb
()
<<
"Bounding box of the mesh:"
<<
mesh_
.
bounds
()
<<
exit
(
FatalError
);
}
...
...
src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C
View file @
0c6789e5
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2004-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 2004-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -1263,7 +1263,7 @@ void Foam::meshRefinement::findCellZoneInsideWalk
", const labelList&, const labelList&)"
)
<<
"Point "
<<
insidePoint
<<
" is not inside the mesh."
<<
nl
<<
"Bounding box of the mesh:"
<<
mesh_
.
globalData
().
bb
()
<<
"Bounding box of the mesh:"
<<
mesh_
.
bounds
()
<<
exit
(
FatalError
);
}
...
...
@@ -1431,7 +1431,7 @@ void Foam::meshRefinement::findCellZoneTopo
"(const point&, const labelList&, const labelList&, labelList&)"
)
<<
"Point "
<<
keepPoint
<<
" is not inside the mesh."
<<
nl
<<
"Bounding box of the mesh:"
<<
mesh_
.
globalData
().
bb
()
<<
"Bounding box of the mesh:"
<<
mesh_
.
bounds
()
<<
exit
(
FatalError
);
}
...
...
@@ -1972,7 +1972,7 @@ Foam::autoPtr<Foam::mapPolyMesh> Foam::meshRefinement::splitMesh
"(const label, const labelList&, const point&)"
)
<<
"Point "
<<
keepPoint
<<
" is not inside the mesh."
<<
nl
<<
"Bounding box of the mesh:"
<<
mesh_
.
globalData
().
bb
()
<<
"Bounding box of the mesh:"
<<
mesh_
.
bounds
()
<<
exit
(
FatalError
);
}
...
...
src/meshTools/sets/cellSources/regionToCell/regionToCell.C
View file @
0c6789e5
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2004-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 2004-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -135,7 +135,7 @@ void Foam::regionToCell::combine(topoSet& set, const bool add) const
"regionToCell::combine(topoSet&, const bool) const"
)
<<
"Point "
<<
insidePoint_
<<
" is not inside the mesh."
<<
nl
<<
"Bounding box of the mesh:"
<<
mesh_
.
globalData
().
bb
()
<<
"Bounding box of the mesh:"
<<
mesh_
.
bounds
()
<<
endl
;
return
;
}
...
...
src/sampling/sampledSurface/sampledSurfaces/sampledSurfaces.C
View file @
0c6789e5
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2004-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 2004-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -342,7 +342,7 @@ bool Foam::sampledSurfaces::update()
}
// dimension as fraction of mesh bounding box
scalar
mergeDim
=
mergeTol_
*
mesh_
.
globalData
().
bb
().
mag
();
scalar
mergeDim
=
mergeTol_
*
mesh_
.
bounds
().
mag
();
if
(
Pstream
::
master
()
&&
debug
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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