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-plus
Commits
3d66b926
Commit
3d66b926
authored
Mar 16, 2018
by
Andrew Heather
Browse files
BUG: Reinstated regex functionality for particle local interaction
parent
fe91e842
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/lagrangian/intermediate/submodels/Kinematic/PatchInteractionModel/LocalInteraction/patchInteractionData.C
View file @
3d66b926
...
...
@@ -46,7 +46,7 @@ const Foam::word& Foam::patchInteractionData::interactionTypeName() const
}
const
Foam
::
word
&
Foam
::
patchInteractionData
::
patchName
()
const
const
Foam
::
keyType
&
Foam
::
patchInteractionData
::
patchName
()
const
{
return
patchName_
;
}
...
...
src/lagrangian/intermediate/submodels/Kinematic/PatchInteractionModel/LocalInteraction/patchInteractionData.H
View file @
3d66b926
...
...
@@ -61,7 +61,7 @@ class patchInteractionData
word
interactionTypeName_
;
//- Patch name
word
patchName_
;
keyType
patchName_
;
//- Elasticity coefficient
scalar
e_
;
...
...
@@ -86,7 +86,7 @@ public:
const
word
&
interactionTypeName
()
const
;
//- Return const access to the patch name
const
word
&
patchName
()
const
;
const
keyType
&
patchName
()
const
;
//- Return const access to the elasticity coefficient
scalar
e
()
const
;
...
...
src/lagrangian/intermediate/submodels/Kinematic/PatchInteractionModel/LocalInteraction/patchInteractionDataList.C
View file @
3d66b926
...
...
@@ -24,7 +24,6 @@ License
\*---------------------------------------------------------------------------*/
#include
"patchInteractionDataList.H"
#include
"stringListOps.H"
#include
"emptyPolyPatch.H"
// * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * //
...
...
@@ -46,13 +45,11 @@ Foam::patchInteractionDataList::patchInteractionDataList
patchGroupIDs_
(
this
->
size
())
{
const
polyBoundaryMesh
&
bMesh
=
mesh
.
boundaryMesh
();
const
wordList
allPatchNames
(
bMesh
.
names
());
const
List
<
patchInteractionData
>&
items
=
*
this
;
forAllReverse
(
items
,
i
)
{
const
word
&
patchName
=
items
[
i
].
patchName
();
labelList
ids
=
findIndices
(
allPatchNames
,
patchName
);
const
keyType
&
patchName
=
items
[
i
].
patchName
();
labelList
ids
=
bMesh
.
findIndices
(
patchName
);
if
(
ids
.
empty
())
{
...
...
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