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-plus
Commits
9617b8f5
Commit
9617b8f5
authored
Feb 16, 2015
by
Henry
Browse files
surfaceCheck: Make -blockMesh output easier to parse
Resolves bug-report
http://www.openfoam.org/mantisbt/view.php?id=1534
parent
e8e0c997
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/utilities/surface/surfaceCheck/surfaceCheck.C
View file @
9617b8f5
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
4
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -223,22 +223,25 @@ int main(int argc, char *argv[])
{
pointField
cornerPts
(
boundBox
(
surf
.
points
(),
false
).
points
());
Info
<<
"// blockMeshDict info"
<<
nl
<<
"vertices
\n
("
<<
nl
;
Info
<<
"// blockMeshDict info"
<<
nl
<<
nl
;
Info
<<
"vertices
\n
("
<<
nl
;
forAll
(
cornerPts
,
ptI
)
{
Info
<<
" "
<<
cornerPts
[
ptI
]
<<
nl
;
Info
<<
" "
<<
cornerPts
[
ptI
]
<<
nl
;
}
// number of divisions needs adjustment later
Info
<<
");
\n
"
<<
nl
<<
"blocks
\n
"
<<
"(
\n
"
<<
" hex (0 1 2 3 4 5 6 7) (10 10 10) simpleGrading (1 1 1)
\n
"
<<
");
\n
"
<<
nl
;
Info
<<
"edges
\n
();"
<<
nl
<<
"patches
\n
();"
<<
endl
;
Info
<<
");
\n
"
<<
nl
<<
"blocks
\n
"
<<
"(
\n
"
<<
" hex (0 1 2 3 4 5 6 7) (10 10 10) simpleGrading (1 1 1)
\n
"
<<
");
\n
"
<<
nl
;
Info
<<
"edges
\n
();"
<<
nl
<<
"patches
\n
();"
<<
endl
;
Info
<<
nl
<<
"// end blockMeshDict info"
<<
nl
<<
endl
;
}
...
...
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