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
644c0f4a
Commit
644c0f4a
authored
Nov 06, 2018
by
Mark Olesen
Browse files
ENH: make dictionary of topoSet box sources consistent with searchableBox
parent
72ae1215
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/meshTools/sets/cellSources/boxToCell/boxToCell.C
View file @
644c0f4a
...
...
@@ -114,11 +114,15 @@ Foam::boxToCell::boxToCell
topoSetCellSource
(
mesh
),
bbs_
()
{
//
Look for
'box
es
' or '
bo
x'
//
Accept 'boxes',
'box' or '
min/ma
x'
if
(
!
dict
.
readIfPresent
(
"boxes"
,
bbs_
))
{
bbs_
.
resize
(
1
);
dict
.
readEntry
(
"box"
,
bbs_
.
first
());
if
(
!
dict
.
readIfPresent
(
"box"
,
bbs_
.
first
()))
{
dict
.
readEntry
<
point
>
(
"min"
,
bbs_
.
first
().
min
());
dict
.
readEntry
<
point
>
(
"max"
,
bbs_
.
first
().
max
());
}
}
}
...
...
src/meshTools/sets/cellSources/boxToCell/boxToCell.H
View file @
644c0f4a
...
...
@@ -30,13 +30,15 @@ Description
\heading Dictionary parameters
\table
Property | Description | Required | Default
box | A single bounding box | partly |
boxes | Multiple bounding boxes | partly |
box | A single bounding box | partly |
min | Minimum point for a single box | partly |
max | Maximum point for a single box | partly |
\endtable
Note
Must specify either "box" or
"boxes"
.
The selection of multiple boxes has precedence
.
In the order of highest to lowest precedence, must specify
"boxes"
,
"box" or a "min/max" pair (compatibility with searchable box)
.
SourceFiles
boxToCell.C
...
...
@@ -92,7 +94,7 @@ public:
//- Construct from dictionary
boxToCell
(
const
polyMesh
&
mesh
,
const
dictionary
&
dict
);
//- Construct from
I
stream
//- Construct from stream
- a single box.
boxToCell
(
const
polyMesh
&
mesh
,
Istream
&
is
);
...
...
src/meshTools/sets/faceSources/boxToFace/boxToFace.C
View file @
644c0f4a
...
...
@@ -114,11 +114,15 @@ Foam::boxToFace::boxToFace
topoSetFaceSource
(
mesh
),
bbs_
()
{
//
Look for
'box
es
' or '
bo
x'
//
Accept 'boxes',
'box' or '
min/ma
x'
if
(
!
dict
.
readIfPresent
(
"boxes"
,
bbs_
))
{
bbs_
.
resize
(
1
);
dict
.
readEntry
(
"box"
,
bbs_
.
first
());
if
(
!
dict
.
readIfPresent
(
"box"
,
bbs_
.
first
()))
{
dict
.
readEntry
<
point
>
(
"min"
,
bbs_
.
first
().
min
());
dict
.
readEntry
<
point
>
(
"max"
,
bbs_
.
first
().
max
());
}
}
}
...
...
src/meshTools/sets/faceSources/boxToFace/boxToFace.H
View file @
644c0f4a
...
...
@@ -30,13 +30,15 @@ Description
\heading Dictionary parameters
\table
Property | Description | Required | Default
box | A single bounding box | partly |
boxes | Multiple bounding boxes | partly |
box | A single bounding box | partly |
min | Minimum point for a single box | partly |
max | Maximum point for a single box | partly |
\endtable
Note
Must specify either "box" or
"boxes"
.
The selection of multiple boxes has precedence
.
In the order of highest to lowest precedence, must specify
"boxes"
,
"box" or a "min/max" pair (compatibility with searchable box)
.
SourceFiles
boxToFace.C
...
...
@@ -92,7 +94,7 @@ public:
//- Construct from dictionary
boxToFace
(
const
polyMesh
&
mesh
,
const
dictionary
&
dict
);
//- Construct from
I
stream
//- Construct from stream
- a single box.
boxToFace
(
const
polyMesh
&
mesh
,
Istream
&
is
);
...
...
src/meshTools/sets/pointSources/boxToPoint/boxToPoint.C
View file @
644c0f4a
...
...
@@ -114,11 +114,15 @@ Foam::boxToPoint::boxToPoint
topoSetPointSource
(
mesh
),
bbs_
()
{
//
Look for
'box
es
' or '
bo
x'
//
Accept 'boxes',
'box' or '
min/ma
x'
if
(
!
dict
.
readIfPresent
(
"boxes"
,
bbs_
))
{
bbs_
.
resize
(
1
);
dict
.
readEntry
(
"box"
,
bbs_
.
first
());
if
(
!
dict
.
readIfPresent
(
"box"
,
bbs_
.
first
()))
{
dict
.
readEntry
<
point
>
(
"min"
,
bbs_
.
first
().
min
());
dict
.
readEntry
<
point
>
(
"max"
,
bbs_
.
first
().
max
());
}
}
}
...
...
src/meshTools/sets/pointSources/boxToPoint/boxToPoint.H
View file @
644c0f4a
...
...
@@ -30,13 +30,15 @@ Description
\heading Dictionary parameters
\table
Property | Description | Required | Default
box | A single bounding box | partly |
boxes | Multiple bounding boxes | partly |
box | A single bounding box | partly |
min | Minimum point for a single box | partly |
max | Maximum point for a single box | partly |
\endtable
Note
Must specify either "box" or
"boxes"
.
The selection of multiple boxes has precedence
.
In the order of highest to lowest precedence, must specify
"boxes"
,
"box" or a "min/max" pair (compatibility with searchable box)
.
SourceFiles
boxToPoint.C
...
...
@@ -93,7 +95,7 @@ public:
//- Construct from dictionary
boxToPoint
(
const
polyMesh
&
mesh
,
const
dictionary
&
dict
);
//- Construct from
I
stream
//- Construct from stream
- a single box.
boxToPoint
(
const
polyMesh
&
mesh
,
Istream
&
is
);
...
...
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