Skip to content
GitLab
Menu
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
302b4443
Commit
302b4443
authored
Apr 20, 2020
by
mattijs
Browse files
ENH: mappedPatchBase: support topo changes. Fixes
#1676
parent
04fc5295
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBaseI.H
View file @
302b4443
...
...
@@ -145,6 +145,14 @@ inline bool Foam::mappedPatchBase::sameRegion() const
inline
const
Foam
::
mapDistribute
&
Foam
::
mappedPatchBase
::
map
()
const
{
const
polyMesh
&
thisMesh
=
patch_
.
boundaryMesh
().
mesh
();
bool
topoChange
=
sampleMesh
().
topoChanging
()
||
thisMesh
.
topoChanging
();
if
(
topoChange
)
{
mapPtr_
.
clear
();
}
if
(
mapPtr_
.
empty
())
{
calcMapping
();
...
...
@@ -159,7 +167,15 @@ inline const Foam::AMIPatchToPatchInterpolation& Foam::mappedPatchBase::AMI
bool
forceUpdate
)
const
{
if
(
forceUpdate
||
AMIPtr_
.
empty
())
const
polyMesh
&
thisMesh
=
patch_
.
boundaryMesh
().
mesh
();
bool
topoChange
=
sampleMesh
().
topoChanging
()
||
thisMesh
.
topoChanging
();
if
(
topoChange
||
forceUpdate
)
{
AMIPtr_
.
clear
();
}
if
(
AMIPtr_
.
empty
())
{
calcAMI
();
}
...
...
Write
Preview
Supports
Markdown
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