Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
openfoam
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
352
Issues
352
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Development
openfoam
Commits
a8686043
Commit
a8686043
authored
Jul 13, 2020
by
mattijs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG: checkMesh: index into surfaceScalarField. Fixes
#1771
.
parent
9b78472e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
applications/utilities/mesh/manipulation/checkMesh/writeFields.C
...tions/utilities/mesh/manipulation/checkMesh/writeFields.C
+17
-3
No files found.
applications/utilities/mesh/manipulation/checkMesh/writeFields.C
View file @
a8686043
...
@@ -616,6 +616,17 @@ void Foam::writeFields
...
@@ -616,6 +616,17 @@ void Foam::writeFields
}
}
if
(
selectedFields
.
found
(
"faceZone"
))
if
(
selectedFields
.
found
(
"faceZone"
))
{
{
// Determine for each face the zone index (scalar for ease of
// manipulation)
scalarField
zoneID
(
mesh
.
nFaces
(),
-
1
);
const
faceZoneMesh
&
czs
=
mesh
.
faceZones
();
for
(
const
auto
&
zone
:
czs
)
{
UIndirectList
<
scalar
>
(
zoneID
,
zone
)
=
zone
.
index
();
}
// Split into internal and boundary values
surfaceScalarField
faceZone
surfaceScalarField
faceZone
(
(
IOobject
IOobject
...
@@ -632,10 +643,13 @@ void Foam::writeFields
...
@@ -632,10 +643,13 @@ void Foam::writeFields
calculatedFvsPatchScalarField
::
typeName
calculatedFvsPatchScalarField
::
typeName
);
);
const
faceZoneMesh
&
czs
=
mesh
.
faceZones
();
faceZone
.
primitiveFieldRef
()
=
for
(
const
auto
&
zone
:
czs
)
SubField
<
scalar
>
(
zoneID
,
mesh
.
nInternalFaces
());
surfaceScalarField
::
Boundary
&
bfld
=
faceZone
.
boundaryFieldRef
();
for
(
auto
&
pfld
:
bfld
)
{
{
UIndirectList
<
scalar
>
(
faceZone
,
zone
)
=
zone
.
index
();
const
fvPatch
&
fvp
=
pfld
.
patch
();
pfld
==
SubField
<
scalar
>
(
zoneID
,
fvp
.
size
(),
fvp
.
start
());
}
}
//faceZone.correctBoundaryConditions();
//faceZone.correctBoundaryConditions();
...
...
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