Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
5d594d3f
Commit
5d594d3f
authored
Jul 07, 2016
by
sergio
Browse files
ENH: Adding support to moving mesh to activePressureForceBaffle
parent
0326b621
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/finiteVolume/fields/fvPatchFields/derived/activePressureForceBaffleVelocity/activePressureForceBaffleVelocityFvPatchVectorField.C
View file @
5d594d3f
...
...
@@ -332,6 +332,20 @@ void Foam::activePressureForceBaffleVelocityFvPatchVectorField::updateCoeffs()
areaFraction
=
1
-
openFraction_
;
}
if
(
patch
().
boundaryMesh
().
mesh
().
moving
())
{
// All areas have been recalculated already so are consistent
// with the new points. Note we already only do this routine
// once per timestep. The alternative is to use the upToDate
// mechanism for regIOobject + polyMesh::upToDatePoints
initWallSf_
=
patch
().
Sf
();
initCyclicSf_
=
patch
().
boundaryMesh
()[
cyclicPatchLabel_
].
Sf
();
nbrCyclicSf_
=
refCast
<
const
cyclicFvPatch
>
(
patch
().
boundaryMesh
()[
cyclicPatchLabel_
]
).
neighbFvPatch
().
Sf
();
}
// Update this wall patch
vectorField
::
subField
Sfw
=
patch
().
patch
().
faceAreas
();
vectorField
newSfw
((
1
-
areaFraction
)
*
initWallSf_
);
...
...
Write
Preview
Markdown
is supported
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