Loading...
Searching...
No Matches
adjointSolverI.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) 2021 PCOpt/NTUA
9 Copyright (C) 2021 FOSS GP
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27\*---------------------------------------------------------------------------*/
28
29// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
34}
35
44{
45 return
46 const_cast<primalSolver&>
47 (
49 );
50}
51
52
57}
58
63}
64
67{
68 return isConstraint_;
69}
70
71
73{
74 return isDoubleSidedConstraint_;
75}
76
77
78// ************************************************************************* //
objectiveManager objectiveManager_
Object to manage objective functions.
bool isDoubleSidedConstraint()
Is the solving referring to a double-sided constraint.
const primalSolver & getPrimalSolver() const
Return a const-reference to the primal solver corresponding to this adjoint solver.
const word & primalSolverName() const
Return the primal solver name.
bool isConstraint()
Is the solving referring to a constraint.
const word primalSolverName_
Name of primal solver.
bool isDoubleSidedConstraint_
Is the adjoint solver used to tackle a double-sided constraint.
bool isConstraint_
Is the adjoint solver used to tackle a constraint.
const objectiveManager & getObjectiveManager() const
Return a const reference to the objective manager.
Class for managing objective functions.
Base class for primal solvers.
fvMesh & mesh_
Reference to the mesh database.
Definition solver.H:56
A class for handling words, derived from Foam::string.
Definition word.H:66