mappedVariableThicknessWallFvPatch.H
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 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 Class
27  Foam::mappedVariableThicknessWallFvPatch
28 
29 Group
30  grpRegionBoundaryConditions
31 
32 Description
33  Take thickness field and number of layers and returns deltaCoeffs
34  as 2.0/thickness/nLayers.
35  To be used with 1D thermo baffle.
36 
37 SourceFiles
38  mappedVariableThicknessWallFvPatch.C
39 
40 \*---------------------------------------------------------------------------*/
41 
42 #ifndef mappedVariableThicknessWallFvPatch_H
43 #define mappedVariableThicknessWallFvPatch_H
44 
45 #include "wallFvPatch.H"
47 
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 
50 namespace Foam
51 {
52 
53 /*---------------------------------------------------------------------------*\
54  Class mappedVariableThicknessWallFvPatch Declaration
55 \*---------------------------------------------------------------------------*/
56 
58 :
59  public wallFvPatch
60 {
61 
62 protected:
63 
64  // Protected Member Functions
65 
66  //- Read neighbour cell distances from dictionary
67  void makeDeltaCoeffs(scalarField& dc) const;
68 
69 
70 public:
71 
72  //- Runtime type information
73  TypeName(mappedVariableThicknessWallPolyPatch::typeName_());
74 
75 
76  // Constructors
77 
78  //- Construct from components
80  (
81  const polyPatch& patch,
82  const fvBoundaryMesh& bm
83  )
84  :
85  wallFvPatch(patch, bm)
86  {}
87 };
88 
89 
90 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
91 
92 } // End namespace Foam
93 
94 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
95 
96 #endif
97 
98 // ************************************************************************* //
wallFvPatch.H
Foam::mappedVariableThicknessWallFvPatch::TypeName
TypeName(mappedVariableThicknessWallPolyPatch::typeName_())
Runtime type information.
Foam::fvBoundaryMesh
Foam::fvBoundaryMesh.
Definition: fvBoundaryMesh.H:56
Foam::wallFvPatch::wallFvPatch
wallFvPatch(const polyPatch &patch, const fvBoundaryMesh &bm)
Construct from components.
Definition: wallFvPatch.H:65
Foam::Field< scalar >
Foam::polyPatch
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:68
Foam::wallFvPatch
Foam::wallFvPatch.
Definition: wallFvPatch.H:51
Foam::mappedVariableThicknessWallFvPatch::mappedVariableThicknessWallFvPatch
mappedVariableThicknessWallFvPatch(const polyPatch &patch, const fvBoundaryMesh &bm)
Construct from components.
Definition: mappedVariableThicknessWallFvPatch.H:79
Foam::mappedVariableThicknessWallFvPatch
Take thickness field and number of layers and returns deltaCoeffs as 2.0/thickness/nLayers....
Definition: mappedVariableThicknessWallFvPatch.H:56
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
mappedVariableThicknessWallPolyPatch.H
Foam::fvPatch::patch
const polyPatch & patch() const
Return the polyPatch.
Definition: fvPatch.H:161
Foam::mappedVariableThicknessWallFvPatch::makeDeltaCoeffs
void makeDeltaCoeffs(scalarField &dc) const
Read neighbour cell distances from dictionary.
Definition: mappedVariableThicknessWallFvPatch.C:49