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
b47dd16a
Commit
b47dd16a
authored
11 years ago
by
mattijs
Browse files
Options
Downloads
Patches
Plain Diff
ENH: snappyHexMehs: not write non-manifold points
parent
69ee5fa8
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
src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoLayerDriver.C
+16
-12
16 additions, 12 deletions
.../autoMesh/autoHexMesh/autoHexMeshDriver/autoLayerDriver.C
with
16 additions
and
12 deletions
src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoLayerDriver.C
+
16
−
12
View file @
b47dd16a
...
@@ -206,12 +206,13 @@ void Foam::autoLayerDriver::checkMeshManifold() const
...
@@ -206,12 +206,13 @@ void Foam::autoLayerDriver::checkMeshManifold() const
<<
" points."
<<
nl
<<
" points."
<<
nl
<<
"This is not a fatal error but might cause some unexpected"
<<
"This is not a fatal error but might cause some unexpected"
<<
" behaviour."
<<
nl
<<
" behaviour."
<<
nl
<<
"Writing "
<<
nNonManif
//<< "Writing " << nNonManif
<<
" points where this happens to pointSet "
//<< " points where this happens to pointSet "
<<
nonManifoldPoints
.
name
()
<<
endl
;
//<< nonManifoldPoints.name()
<<
endl
;
nonManifoldPoints
.
instance
()
=
meshRefiner_
.
timeName
();
//
nonManifoldPoints.instance() = meshRefiner_.timeName();
nonManifoldPoints
.
write
();
//
nonManifoldPoints.write();
}
}
Info
<<
endl
;
Info
<<
endl
;
}
}
...
@@ -2634,6 +2635,8 @@ bool Foam::autoLayerDriver::writeLayerData
...
@@ -2634,6 +2635,8 @@ bool Foam::autoLayerDriver::writeLayerData
if
(
meshRefinement
::
writeLevel
()
&
meshRefinement
::
WRITELAYERFIELDS
)
if
(
meshRefinement
::
writeLevel
()
&
meshRefinement
::
WRITELAYERFIELDS
)
{
{
Info
<<
nl
<<
"Writing fields with layer information:"
<<
incrIndent
<<
endl
;
{
{
volScalarField
fld
volScalarField
fld
(
(
...
@@ -2663,8 +2666,8 @@ bool Foam::autoLayerDriver::writeLayerData
...
@@ -2663,8 +2666,8 @@ bool Foam::autoLayerDriver::writeLayerData
}
}
fld
.
boundaryField
()[
patchI
]
==
pfld
;
fld
.
boundaryField
()[
patchI
]
==
pfld
;
}
}
Info
<<
"Writing volScalarField "
<<
fld
.
name
()
Info
<<
indent
<<
fld
.
name
()
<<
" : actual number of layers"
<<
" with actual number of layers"
<<
endl
;
<<
endl
;
bool
ok
=
fld
.
write
();
bool
ok
=
fld
.
write
();
allOk
=
allOk
&
ok
;
allOk
=
allOk
&
ok
;
}
}
...
@@ -2693,8 +2696,8 @@ bool Foam::autoLayerDriver::writeLayerData
...
@@ -2693,8 +2696,8 @@ bool Foam::autoLayerDriver::writeLayerData
faceRealThickness
faceRealThickness
);
);
}
}
Info
<<
"Writing volScalarField "
<<
fld
.
name
()
Info
<<
indent
<<
fld
.
name
()
<<
" : overall layer thickness"
<<
" with overall layer thickness"
<<
endl
;
<<
endl
;
bool
ok
=
fld
.
write
();
bool
ok
=
fld
.
write
();
allOk
=
allOk
&
ok
;
allOk
=
allOk
&
ok
;
}
}
...
@@ -2740,12 +2743,13 @@ bool Foam::autoLayerDriver::writeLayerData
...
@@ -2740,12 +2743,13 @@ bool Foam::autoLayerDriver::writeLayerData
fld
.
boundaryField
()[
patchI
]
==
pfld
;
fld
.
boundaryField
()[
patchI
]
==
pfld
;
}
}
Info
<<
"Writing volScalarField "
<<
fld
.
name
()
Info
<<
indent
<<
fld
.
name
()
<<
"
with
overall layer thickness
as
fraction"
<<
"
:
overall layer thickness
(
fraction"
<<
" of desired thickness"
<<
endl
;
<<
" of desired thickness
)
"
<<
endl
;
bool
ok
=
fld
.
write
();
bool
ok
=
fld
.
write
();
allOk
=
allOk
&
ok
;
allOk
=
allOk
&
ok
;
}
}
Info
<<
decrIndent
<<
endl
;
}
}
//if (meshRefinement::outputLevel() & meshRefinement::OUTPUTLAYERINFO)
//if (meshRefinement::outputLevel() & meshRefinement::OUTPUTLAYERINFO)
...
...
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