Skip to content
GitLab
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
70f1bad0
Commit
70f1bad0
authored
Mar 04, 2009
by
mattijs
Browse files
mesh.C on cyclics
parent
8de54d3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/finiteVolume/fvMesh/fvMeshGeometry.C
View file @
70f1bad0
...
...
@@ -31,6 +31,7 @@ License
#include
"slicedVolFields.H"
#include
"slicedSurfaceFields.H"
#include
"SubField.H"
#include
"cyclicFvPatchFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
@@ -146,6 +147,27 @@ void fvMesh::makeC() const
cellCentres
(),
faceCentres
()
);
// Need to correct for cyclics transformation since absolute quantity.
// Ok on processor patches since hold opposite cell centre (no
// transformation)
slicedVolVectorField
&
C
=
*
CPtr_
;
forAll
(
C
.
boundaryField
(),
patchi
)
{
if
(
isA
<
cyclicFvPatchVectorField
>
(
C
.
boundaryField
()[
patchi
]))
{
// Note: cyclic is not slice but proper field
C
.
boundaryField
()[
patchi
]
==
static_cast
<
const
vectorField
&>
(
static_cast
<
const
List
<
vector
>&>
(
boundary_
[
patchi
].
patchSlice
(
faceCentres
())
)
);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment