Go to the documentation of this file.
46 #ifndef adjointRASModel_H
47 #define adjointRASModel_H
71 namespace incompressibleAdjoint
169 const word& adjointTurbulenceModelName
175 adjointTurbulenceModelName
189 const word& adjointTurbulenceModelName =
190 adjointTurbulenceModel::typeName
202 const word& adjointTurbulenceModelName =
203 adjointTurbulenceModel::typeName
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Manages the adjoint mean flow fields and their mean values.
class for managing incompressible objective functions.
const word & solverName() const
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
volScalarField & getAdjointTMVariable1()
virtual tmp< volScalarField > nutJacobianTMVar2() const
autoPtr< boundaryVectorField > wallShapeSensitivitiesPtr_
const nearWallDist & y() const
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
virtual tmp< volScalarField > nutJacobianTMVar1() const
autoPtr< volScalarField > adjointTMVariable2MeanPtr_
virtual const boundaryVectorField & wallFloCoSensitivities()=0
autoPtr< boundaryVectorField > wallFloCoSensitivitiesPtr_
bool changedPrimalSolution_
autoPtr< volScalarField > adjointTMVariable1MeanPtr_
virtual tmp< scalarField > diffusionCoeffVar2(label patchI) const
const word & adjointSolverName() const
A special matrix type and solver, designed for finite volume solutions of scalar equations.
autoPtr< volScalarField > adjointTMVariable2Ptr_
volScalarField & getAdjointTMVariable2Inst()
volScalarField & getAdjointTMVariable2()
autoPtr< boundaryVectorField > adjMomentumBCSourcePtr_
Bound the given scalar field if it has gone unbounded.
autoPtr< volScalarField > & getAdjointTMVariable2InstPtr()
declareRunTimeSelectionTable(autoPtr, adjointRASModel, dictionary,(incompressibleVars &primalVars, incompressibleAdjointMeanFlowVars &adjointVars, objectiveManager &objManager, const word &adjointTurbulenceModelName),(primalVars, adjointVars, objManager, adjointTurbulenceModelName))
Abstract base class for incompressible adjoint turbulence models (RAS, LES and laminar).
void setChangedPrimalSolution()
const word & primalSolverName() const
virtual tmp< volTensorField > FISensitivityTerm()=0
virtual tmp< volScalarField > distanceSensitivities()=0
Switch adjointTurbulence_
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool includeDistance() const
Abstract base class for incompressible turbulence models.
objectiveManager & objectiveManager_
volScalarField & getAdjointTMVariable1Inst()
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
TypeName("adjointRASModel")
Useful typenames for fields defined only at the boundaries.
Macros to ease declaration of run-time selection tables.
virtual tmp< volVectorField > adjointMeanFlowSource()=0
autoPtr< volScalarField > adjointTMVariable1Ptr_
virtual void printCoeffs()
fileName::Type type(const fileName &name, const bool followLink=true)
autoPtr< volScalarField > & getAdjointTMVariable1InstPtr()
virtual tmp< scalarField > diffusionCoeffVar1(label patchI) const
incompressibleAdjointMeanFlowVars & adjointVars_
const dictionary & coeffDict() const
incompressibleVars & primalVars_
virtual const boundaryVectorField & adjointMomentumBCSource() const =0
virtual ~adjointRASModel()=default
Distance calculation for cells with face on a wall. Searches pointNeighbours to find closest.
Generic GeometricField class.
Base class for solution control classes.
virtual const boundaryVectorField & wallShapeSensitivities()=0
virtual tmp< volSymmTensorField > devReff() const =0
virtual tmp< fvVectorMatrix > divDevReff(volVectorField &U) const =0
static autoPtr< adjointRASModel > New(incompressibleVars &primalVars, incompressibleAdjointMeanFlowVars &adjointVars, objectiveManager &objManager, const word &adjointTurbulenceModelName=adjointTurbulenceModel::typeName)