objectiveIncompressibleI.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) 2007-2023 PCOpt/NTUA
9  Copyright (C) 2013-2023 FOSS GP
10  Copyright (C) 2019-2020 OpenCFD Ltd.
11 -------------------------------------------------------------------------------
12 License
13  This file is part of OpenFOAM.
14 
15  OpenFOAM is free software: you can redistribute it and/or modify it
16  under the terms of the GNU General Public License as published by
17  the Free Software Foundation, either version 3 of the License, or
18  (at your option) any later version.
19 
20  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
21  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
22  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23  for more details.
24 
25  You should have received a copy of the GNU General Public License
26  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
27 
28 
29 \*---------------------------------------------------------------------------*/
30 
31 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
32 
34 {
35  return *dJdvPtr_;
36 }
37 
38 
40 {
41  return *dJdpPtr_;
42 }
43 
44 
46 {
47  return *dJdTPtr_;
48 }
49 
50 
52 {
53  return *dJdTMvar1Ptr_;
54 }
55 
56 
58 {
59  return *dJdTMvar2Ptr_;
60 }
61 
62 
63 inline const Foam::fvPatchVectorField&
65 (
66  const label patchI
67 )
68 {
69  return bdJdvPtr_()[patchI];
70 }
71 
72 
73 inline const Foam::fvPatchScalarField&
75 (
76  const label patchI
77 )
78 {
79  return bdJdvnPtr_()[patchI];
80 }
81 
82 
83 inline const Foam::fvPatchVectorField&
85 (
86  const label patchI
87 )
88 {
89  return bdJdvtPtr_()[patchI];
90 }
91 
92 
93 inline const Foam::fvPatchVectorField&
95 (
96  const label patchI
97 )
98 {
99  return bdJdpPtr_()[patchI];
100 }
101 
102 
103 inline const Foam::fvPatchScalarField&
105 (
106  const label patchI
107 )
108 {
109  return bdJdTPtr_()[patchI];
110 }
111 
112 
113 inline const Foam::fvPatchScalarField&
115 (
116  const label patchI
117 )
118 {
119  return bdJdTMvar1Ptr_()[patchI];
120 }
121 
122 
123 inline const Foam::fvPatchScalarField&
125 (
126  const label patchI
127 )
128 {
129  return bdJdTMvar2Ptr_()[patchI];
130 }
131 
132 
133 inline const Foam::fvPatchScalarField&
135 (
136  const label patchI
137 )
138 {
139  return bdJdnutPtr_()[patchI];
140 }
141 
142 
143 inline const Foam::fvPatchTensorField&
145 (
146  const label patchI
147 )
148 {
149  return bdJdGradUPtr_()[patchI];
150 }
151 
152 
153 inline const Foam::boundaryVectorField&
155 {
156  return bdJdvPtr_();
157 }
158 
159 
160 inline const Foam::boundaryScalarField&
162 {
163  return bdJdvnPtr_();
164 }
165 
166 
167 inline const Foam::boundaryVectorField&
169 {
170  return bdJdvtPtr_();
171 }
172 
173 
174 inline const Foam::boundaryVectorField&
176 {
177  return bdJdpPtr_();
178 }
179 
180 
181 inline const Foam::boundaryScalarField&
183 {
184  return bdJdTPtr_();
185 }
186 
187 
188 inline const Foam::boundaryScalarField&
190 {
191  return bdJdTMvar1Ptr_();
192 }
193 
194 
195 inline const Foam::boundaryScalarField&
197 {
198  return bdJdTMvar2Ptr_();
199 }
200 
201 
202 inline const Foam::boundaryScalarField&
204 {
205  return bdJdnutPtr_();
206 }
207 
208 
211 {
212  return *bdJdGradUPtr_;
213 }
214 
217 {
218  return bool(dJdvPtr_);
219 }
220 
223 {
224  return bool(dJdpPtr_);
225 }
226 
229 {
230  return bool(dJdTPtr_);
231 }
232 
235 {
236  return bool(dJdTMvar1Ptr_);
237 }
238 
241 {
242  return bool(dJdTMvar2Ptr_);
243 }
244 
247 {
248  return bool(bdJdvPtr_);
249 }
250 
253 {
254  return bool(bdJdvnPtr_);
255 }
256 
259 {
260  return bool(bdJdvtPtr_);
261 }
262 
265 {
266  return bool(bdJdpPtr_);
267 }
268 
271 {
272  return bool(bdJdTPtr_);
273 }
274 
277 {
278  return bool(bdJdTMvar1Ptr_);
279 }
280 
283 {
284  return bool(bdJdTMvar2Ptr_);
285 }
286 
289 {
290  return bool(bdJdnutPtr_);
291 }
292 
293 
295 {
296  return bool(bdJdGradUPtr_);
297 }
298 
299 
300 // ************************************************************************* //
bool hasBoundarydJdTMVar1() const noexcept
bool hasdJdv() const noexcept
Inline functions for checking whether pointers are set or not.
const boundaryScalarField & boundarydJdTMvar1()
Objective partial deriv wrt turbulence model var 1 for all patches.
const volScalarField & dJdTMvar1()
Contribution to field adjoint turbulence model variable 1.
const boundaryVectorField & boundarydJdv()
Objective partial deriv wrt velocity for all patches.
const boundaryScalarField & boundarydJdTMvar2()
Objective partial deriv wrt turbulence model var 2 for all patches.
autoPtr< volVectorField > dJdvPtr_
const volVectorField & dJdv()
Contribution to field adjoint momentum eqs.
const direction noexcept
Definition: Scalar.H:258
const boundaryTensorField & boundarydJdGradU()
Objective partial deriv wrt gradU.
bool hasBoundarydJdTMVar2() const noexcept
const boundaryScalarField & boundarydJdnut()
Objective partial deriv wrt nut for all patches.
const boundaryVectorField & boundarydJdvt()
Objective partial deriv wrt tangent velocity for all patches.
const volScalarField & dJdp()
Contribution to field adjoint continuity eq.
const volScalarField & dJdT()
Contribution to field adjoint energy eq.
const volScalarField & dJdTMvar2()
Contribution to field adjoint turbulence model variable 2.
const boundaryVectorField & boundarydJdp()
Objective partial deriv wrt pressure (times normal) for all patches.
const boundaryScalarField & boundarydJdvn()
Objective partial deriv wrt normal velocity for all patches.
const boundaryScalarField & boundarydJdT()
Objective partial deriv wrt temperature for all patches.