Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
12License
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 * * * * * * * * * * * * * //
36}
37
42}
43
48}
49
54}
55
56
65(
66 const label patchI
68{
69 return bdJdvPtr_()[patchI];
70}
71
72
73inline const Foam::fvPatchScalarField&
75(
76 const label patchI
78{
79 return bdJdvnPtr_()[patchI];
80}
81
82
83inline const Foam::fvPatchVectorField&
85(
86 const label patchI
88{
89 return bdJdvtPtr_()[patchI];
90}
91
92
93inline const Foam::fvPatchVectorField&
95(
96 const label patchI
98{
99 return bdJdpPtr_()[patchI];
100}
101
102
103inline const Foam::fvPatchScalarField&
105(
106 const label patchI
108{
109 return bdJdTPtr_()[patchI];
110}
111
112
113inline const Foam::fvPatchScalarField&
115(
116 const label patchI
118{
119 return bdJdTMvar1Ptr_()[patchI];
120}
121
122
123inline const Foam::fvPatchScalarField&
125(
126 const label patchI
128{
129 return bdJdTMvar2Ptr_()[patchI];
130}
131
132
133inline const Foam::fvPatchScalarField&
135(
136 const label patchI
138{
139 return bdJdnutPtr_()[patchI];
140}
141
142
143inline const Foam::fvPatchTensorField&
145(
146 const label patchI
148{
149 return bdJdGradUPtr_()[patchI];
150}
151
152
153inline const Foam::boundaryVectorField&
158
159
160inline const Foam::boundaryScalarField&
165
166
167inline const Foam::boundaryVectorField&
172
173
174inline const Foam::boundaryVectorField&
179
180
181inline const Foam::boundaryScalarField&
186
187
188inline const Foam::boundaryScalarField&
193
194
195inline const Foam::boundaryScalarField&
200
201
202inline const Foam::boundaryScalarField&
207
208
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
279}
280
285}
286
289{
290 return bool(bdJdnutPtr_);
291}
292
293
295{
296 return bool(bdJdGradUPtr_);
297}
298
299
300// ************************************************************************* //
const volScalarField & dJdTMvar1()
Contribution to field adjoint turbulence model variable 1.
autoPtr< volScalarField > dJdTMvar2Ptr_
Second turbulence model variable.
const volScalarField & dJdT()
Contribution to field adjoint energy eq.
bool hasdJdv() const noexcept
Inline functions for checking whether pointers are set or not.
autoPtr< boundaryTensorField > bdJdGradUPtr_
Term multiplying gradU variations.
autoPtr< boundaryScalarField > bdJdTMvar2Ptr_
Adjoint outlet turbulence model var 2.
autoPtr< volScalarField > dJdpPtr_
const volScalarField & dJdTMvar2()
Contribution to field adjoint turbulence model variable 2.
const boundaryVectorField & boundarydJdv()
Objective partial deriv wrt velocity for all patches.
const volVectorField & dJdv()
Contribution to field adjoint momentum eqs.
autoPtr< volScalarField > dJdTMvar1Ptr_
First turbulence model variable.
const volScalarField & dJdp()
Contribution to field adjoint continuity eq.
autoPtr< boundaryScalarField > bdJdTMvar1Ptr_
Adjoint outlet turbulence model var 1.
const boundaryScalarField & boundarydJdT()
Objective partial deriv wrt temperature for all patches.
const boundaryVectorField & boundarydJdp()
Objective partial deriv wrt pressure (times normal) for all patches.
const boundaryVectorField & boundarydJdvt()
Objective partial deriv wrt tangent velocity for all patches.
autoPtr< boundaryScalarField > bdJdnutPtr_
Jacobian wrt to nut.
autoPtr< boundaryScalarField > bdJdTPtr_
Adjoint outlet temperature.
autoPtr< boundaryScalarField > bdJdvnPtr_
Adjoint outlet pressure.
autoPtr< volScalarField > dJdTPtr_
const boundaryTensorField & boundarydJdGradU()
Objective partial deriv wrt gradU.
autoPtr< boundaryVectorField > bdJdpPtr_
Adjoint (intlet,wall) velocity.
const boundaryScalarField & boundarydJdnut()
Objective partial deriv wrt nut for all patches.
const boundaryScalarField & boundarydJdTMvar1()
Objective partial deriv wrt turbulence model var 1 for all patches.
const boundaryScalarField & boundarydJdTMvar2()
Objective partial deriv wrt turbulence model var 2 for all patches.
autoPtr< boundaryVectorField > bdJdvtPtr_
Adjoint outlet velocity.
autoPtr< boundaryVectorField > bdJdvPtr_
const boundaryScalarField & boundarydJdvn()
Objective partial deriv wrt normal velocity for all patches.
autoPtr< volVectorField > dJdvPtr_
volScalarField::Boundary boundaryScalarField
volFields
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
fvPatchField< tensor > fvPatchTensorField
volTensorField::Boundary boundaryTensorField
const direction noexcept
Definition scalarImpl.H:265
volVectorField::Boundary boundaryVectorField
fvPatchField< vector > fvPatchVectorField
fvPatchField< scalar > fvPatchScalarField