facGrad.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) 2016-2017 Wikki Ltd
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 InNamespace
27  Foam::fac
28 
29 Description
30  Calculate the gradient of the given field.
31 
32 SourceFiles
33  facGrad.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef facGrad_H
38 #define facGrad_H
39 
40 #include "areaFieldsFwd.H"
41 #include "edgeFieldsFwd.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Namespace fac functions Declaration
50 \*---------------------------------------------------------------------------*/
51 
52 namespace fac
53 {
54  template<class Type>
55  tmp
56  <
57  GeometricField
58  <typename outerProduct<vector, Type>::type, faPatchField, areaMesh>
59  > grad
60  (
61  const GeometricField<Type, faePatchField, edgeMesh>&
62  );
63 
64  template<class Type>
65  tmp
66  <
67  GeometricField
68  <typename outerProduct<vector, Type>::type, faPatchField, areaMesh>
69  > grad
70  (
71  const tmp<GeometricField<Type, faePatchField, edgeMesh>>&
72  );
73 
74  template<class Type>
75  tmp
76  <
77  GeometricField
78  <typename outerProduct<vector, Type>::type, faPatchField, areaMesh>
79  > grad
80  (
81  const GeometricField<Type, faPatchField, areaMesh>&,
82  const word& name
83  );
84 
85  template<class Type>
86  tmp
87  <
88  GeometricField
89  <typename outerProduct<vector, Type>::type, faPatchField, areaMesh>
90  > grad
91  (
92  const tmp<GeometricField<Type, faPatchField, areaMesh>>&,
93  const word& name
94  );
95 
96  template<class Type>
97  tmp
98  <
99  GeometricField
100  <typename outerProduct<vector, Type>::type, faPatchField, areaMesh>
101  > grad
102  (
103  const GeometricField<Type, faPatchField, areaMesh>&
104  );
105 
106  template<class Type>
107  tmp
108  <
109  GeometricField
110  <typename outerProduct<vector, Type>::type, faPatchField, areaMesh>
111  > grad
112  (
113  const tmp<GeometricField<Type, faPatchField, areaMesh>>&
114  );
115 }
116 
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 } // End namespace Foam
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 #ifdef NoRepository
125  #include "facGrad.C"
126 #endif
127 
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 
130 #endif
131 
132 // ************************************************************************* //
Calculate the second temporal derivative.
typeOfRank< typename pTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank) >::type type
Definition: products.H:118
Forwards for edge field types.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Definition: exprTraits.C:127
Forwards and collection of common area field types.
Namespace for OpenFOAM.
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh >> grad(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Definition: facGrad.C:51