37#ifndef incompressibleAdjointSolver_H
38#define incompressibleAdjointSolver_H
101 const word& managerType,
115 const word& managerType,
127 const word& managerType,
196 virtual bool write(
const bool valid =
true)
const
Generic GeometricBoundaryField class.
bool writeTime() const noexcept
True if this is a write time.
Base class for adjoint solvers.
const word & primalSolverName() const
Return the primal solver name.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
Base class for incompressibleAdjoint solvers.
autoPtr< ATCModel > ATCModel_
Adjoint Transpose Convection options.
TypeName("incompressible")
Run-time type information.
const incompressibleVars & getPrimalVars() const
Access to the incompressible primal variables set.
const autoPtr< ATCModel > & getATCModel() const
Access to the ATC model.
virtual ~incompressibleAdjointSolver()=default
Destructor.
virtual void additionalSensitivityMapTerms(boundaryVectorField &sensitivityMap, const labelHashSet &patchIDs, const scalar dt)
virtual bool write(const bool valid=true) const
virtual bool readDict(const dictionary &dict)
Read dict if updated.
virtual const incompressibleAdjointVars & getAdjointVars() const
Access to the incompressible adjoint variables set.
virtual bool useSolverNameForFields() const
Should solver name be appended to fields.
virtual void updatePrimalBasedQuantities()
virtual bool writeNow() const
declareRunTimeSelectionTable(autoPtr, incompressibleAdjointSolver, dictionary,(fvMesh &mesh, const word &managerType, const dictionary &dict, const word &primalSolverName),(mesh, managerType, dict, primalSolverName))
virtual tmp< volTensorField > computeGradDxDbMultiplier()
Compute the multiplier for grad(dxdb)
incompressibleVars & primalVars_
Primal variable set.
static autoPtr< incompressibleAdjointSolver > New(fvMesh &mesh, const word &managerType, const dictionary &dict, const word &primalSolverName)
Return a reference to the selected incompressible adjoint solver.
Class including all adjoint fields for incompressible flows.
Base class for solution control classes.
virtual const dictionary & dict() const
Return the solver dictionary.
const fvMesh & mesh() const
Return the solver mesh.
fvMesh & mesh_
Reference to the mesh database.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.