singleLayerRegionTemplates.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2016 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 \*---------------------------------------------------------------------------*/
27 
28 #include "singleLayerRegion.H"
32 
33 // * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * * //
34 
35 template<class Type>
38 {
39  wordList bTypes(regionMesh().boundaryMesh().size());
40 
42 
44  {
45  const label patchi = intCoupledPatchIDs_[i];
47  }
48 
49  return bTypes;
50 }
51 
52 
53 template<class Type>
56 {
57  wordList bTypes(regionMesh().boundaryMesh().size());
58 
60 
61  forAll(intCoupledPatchIDs_, i)
62  {
63  const label patchi = intCoupledPatchIDs_[i];
64  bTypes[patchi] =
66  }
67 
68  return bTypes;
69 }
70 
71 
72 // ************************************************************************* //
Foam::mappedFixedPushedInternalValueFvPatchField
This boundary condition maps the boundary values of a neighbour patch field to the boundary and inter...
Definition: mappedFixedPushedInternalValueFvPatchField.H:107
Foam::regionModels::singleLayerRegion::mappedFieldAndInternalPatchTypes
wordList mappedFieldAndInternalPatchTypes() const
Return boundary types for mapped field patches.
mappedFixedInternalValueFvPatchFields.H
Foam::mappedFixedInternalValueFvPatchField
This boundary condition maps the boundary and internal values of a neighbour patch field to the bound...
Definition: mappedFixedInternalValueFvPatchField.H:105
Foam::zeroGradientFvPatchField
This boundary condition applies a zero-gradient condition from the patch internal field onto the patc...
Definition: zeroGradientFvPatchField.H:64
forAll
#define forAll(list, i)
Loop across all elements in list.
Definition: stdFoam.H:296
singleLayerRegion.H
Foam::regionModels::regionModel::regionMesh
const fvMesh & regionMesh() const
Return the region mesh database.
Definition: regionModelI.H:64
Foam::regionModels::singleLayerRegion::mappedPushedFieldPatchTypes
wordList mappedPushedFieldPatchTypes() const
Return boundary types for pushed mapped field patches.
Foam::List< word >
Foam::regionModels::regionModel::intCoupledPatchIDs_
labelList intCoupledPatchIDs_
List of patch IDs internally coupled with the primary region.
Definition: regionModel.H:114
Foam::boundaryMesh
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface....
Definition: boundaryMesh.H:62
mappedFixedPushedInternalValueFvPatchFields.H
zeroGradientFvPatchFields.H