FreeFOAM The Cross-Platform CFD Toolkit
muSgsWallFunctionFvPatchScalarField.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 | Copyright (C) 1991-2010 OpenCFD Ltd.
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::compressible::LESModels::muSgsWallFunctionFvPatchScalarField
26 
27 Description
28  Spalart Allmaas wall function boundary condition for compressible flows
29 
30 SourceFiles
31  muSgsWallFunctionFvPatchScalarField.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef muSgsWallFunctionFvPatchScalarField_H
36 #define muSgsWallFunctionFvPatchScalarField_H
37 
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 namespace compressible
45 {
46 namespace LESModels
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class muSgsWallFunctionFvPatchScalarField Declaration
51 \*---------------------------------------------------------------------------*/
52 
54 :
55  public fixedValueFvPatchScalarField
56 {
57  // Private data
58 
59  //- Name of velocity field
60  word UName_;
61 
62  //- Name of density field
63  word rhoName_;
64 
65  //- Name of laminar viscosity field
66  word muName_;
67 
68  //- Von Karman constant
69  scalar kappa_;
70 
71  //- E coefficient
72  scalar E_;
73 
74 
75 public:
76 
77  //- Runtime type information
78  TypeName("muSgsWallFunction");
79 
80 
81  // Constructors
82 
83  //- Construct from patch and internal field
85  (
86  const fvPatch&,
88  );
89 
90  //- Construct from patch, internal field and dictionary
92  (
93  const fvPatch&,
95  const dictionary&
96  );
97 
98  //- Construct by mapping given
99  // muSgsWallFunctionFvPatchScalarField
100  // onto a new patch
102  (
104  const fvPatch&,
106  const fvPatchFieldMapper&
107  );
108 
109  //- Construct as copy
111  (
113  );
114 
115  //- Construct and return a clone
117  {
119  (
121  );
122  }
123 
124  //- Construct as copy setting internal field reference
126  (
129  );
130 
131  //- Construct and return a clone setting internal field reference
132  virtual tmp<fvPatchScalarField> clone
133  (
135  ) const
136  {
138  (
140  (
141  *this,
142  iF
143  )
144  );
145  }
146 
147 
148  // Member functions
149 
150  // Evaluation functions
151 
152  //- Evaluate the patchField
153  virtual void evaluate
154  (
155  const Pstream::commsTypes commsType=Pstream::blocking
156  );
157 
158  // I-O
159 
160  //- Write
161  void write(Ostream&) const;
162 };
163 
164 
165 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
166 
167 } // End namespace LESModels
168 } // End namespace compressible
169 } // End namespace Foam
170 
171 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
172 
173 #endif
174 
175 // ************************ vim: set sw=4 sts=4 et: ************************ //