Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
fb138be9
Commit
fb138be9
authored
13 years ago
by
laurence
Browse files
Options
Downloads
Patches
Plain Diff
ENH: boundBox: Add function to return the faces.
parent
48bcc6f4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/OpenFOAM/meshes/boundBox/boundBox.C
+43
-0
43 additions, 0 deletions
src/OpenFOAM/meshes/boundBox/boundBox.C
src/OpenFOAM/meshes/boundBox/boundBox.H
+4
-0
4 additions, 0 deletions
src/OpenFOAM/meshes/boundBox/boundBox.H
with
47 additions
and
0 deletions
src/OpenFOAM/meshes/boundBox/boundBox.C
+
43
−
0
View file @
fb138be9
...
@@ -163,6 +163,49 @@ Foam::tmp<Foam::pointField> Foam::boundBox::points() const
...
@@ -163,6 +163,49 @@ Foam::tmp<Foam::pointField> Foam::boundBox::points() const
}
}
Foam
::
faceList
Foam
::
boundBox
::
faces
()
{
faceList
faces
(
6
);
forAll
(
faces
,
fI
)
{
faces
[
fI
].
setSize
(
4
);
}
faces
[
0
][
0
]
=
0
;
faces
[
0
][
1
]
=
1
;
faces
[
0
][
2
]
=
2
;
faces
[
0
][
3
]
=
3
;
faces
[
1
][
0
]
=
2
;
faces
[
1
][
1
]
=
6
;
faces
[
1
][
2
]
=
7
;
faces
[
1
][
3
]
=
3
;
faces
[
2
][
0
]
=
0
;
faces
[
2
][
1
]
=
4
;
faces
[
2
][
2
]
=
5
;
faces
[
2
][
3
]
=
1
;
faces
[
3
][
0
]
=
4
;
faces
[
3
][
1
]
=
7
;
faces
[
3
][
2
]
=
6
;
faces
[
3
][
3
]
=
5
;
faces
[
4
][
0
]
=
3
;
faces
[
4
][
1
]
=
7
;
faces
[
4
][
2
]
=
4
;
faces
[
4
][
3
]
=
0
;
faces
[
5
][
0
]
=
1
;
faces
[
5
][
1
]
=
5
;
faces
[
5
][
2
]
=
6
;
faces
[
5
][
3
]
=
2
;
return
faces
;
}
void
Foam
::
boundBox
::
inflate
(
const
scalar
s
)
void
Foam
::
boundBox
::
inflate
(
const
scalar
s
)
{
{
vector
ext
=
vector
::
one
*
s
*
mag
();
vector
ext
=
vector
::
one
*
s
*
mag
();
...
...
This diff is collapsed.
Click to expand it.
src/OpenFOAM/meshes/boundBox/boundBox.H
+
4
−
0
View file @
fb138be9
...
@@ -33,6 +33,7 @@ Description
...
@@ -33,6 +33,7 @@ Description
#define boundBox_H
#define boundBox_H
#include
"pointField.H"
#include
"pointField.H"
#include
"faceList.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
@@ -160,6 +161,9 @@ public:
...
@@ -160,6 +161,9 @@ public:
//- Return corner points in an order corresponding to a 'hex' cell
//- Return corner points in an order corresponding to a 'hex' cell
tmp
<
pointField
>
points
()
const
;
tmp
<
pointField
>
points
()
const
;
//- Return faces with correct point order
static
faceList
faces
();
// Manipulate
// Manipulate
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment