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
4807448b
Commit
4807448b
authored
9 years ago
by
Henry Weller
Browse files
Options
Downloads
Patches
Plain Diff
cyclicACMIPolyPatch: Clear geometry when resetting
Patch contributed by Mattijs Janssens
parent
0d7bf4ff
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/meshTools/AMIInterpolation/patches/cyclicACMI/cyclicACMIPolyPatch/cyclicACMIPolyPatch.C
+19
-10
19 additions, 10 deletions
...ches/cyclicACMI/cyclicACMIPolyPatch/cyclicACMIPolyPatch.C
with
19 additions
and
10 deletions
src/meshTools/AMIInterpolation/patches/cyclicACMI/cyclicACMIPolyPatch/cyclicACMIPolyPatch.C
+
19
−
10
View file @
4807448b
...
@@ -60,16 +60,25 @@ void Foam::cyclicACMIPolyPatch::resetAMI
...
@@ -60,16 +60,25 @@ void Foam::cyclicACMIPolyPatch::resetAMI
if
(
boundaryMesh
().
mesh
().
hasCellCentres
())
if
(
boundaryMesh
().
mesh
().
hasCellCentres
())
{
{
WarningInFunction
if
(
debug
)
<<
"The mesh already has cellCentres calculated when"
{
<<
" resetting ACMI "
<<
name
()
<<
"."
<<
endl
Pout
<<
"cyclicACMIPolyPatch::resetAMI : clearing cellCentres"
<<
"This is a problem since ACMI adapts the face areas"
<<
" for "
<<
name
()
<<
" and "
<<
nonOverlapPatch
.
name
()
<<
" (to close cells) so this has"
<<
endl
<<
endl
;
<<
"to be done before cell centre calculation."
<<
endl
}
<<
"This can happen if e.g. the cyclicACMI is after"
<<
" any processor patches in the boundary."
<<
endl
//WarningInFunction
<<
"Continuing with potential for incorrect geometry"
// << "The mesh already has cellCentres calculated when"
<<
" calculation and mass loss"
<<
endl
;
// << " resetting ACMI " << name() << "." << endl
// << "This is a problem since ACMI adapts the face areas"
// << " (to close cells) so this has" << endl
// << "to be done before cell centre calculation." << endl
// << "This can happen if e.g. the cyclicACMI is after"
// << " any processor patches in the boundary." << endl;
const_cast
<
polyMesh
&>
(
boundaryMesh
().
mesh
()
).
primitiveMesh
::
clearGeom
();
}
}
...
...
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