Go to the documentation of this file.
47 #ifndef adjointSimple_H
48 #define adjointSimple_H
131 const word& managerType,
162 virtual void solve();
void continuityErrors()
Compute continuity errors.
virtual void clearSensitivities()
Base class for incompressibleAdjoint solvers.
A class for handling words, derived from Foam::string.
virtual void solveIter()
Execute one iteration of the solution algorithm.
const word & primalSolverName() const
Return the primal solver name.
virtual void computeObjectiveSensitivities()
Compute sensitivities of the underlaying objectives.
virtual void addMomentumSource(fvVectorMatrix &matrix)
Source terms for the momentum equations.
incompressibleAdjointVars & adjointVars_
Reference to incompressibleAdjointVars.
virtual void preLoop()
Functions to be called before loop.
Class including all adjoint fields for incompressible flows.
virtual void preIter()
Steps to be executed before each main SIMPLE iteration.
autoPtr< incompressible::adjointSensitivity > adjointSensitivity_
Sensitivity Derivatives engine.
virtual void addPressureSource(fvScalarMatrix &matrix)
Source terms for the continuity equation.
virtual sensitivity & getSensitivityBase()
Return the base sensitivity object.
virtual ~adjointSimple()=default
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Mesh data needed to do the Finite Volume discretisation.
virtual void solve()
Main control loop.
Solution of the adjoint PDEs for incompressible, steady-state flows.
virtual void mainIter()
The main SIMPLE iter.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const fvMesh & mesh() const
Return the solver mesh.
virtual bool readDict(const dictionary &dict)
Read dict if updated.
virtual void updatePrimalBasedQuantities()
virtual void postIter()
Steps to be executed before each main SIMPLE iteration.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
virtual bool writeData(Ostream &os) const
Write average iteration.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
TypeName("adjointSimple")
Run-time type information.
virtual const scalarField & getObjectiveSensitivities()
Grab a reference to the computed sensitivities.
Abstract base class for adjoint sensitivities.
virtual const dictionary & dict() const
Return the solver dictionary.
virtual bool loop()
Looper (advances iters, time step)
autoPtr< SIMPLEControl > solverControl_
Solver control.
scalar cumulativeContErr_
Cumulative continuity error.
incompressibleAdjointVars & allocateVars()