48 #ifndef adjointTurbulenceModel_H 49 #define adjointTurbulenceModel_H 65 namespace incompressibleAdjoint
114 const word& adjointTurbulenceModelName
120 adjointTurbulenceModelName
133 const word& adjointTurbulenceModelName = typeName
145 const word& adjointTurbulenceModelName = typeName
181 lamTrans.
nu() + turbVars().nut()
195 return (lamTrans.
nu(patchI) + turbVars().nut(patchI));
218 virtual bool read() = 0;
virtual bool writeData(Ostream &) const
Default dummy write function.
virtual tmp< volVectorField > adjointMeanFlowSource()=0
Source term added to the adjoint mean flow due to the.
Class for managing objective functions.
virtual void correct()=0
Solve the adjoint turbulence equations.
incompressibleAdjointMeanFlowVars & adjointVars_
virtual void nullify()=0
Nullify all adjoint turbulence model fields and their old times.
incompressibleVars & primalVars_
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual tmp< fvVectorMatrix > divDevReff(volVectorField &U) const =0
Return the diffusion term for the momentum equation.
virtual tmp< volSymmTensorField > devReff() const =0
Return the effective stress tensor including the laminar stress.
tmp< volScalarField > nu() const
Return the laminar viscosity.
virtual ~adjointTurbulenceModel()=default
Destructor.
Base class for solution control classes.
const singlePhaseTransportModel & laminarTransport() const
Return const reference to transport model.
A class for handling words, derived from Foam::string.
TypeName("adjointTurbulenceModel")
Runtime type information.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
virtual const tmp< volScalarField > nut() const
Return the turbulence viscosity.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual bool read()=0
Read adjointLESProperties or adjointRASProperties dictionary.
static autoPtr< adjointTurbulenceModel > New(incompressibleVars &primalVars, incompressibleAdjointMeanFlowVars &adjointVars, objectiveManager &objManager, const word &adjointTurbulenceModelName=typeName)
Return a reference to the selected turbulence model.
Abstract base class for incompressible adjoint turbulence models (RAS, LES and laminar).
const autoPtr< incompressible::RASModelVariables > & RASModelVariables() const
Return const reference to the turbulence model variables.
Manages the adjoint mean flow fields and their mean values.
Mesh data needed to do the Finite Volume discretisation.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
declareRunTimeNewSelectionTable(autoPtr, adjointTurbulenceModel, adjointTurbulenceModel,(incompressibleVars &primalVars, incompressibleAdjointMeanFlowVars &adjointVars, objectiveManager &objManager, const word &adjointTurbulenceModelName),(primalVars, adjointVars, objManager, adjointTurbulenceModelName))
Macros to ease declaration of run-time selection tables.
virtual tmp< volScalarField > nuEff() const
Return the effective viscosity.
A class for managing temporary objects.
A simple single-phase transport model based on viscosityModel.
virtual tmp< volScalarField > nu() const
Return the laminar viscosity.