Loading...
Searching...
No Matches
adjointLaminar.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 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
29Class
30 Foam::incompressibleAdjoint::adjointRASModels::adjointLaminar
31
32Description
33 Dummy turbulence model for a laminar incompressible flow. Can also
34 be used when the "frozen turbulence" assumption is employed.
35
36SourceFiles
37 adjointLaminar.C
38
39\*---------------------------------------------------------------------------*/
40
41#ifndef adjointRasLaminar_H
42#define adjointRasLaminar_H
43
44#include "adjointRASModel.H"
45
46// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47
48namespace Foam
49{
51{
52namespace adjointRASModels
53{
55/*---------------------------------------------------------------------------*\
56 Class adjointLaminar Declaration
57\*---------------------------------------------------------------------------*/
58
59class adjointLaminar
60:
61 public adjointRASModel
62{
63private:
64
65 // Private Member Functions
66
67 //- No copy construct
68 adjointLaminar(const adjointLaminar&) = delete;
69
70 //- No copy assignment
71 void operator=(const adjointLaminar&) = delete;
72
73
74public:
75
76 //- Runtime type information
77 TypeName("adjointLaminar");
79
80 // Constructors
81
82 //- Construct from components
83 adjointLaminar
84 (
85 incompressibleVars& primalVars,
87 objectiveManager& objManager,
88 const word& adjointTurbulenceModelName
89 = adjointTurbulenceModel::typeName,
90 const word& modelName = typeName
91 );
92
93
94 //- Destructor
95 virtual ~adjointLaminar() = default;
96
97
98 // Member Functions
99
100 //- Return the effective stress tensor, i.e. the adjointLaminar stress
101 virtual tmp<volSymmTensorField> devReff() const;
102
103 //- Return the effective stress tensor based on a given velocity field
105 (
106 const volVectorField& U
107 ) const;
108
109 //- Return the diffusion term for the momentum equation
111
112 //- Source terms to the adjoint momentum equation due to the
113 //- differentiation of the turbulence model
115
116 //- Returns zero field
117 virtual const boundaryVectorField& adjointMomentumBCSource() const;
118
119 //- Returns zero field
121
122 //- Returns zero field
124
125 //- Returns zero field
127
128 //- Returns zero field
130
131 //- Returns zero field
133 (
134 const word& designVarsName
135 ) const;
136
137 //- Nullify all adjoint turbulence model fields and their old times
138 virtual void nullify();
139
140 //- Correct the primal viscosity field. Redundant?
141 virtual void correct();
142
143 //- Read adjointRASProperties dictionary
144 virtual bool read();
145};
146
147
148// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149
150} // End namespace adjointRASModels
151} // End namespace incompressibleAdjoint
152} // End namespace Foam
153
154// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155
156#endif
157
158// ************************************************************************* //
Manages the adjoint mean flow fields and their mean values.
virtual tmp< fvVectorMatrix > divDevReff(volVectorField &U) const
Return the diffusion term for the momentum equation.
virtual tmp< volTensorField > FISensitivityTerm()
Returns zero field.
virtual void correct()
Correct the primal viscosity field. Redundant?
virtual const boundaryVectorField & adjointMomentumBCSource() const
Returns zero field.
virtual tmp< volSymmTensorField > devReff() const
Return the effective stress tensor, i.e. the adjointLaminar stress.
virtual void nullify()
Nullify all adjoint turbulence model fields and their old times.
TypeName("adjointLaminar")
Runtime type information.
virtual const boundaryVectorField & wallShapeSensitivities()
Returns zero field.
virtual tmp< volVectorField > adjointMeanFlowSource()
Source terms to the adjoint momentum equation due to the differentiation of the turbulence model.
virtual const boundaryVectorField & wallFloCoSensitivities()
Returns zero field.
virtual tmp< volScalarField > distanceSensitivities()
Returns zero field.
virtual tmp< scalarField > topologySensitivities(const word &designVarsName) const
Returns zero field.
virtual bool read()
Read adjointRASProperties dictionary.
Base class for solution control classes.
Class for managing objective functions.
A class for managing temporary objects.
Definition tmp.H:75
A class for handling words, derived from Foam::string.
Definition word.H:66
U
Definition pEqn.H:72
Namespace for incompressible adjoint turbulence models.
Namespace for OpenFOAM.
GeometricField< vector, fvPatchField, volMesh > volVectorField
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
volVectorField::Boundary boundaryVectorField
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68