38 namespace incompressibleAdjoint
48 adjointTurbulenceModel::adjointTurbulenceModel
53 const word& adjointTurbulenceModelName
60 adjointTurbulenceModelName,
61 primalVars.
U().time().constant(),
67 primalVars_(primalVars),
68 adjointVars_(adjointVars),
69 runTime_(primalVars.
U().time()),
81 const word& adjointTurbulenceModelName
90 "turbulenceProperties",
100 Info<<
"Selecting turbulence model type " << modelType <<
endl;
102 auto* ctorPtr = adjointTurbulenceModelConstructorTable(modelType);
108 "adjointTurbulenceModel",
110 *adjointTurbulenceModelConstructorTablePtr_
121 adjointTurbulenceModelName
defineTypeNameAndDebug(adjointRASModel, 0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
defineRunTimeSelectionTable(adjointRASModel, dictionary)
class for managing incompressible objective functions.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void correct()=0
Solve the adjoint turbulence equations.
Ignore writing from objectRegistry::writeObject()
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
#define FatalErrorInLookup(lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalError.
incompressibleVars & primalVars_
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
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.
const objectRegistry & db() const noexcept
Return the local objectRegistry.
const Time & time() const noexcept
Return Time associated with the objectRegistry.
const volVectorField & U() const
Return const reference to velocity.
virtual void correct()
Correct the laminar viscosity.
const word & constant() const noexcept
Return constant name.
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).
Manages the adjoint mean flow fields and their mean values.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
messageStream Info
Information stream (stdout output on master, null elsewhere)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Defines the attributes of an object for which implicit objectRegistry management is supported...
Do not request registration (bool: false)