Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
644a76b4
Commit
644a76b4
authored
13 years ago
by
laurence
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Add time selection to checkCvMesh
parent
7f652713
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/utilities/mesh/generation/cvMesh/checkCvMesh/checkCvMesh.C
+8
-8
8 additions, 8 deletions
...tilities/mesh/generation/cvMesh/checkCvMesh/checkCvMesh.C
with
8 additions
and
8 deletions
applications/utilities/mesh/generation/cvMesh/checkCvMesh/checkCvMesh.C
+
8
−
8
View file @
644a76b4
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
========= |
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / O peration |
\\ / A nd | Copyright (C) 201
1
OpenFOAM Foundation
\\ / A nd | Copyright (C) 201
2
OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation |
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
License
License
...
@@ -42,6 +42,8 @@ using namespace Foam;
...
@@ -42,6 +42,8 @@ using namespace Foam;
int
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
{
{
timeSelector
::
addOptions
();
# include "addOverwriteOption.H"
# include "addOverwriteOption.H"
# include "setRootCase.H"
# include "setRootCase.H"
...
@@ -49,7 +51,7 @@ int main(int argc, char *argv[])
...
@@ -49,7 +51,7 @@ int main(int argc, char *argv[])
instantList
timeDirs
=
timeSelector
::
select0
(
runTime
,
args
);
instantList
timeDirs
=
timeSelector
::
select0
(
runTime
,
args
);
# include "createMesh.H"
# include "create
NamedPoly
Mesh.H"
runTime
.
functionObjects
().
off
();
runTime
.
functionObjects
().
off
();
...
@@ -57,14 +59,11 @@ int main(int argc, char *argv[])
...
@@ -57,14 +59,11 @@ int main(int argc, char *argv[])
{
{
runTime
.
setTime
(
timeDirs
[
timeI
],
timeI
);
runTime
.
setTime
(
timeDirs
[
timeI
],
timeI
);
Info
<<
"
Create mesh for t
ime = "
<<
runTime
.
timeName
()
Info
<<
"
T
ime = "
<<
runTime
.
timeName
()
<<
nl
<<
endl
;
<<
nl
<<
endl
;
mesh
.
readUpdate
();
mesh
.
readUpdate
();
Info
<<
"Read mesh in = "
<<
runTime
.
cpuTimeIncrement
()
<<
" s"
<<
endl
;
// Check patches and faceZones are synchronised
// Check patches and faceZones are synchronised
mesh
.
boundaryMesh
().
checkParallelSync
(
true
);
mesh
.
boundaryMesh
().
checkParallelSync
(
true
);
meshRefinement
::
checkCoupledFaceZones
(
mesh
);
meshRefinement
::
checkCoupledFaceZones
(
mesh
);
...
@@ -87,8 +86,10 @@ int main(int argc, char *argv[])
...
@@ -87,8 +86,10 @@ int main(int argc, char *argv[])
=
cvMeshDict
.
subDict
(
"meshQualityControls"
);
=
cvMeshDict
.
subDict
(
"meshQualityControls"
);
Info
<<
"Checking initial mesh ..."
<<
endl
;
Info
<<
"Checking mesh ..."
<<
endl
;
faceSet
wrongFaces
(
mesh
,
"wrongFaces"
,
mesh
.
nFaces
()
/
100
);
faceSet
wrongFaces
(
mesh
,
"wrongFaces"
,
mesh
.
nFaces
()
/
100
);
motionSmoother
::
checkMesh
(
false
,
mesh
,
meshQualityDict
,
wrongFaces
);
motionSmoother
::
checkMesh
(
false
,
mesh
,
meshQualityDict
,
wrongFaces
);
const
label
nInitErrors
=
returnReduce
const
label
nInitErrors
=
returnReduce
...
@@ -117,6 +118,5 @@ int main(int argc, char *argv[])
...
@@ -117,6 +118,5 @@ int main(int argc, char *argv[])
Info
<<
"End
\n
"
<<
endl
;
Info
<<
"End
\n
"
<<
endl
;
return
0
;
return
0
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment