Go to the documentation of this file.
40 #ifndef objectiveIncompressible_H
41 #define objectiveIncompressible_H
128 const word& adjointSolverName,
129 const word& primalSolverName
131 (
mesh,
dict, adjointSolverName, primalSolverName)
142 const word& adjointSolverName,
143 const word& primalSolverName
154 const word& adjointSolverName,
155 const word& primalSolverName
166 virtual scalar
J() = 0;
309 virtual bool write(
const bool valid =
true)
const;
autoPtr< boundaryScalarField > bdJdTPtr_
Adjoint outlet temperature.
const volVectorField & dJdv()
Contribution to field adjoint momentum eqs.
virtual scalar J()=0
Return the objective function value.
A class for handling words, derived from Foam::string.
virtual void update_boundarydJdTMvar1()
bool hasBoundarydJdvn() const
bool hasBoundarydJdp() const
const incompressibleVars & vars_
virtual void update_boundarydJdb()
virtual ~objectiveIncompressible()=default
Destructor.
virtual void update_boundarydJdTMvar2()
autoPtr< boundaryScalarField > bdJdTMvar2Ptr_
Adjoint outlet turbulence model var 2.
virtual void update_dJdp()
virtual void update_gradDxDbMultiplier()
autoPtr< boundaryScalarField > bdJdvnPtr_
Adjoint outlet pressure.
virtual void update_dJdTMvar1()
autoPtr< boundaryVectorField > bdJdvPtr_
const volScalarField & dJdTMvar1()
Contribution to field adjoint turbulence model variable 1.
virtual void update_dJdb()
virtual bool write(const bool valid=true) const
Write objective function history.
autoPtr< boundaryVectorField > bdJdvtPtr_
Adjoint outlet velocity.
bool hasBoundarydJdv() const
virtual void update_dJdv()
Update vol and boundary fields and derivatives.
virtual void update_dxdbMultiplier()
TypeName("incompressible")
Runtime type information.
virtual void update_dSdbMultiplier()
const boundaryVectorField & boundarydJdv()
Objective partial deriv wrt velocity for all patches.
virtual void update_dndbMultiplier()
declareRunTimeSelectionTable(autoPtr, objectiveIncompressible, dictionary,(const fvMesh &mesh, const dictionary &dict, const word &adjointSolverName, const word &primalSolverName),(mesh, dict, adjointSolverName, primalSolverName))
autoPtr< volScalarField > dJdpPtr_
virtual void update_boundarydJdv()
virtual void update_dJdTMvar2()
static autoPtr< objectiveIncompressible > New(const fvMesh &mesh, const dictionary &dict, const word &adjointSolverName, const word &primalSolverName)
Return a reference to the selected turbulence model.
virtual void update_dxdbDirectMultiplier()
Abstract base class for objective functions in incompressible flows.
virtual void update_boundarydJdT()
bool hasBoundarydJdT() const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
autoPtr< boundaryScalarField > bdJdTMvar1Ptr_
Adjoint outlet turbulence model var 1.
virtual void update_boundarydJdp()
const volScalarField & dJdp()
Contribution to field adjoint continuity eq.
const boundaryScalarField & boundarydJdT()
Objective partial deriv wrt temperature for all patches.
autoPtr< volScalarField > dJdTPtr_
Mesh data needed to do the Finite Volume discretisation.
virtual void update_boundarydJdvn()
autoPtr< volScalarField > dJdTMvar1Ptr_
First turbulence model variable.
const volScalarField & dJdT()
Contribution to field adjoint energy eq.
const boundaryScalarField & boundarydJdvn()
Objective partial deriv wrt normal velocity for all patches.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
bool hasBoundarydJdTMVar2() const
autoPtr< volVectorField > dJdvPtr_
virtual void nullify()
Update objective function derivatives.
virtual void update_meanValues()
bool hasdJdTMVar2() const
const boundaryScalarField & boundarydJdTMvar2()
Objective partial deriv wrt turbulence model var 2 for all patches.
virtual void update_divDxDbMultiplier()
autoPtr< volScalarField > dJdTMvar2Ptr_
Second turbulence model variable.
const volScalarField & dJdTMvar2()
Contribution to field adjoint turbulence model variable 2.
const boundaryVectorField & boundarydJdp()
Objective partial deriv wrt pressure (times normal) for all patches.
bool hasBoundarydJdTMVar1() const
virtual void update_boundarydJdvt()
const boundaryScalarField & boundarydJdTMvar1()
Objective partial deriv wrt turbulence model var 1 for all patches.
virtual void update()
Update objective function derivatives.
bool hasBoundarydJdvt() const
autoPtr< boundaryVectorField > bdJdpPtr_
Adjoint (intlet,wall) velocity.
bool hasdJdv() const
Inline functions for checking whether pointers are set or not.
const boundaryVectorField & boundarydJdvt()
Objective partial deriv wrt tangent velocity for all patches.
Abstract base class for objective functions. No point in making this runTime selectable since its chi...
virtual void update_dJdT()
bool hasdJdTMVar1() const
Base class for solution control classes.
virtual void doNormalization()
Normalize all fields allocated by the objective.