Base class for selecting the adjoint transpose convection model. Inherits from regIOobject to add lookup functionality. More...
Public Member Functions | |
TypeName ("ATCModel") | |
declareRunTimeSelectionTable (autoPtr, ATCModel, dictionary,(const fvMesh &mesh, const incompressibleVars &primalVars, const incompressibleAdjointVars &adjointVars, const dictionary &dict),(mesh, primalVars, adjointVars, dict)) | |
ATCModel (const fvMesh &mesh, const incompressibleVars &primalVars, const incompressibleAdjointVars &adjointVars, const dictionary &dict) | |
virtual | ~ATCModel ()=default |
virtual void | addATC (fvVectorMatrix &UaEqn)=0 |
const labelList & | getZeroATCcells () |
scalar | getExtraConvectionMultiplier () |
scalar | getExtraDiffusionMultiplier () |
const volScalarField & | getLimiter () const |
template<class Type > | |
void | smoothFieldBasedOnCells (GeometricField< Type, fvPatchField, volMesh > &vf, const labelList &cells) |
virtual tmp< volTensorField > | getFISensitivityTerm () const =0 |
virtual bool | writeData (Ostream &) const |
![]() | |
TypeName ("regIOobject") | |
regIOobject (const IOobject &io, const bool isTimeObject=false) | |
regIOobject (const regIOobject &rio) | |
regIOobject (const regIOobject &rio, bool registerCopy) | |
regIOobject (const word &newName, const regIOobject &, bool registerCopy) | |
regIOobject (const IOobject &io, const regIOobject &rio) | |
virtual | ~regIOobject () |
bool | checkIn () |
bool | checkOut () |
virtual void | addWatch () |
bool | ownedByRegistry () const |
bool | store () |
void | release (const bool unregister=false) |
label | eventNo () const |
label & | eventNo () |
bool | upToDate (const regIOobject &) const |
bool | upToDate (const regIOobject &, const regIOobject &) const |
bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &) const |
bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &, const regIOobject &) const |
void | setUpToDate () |
virtual void | rename (const word &newName) |
const dictionary * | findMetaData () const noexcept |
dictionary & | getMetaData () noexcept |
void | removeMetaData () |
virtual void | updateMetaData () |
virtual fileName | filePath () const |
bool | headerOk () |
Istream & | readStream (const word &, const bool valid=true) |
void | close () |
virtual bool | readData (Istream &) |
virtual bool | read () |
virtual label | addWatch (const fileName &) |
const labelList & | watchIndices () const |
labelList & | watchIndices () |
virtual bool | modified () const |
virtual bool | readIfModified () |
virtual bool | writeObject (IOstreamOption streamOpt, const bool valid) const |
virtual bool | write (const bool valid=true) const |
virtual bool | global () const |
void | operator= (const IOobject &io) |
virtual bool | writeObject (IOstreamOption::streamFormat fmt, IOstreamOption::versionNumber ver, IOstreamOption::compressionType comp, const bool valid) const |
![]() | |
TypeName ("IOobject") | |
IOobject (const IOobject &)=default | |
virtual | ~IOobject ()=default |
IOobject (const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
IOobject (const fileName &path, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
IOobject (const IOobject &io, const objectRegistry ®istry) | |
IOobject (const IOobject &io, const word &name) | |
IOobject (const IOobject &io, readOption, writeOption) | |
autoPtr< IOobject > | clone () const |
autoPtr< IOobject > | clone (const objectRegistry ®istry) const |
const objectRegistry & | db () const noexcept |
const Time & | time () const |
const word & | name () const noexcept |
const word & | headerClassName () const noexcept |
word & | headerClassName () noexcept |
const string & | note () const noexcept |
string & | note () noexcept |
bool | registerObject () const noexcept |
bool | registerObject (bool on) noexcept |
bool | globalObject () const noexcept |
bool | globalObject (bool on) noexcept |
unsigned | labelByteSize () const noexcept |
unsigned | scalarByteSize () const noexcept |
bool | isHeaderClassName (const word &clsName) const |
template<class Type > | |
bool | isHeaderClassName () const |
readOption | readOpt () const noexcept |
readOption | readOpt (readOption opt) noexcept |
writeOption | writeOpt () const noexcept |
writeOption | writeOpt (writeOption opt) noexcept |
word | group () const |
word | member () const |
const fileName & | rootPath () const |
const fileName & | caseName () const |
const fileName & | instance () const noexcept |
fileName & | instance () noexcept |
const fileName & | local () const noexcept |
fileName | path () const |
fileName | path (const word &instance, const fileName &local=fileName::null) const |
fileName | objectPath () const |
fileName | objectRelPath () const |
fileName | localFilePath (const word &typeName, const bool search=true) const |
fileName | globalFilePath (const word &typeName, const bool search=true) const |
IOstreamOption | parseHeader (const dictionary &headerDict) |
bool | readHeader (Istream &is) |
bool | readHeader (dictionary &headerDict, Istream &is) |
template<class Type > | |
bool | typeHeaderOk (const bool checkType=true, const bool search=true, const bool verbose=true) |
template<class Type > | |
void | warnNoRereading () const |
bool | writeHeader (Ostream &os) const |
bool | writeHeader (Ostream &os, const word &objectType) const |
void | writeHeader (dictionary &dict, IOstreamOption streamOpt) const |
void | writeHeader (dictionary &dict, const word &objectType, IOstreamOption streamOpt) const |
bool | good () const noexcept |
bool | bad () const noexcept |
InfoProxy< IOobject > | info () const |
void | operator= (const IOobject &io) |
readOption & | readOpt () noexcept |
writeOption & | writeOpt () noexcept |
bool & | registerObject () noexcept |
bool & | globalObject () noexcept |
template<> | |
bool | isHeaderClassName () const |
template<class StringType > | |
Foam::word | groupName (StringType base, const word &group) |
Static Public Member Functions | |
static autoPtr< ATCModel > | New (const fvMesh &mesh, const incompressibleVars &primalVars, const incompressibleAdjointVars &adjointVars, const dictionary &dict) |
static void | computeLimiter (volScalarField &limiter, const labelList &smoothCells, const label nSmooth) |
static tmp< volScalarField > | createLimiter (const fvMesh &mesh, const dictionary &dict) |
![]() | |
template<class Type > | |
static Type & | store (Type *p) |
template<class Type > | |
static Type & | store (autoPtr< Type > &ptr) |
template<class Type > | |
static Type & | store (autoPtr< Type > &&ptr) |
template<class Type > | |
static Type & | store (refPtr< Type > &ptr) |
template<class Type > | |
static Type & | store (refPtr< Type > &&ptr) |
template<class Type > | |
static Type & | store (tmp< Type > &ptr) |
template<class Type > | |
static Type & | store (tmp< Type > &&ptr) |
![]() | |
static bool | bannerEnabled () noexcept |
static bool | bannerEnabled (bool on) noexcept |
static bool | fileNameComponents (const fileName &path, fileName &instance, fileName &local, word &name) |
template<class StringType > | |
static word | groupName (StringType base, const word &group) |
static word | group (const word &name) |
static word | member (const word &name) |
static word | scopedName (const std::string &scope, const word &name) |
static IOobject | selectIO (const IOobject &io, const fileName &altFile, const word &ioName="") |
static Ostream & | writeBanner (Ostream &os, const bool noSyntaxHint=false) |
static Ostream & | writeDivider (Ostream &os) |
static Ostream & | writeEndDivider (Ostream &os) |
Protected Member Functions | |
void | computeLimiter () |
void | smoothATC () |
![]() | |
bool | readHeaderOk (const IOstreamOption::streamFormat fmt, const word &typeName) |
![]() | |
void | setBad (const string &s) |
Protected Attributes | |
const fvMesh & | mesh_ |
const incompressibleVars & | primalVars_ |
const incompressibleAdjointVars & | adjointVars_ |
const dictionary & | dict_ |
const scalar | extraConvection_ |
const scalar | extraDiffusion_ |
const label | nSmooth_ |
const bool | reconstructGradients_ |
word | adjointSolverName_ |
autoPtr< zeroATCcells > | zeroATCcells_ |
volScalarField | ATClimiter_ |
volVectorField | ATC_ |
Additional Inherited Members | |
![]() | |
enum | objectState : char { GOOD, BAD } |
enum | readOption : char { MUST_READ, MUST_READ_IF_MODIFIED, READ_IF_PRESENT, NO_READ } |
enum | writeOption : char { AUTO_WRITE = 0, NO_WRITE = 1 } |
enum | fileCheckTypes : char { timeStamp, timeStampMaster, inotify, inotifyMaster } |
![]() | |
static const Enum< fileCheckTypes > | fileCheckTypesNames |
static char | scopeSeparator |
static fileCheckTypes | fileModificationChecking |
static float | fileModificationSkew |
static int | maxFileModificationPolls |
![]() | |
static void | writeHeaderContent (Ostream &os, const IOobject &io, const word &objectType, const dictionary *metaDataDict=nullptr) |
static void | writeHeaderContent (dictionary &dict, const IOobject &io, const word &objectType, IOstreamOption streamOpt, const dictionary *metaDataDict=nullptr) |
![]() | |
static bool | masterOnlyReading = false |
Base class for selecting the adjoint transpose convection model. Inherits from regIOobject to add lookup functionality.
Definition at line 56 of file ATCModel.H.
ATCModel | ( | const fvMesh & | mesh, |
const incompressibleVars & | primalVars, | ||
const incompressibleAdjointVars & | adjointVars, | ||
const dictionary & | dict | ||
) |
Definition at line 55 of file ATCModel.C.
|
virtualdefault |
|
protected |
Definition at line 38 of file ATCModel.C.
References ATCModel::ATClimiter_, ATCModel::nSmooth_, and ATCModel::zeroATCcells_.
|
protected |
Definition at line 44 of file ATCModel.C.
References ATCModel::ATC_, ATCModel::ATClimiter_, DebugInfo, Foam::endl(), and Foam::gMax().
Referenced by ATCstandard::addATC(), and ATCUaGradU::addATC().
TypeName | ( | "ATCModel" | ) |
declareRunTimeSelectionTable | ( | autoPtr | , |
ATCModel | , | ||
dictionary | , | ||
(const fvMesh &mesh, const incompressibleVars &primalVars, const incompressibleAdjointVars &adjointVars, const dictionary &dict) | , | ||
(mesh, primalVars, adjointVars, dict) | |||
) |
|
static |
Definition at line 122 of file ATCModel.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, dictionary::get(), Foam::Info, and mesh.
Referenced by adjointSimple::adjointSimple().
|
pure virtual |
Implemented in cancelATC, ATCstandard, and ATCUaGradU.
const labelList & getZeroATCcells | ( | ) |
Definition at line 155 of file ATCModel.C.
References ATCModel::zeroATCcells_.
scalar getExtraConvectionMultiplier | ( | ) |
Definition at line 161 of file ATCModel.C.
References ATCModel::extraConvection_.
scalar getExtraDiffusionMultiplier | ( | ) |
Definition at line 167 of file ATCModel.C.
References ATCModel::extraDiffusion_.
const volScalarField & getLimiter | ( | ) | const |
Definition at line 173 of file ATCModel.C.
References ATCModel::ATClimiter_.
Referenced by ATCstandard::getFISensitivityTerm().
|
static |
Definition at line 180 of file ATCModel.C.
References Foam::fvc::average(), cells, Foam::limiter(), mesh, Foam::fac::scheme(), and Foam::Zero.
|
static |
Definition at line 214 of file ATCModel.C.
References dict, Foam::dimless, dictionary::getOrDefault(), Foam::limiter(), mesh, zeroATCcells::New(), IOobject::NO_READ, IOobject::NO_WRITE, fvMesh::time(), Time::timeName(), and zeroCells().
Referenced by adjointSpalartAllmaras::allocateMask().
void smoothFieldBasedOnCells | ( | GeometricField< Type, fvPatchField, volMesh > & | vf, |
const labelList & | cells | ||
) |
Definition at line 30 of file ATCModelTemplates.C.
References cells, Foam::dimless, and Foam::limiter().
|
pure virtual |
Implemented in cancelATC, ATCstandard, and ATCUaGradU.
Referenced by adjointSensitivity::computeGradDxDbMultiplier().
Implements regIOobject.
Definition at line 248 of file ATCModel.C.
|
protected |
Definition at line 75 of file ATCModel.H.
Referenced by ATCstandard::getFISensitivityTerm(), ATCUaGradU::getFISensitivityTerm(), and cancelATC::getFISensitivityTerm().
|
protected |
Definition at line 76 of file ATCModel.H.
Referenced by ATCstandard::addATC(), ATCUaGradU::addATC(), ATCUaGradU::getFISensitivityTerm(), and ATCstandard::getFISensitivityTerm().
|
protected |
Definition at line 77 of file ATCModel.H.
Referenced by ATCstandard::addATC(), ATCUaGradU::addATC(), ATCUaGradU::getFISensitivityTerm(), and ATCstandard::getFISensitivityTerm().
|
protected |
Definition at line 80 of file ATCModel.H.
|
protected |
Definition at line 81 of file ATCModel.H.
Referenced by ATCstandard::addATC(), ATCUaGradU::addATC(), and ATCModel::getExtraConvectionMultiplier().
|
protected |
Definition at line 82 of file ATCModel.H.
Referenced by ATCModel::getExtraDiffusionMultiplier().
|
protected |
Definition at line 83 of file ATCModel.H.
Referenced by ATCModel::computeLimiter().
|
protected |
Definition at line 84 of file ATCModel.H.
Referenced by ATCstandard::addATC(), and ATCUaGradU::addATC().
|
protected |
Definition at line 85 of file ATCModel.H.
|
protected |
Definition at line 86 of file ATCModel.H.
Referenced by ATCModel::computeLimiter(), and ATCModel::getZeroATCcells().
|
protected |
Definition at line 87 of file ATCModel.H.
Referenced by ATCModel::computeLimiter(), ATCModel::getLimiter(), and ATCModel::smoothATC().
|
protected |
Definition at line 88 of file ATCModel.H.
Referenced by ATCstandard::addATC(), ATCUaGradU::addATC(), and ATCModel::smoothATC().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.