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
abf262f0
Commit
abf262f0
authored
Apr 05, 2012
by
mattijs
Browse files
ENH: polyMesh: movePoints to optionally clear tetBasePt structure
parent
70c9c27b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/meshes/polyMesh/polyMesh.C
View file @
abf262f0
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2012
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -1092,7 +1092,8 @@ const Foam::pointField& Foam::polyMesh::oldPoints() const
Foam
::
tmp
<
Foam
::
scalarField
>
Foam
::
polyMesh
::
movePoints
(
const
pointField
&
newPoints
const
pointField
&
newPoints
,
const
bool
deleteDemandDrivenData
)
{
if
(
debug
)
...
...
@@ -1146,6 +1147,14 @@ Foam::tmp<Foam::scalarField> Foam::polyMesh::movePoints
// Force recalculation of all geometric data with new points
if
(
deleteDemandDrivenData
)
{
// Remove the stored tet base points
tetBasePtIsPtr_
.
clear
();
// Remove the cell tree
cellTreePtr_
.
clear
();
}
bounds_
=
boundBox
(
points_
);
boundary_
.
movePoints
(
points_
);
...
...
src/OpenFOAM/meshes/polyMesh/polyMesh.H
View file @
abf262f0
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2012
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -442,7 +442,11 @@ public:
}
//- Move points, returns volumes swept by faces in motion
virtual
tmp
<
scalarField
>
movePoints
(
const
pointField
&
);
virtual
tmp
<
scalarField
>
movePoints
(
const
pointField
&
,
const
bool
deleteDemandDrivenData
=
false
);
//- Reset motion
void
resetMotion
()
const
;
...
...
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