Public Member Functions | |
TypeName ("totalTemperatureRatio") | |
DAFunctionTotalTemperatureRatio (const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const word functionName) | |
virtual | ~DAFunctionTotalTemperatureRatio () |
virtual scalar | calcFunction () |
calculate the value of objective function More... | |
![]() | |
TypeName ("DAFunction") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, DAFunction, dictionary,(const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const word functionName),(mesh, daOption, daModel, daIndex, functionName)) | |
DAFunction (const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const word functionName) | |
virtual | ~DAFunction () |
void | clear () |
clear up members More... | |
void | calcFunctionSources () |
calculate DAFunction::faceSources_ and DAFunction::cellSources_ More... | |
word | getFunctionName () |
return the name of objective function More... | |
word | getFunctionType () |
return the part of objective function More... | |
word | getFunctionTimeOp () |
return the time operator such as final, sum, average, variance More... | |
const labelList & | getFaceSources () const |
return DAFunction::faceSources_ More... | |
const labelList & | getCellSources () const |
return DAFunction::cellSources_ More... | |
void | calcRefVar (scalar &functionValue) |
calculate (var-ref)^2 More... | |
Protected Attributes | |
scalar | areaSumInlet_ = -9999.0 |
the area of all inlet patches More... | |
scalar | areaSumOutlet_ = -9999.0 |
the area of all outlet patches More... | |
wordList | outletPatches_ |
names of outlet patches More... | |
wordList | inletPatches_ |
names of inlet patches More... | |
scalar | Cp_ |
scalar | gamma_ |
![]() | |
const fvMesh & | mesh_ |
fvMesh More... | |
const DAOption & | daOption_ |
DAOption object. More... | |
const DAModel & | daModel_ |
DAModel object. More... | |
const DAIndex & | daIndex_ |
DAIndex object. More... | |
word | functionName_ |
the name of the objective function More... | |
word | functionType_ |
the type of the objective function More... | |
word | timeOp_ |
time operator such as final, sum, or average More... | |
dictionary | functionDict_ |
dictionary containing the information for the objective function More... | |
labelList | faceSources_ |
a sorted list of all face sources for the objective function More... | |
labelList | cellSources_ |
a sorted list of all cell sources for the objective function More... | |
scalar | scale_ |
scale of the objective function More... | |
label | calcRefVar_ |
whether to calculate (obj-ref)^2 More... | |
scalarList | ref_ |
if calcRefVar_ is True, set the reference value list More... | |
Additional Inherited Members | |
![]() | |
static autoPtr< DAFunction > | New (const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const word functionName) |
Definition at line 26 of file DAFunctionTotalTemperatureRatio.H.
DAFunctionTotalTemperatureRatio | ( | const fvMesh & | mesh, |
const DAOption & | daOption, | ||
const DAModel & | daModel, | ||
const DAIndex & | daIndex, | ||
const word | functionName | ||
) |
Definition at line 19 of file DAFunctionTotalTemperatureRatio.C.
References DAFunctionTotalTemperatureRatio::Cp_, DAFunction::daOption_, DAFunction::functionDict_, DAFunctionTotalTemperatureRatio::gamma_, DAOption::getOption(), DAFunctionTotalTemperatureRatio::inletPatches_, DAFunction::mesh_, and DAFunctionTotalTemperatureRatio::outletPatches_.
|
inlinevirtual |
Definition at line 60 of file DAFunctionTotalTemperatureRatio.H.
TypeName | ( | "totalTemperatureRatio" | ) |
|
virtual |
calculate the value of objective function
Implements DAFunction.
Definition at line 51 of file DAFunctionTotalTemperatureRatio.C.
References DAFunctionTotalTemperatureRatio::areaSumInlet_, DAFunctionTotalTemperatureRatio::areaSumOutlet_, DAIndex::bFaceFaceI, DAIndex::bFacePatchI, DAFunction::calcRefVar(), DAFunctionTotalTemperatureRatio::Cp_, DAFunction::daIndex_, DAFunction::faceSources_, forAll(), DAFunctionTotalTemperatureRatio::gamma_, DAFunctionTotalTemperatureRatio::inletPatches_, DAFunction::mesh_, DAIndex::nLocalInternalFaces, DAFunctionTotalTemperatureRatio::outletPatches_, T, and U.
|
protected |
the area of all inlet patches
Definition at line 32 of file DAFunctionTotalTemperatureRatio.H.
Referenced by DAFunctionTotalTemperatureRatio::calcFunction().
|
protected |
the area of all outlet patches
Definition at line 35 of file DAFunctionTotalTemperatureRatio.H.
Referenced by DAFunctionTotalTemperatureRatio::calcFunction().
|
protected |
names of outlet patches
Definition at line 38 of file DAFunctionTotalTemperatureRatio.H.
Referenced by DAFunctionTotalTemperatureRatio::calcFunction(), and DAFunctionTotalTemperatureRatio::DAFunctionTotalTemperatureRatio().
|
protected |
names of inlet patches
Definition at line 41 of file DAFunctionTotalTemperatureRatio.H.
Referenced by DAFunctionTotalTemperatureRatio::calcFunction(), and DAFunctionTotalTemperatureRatio::DAFunctionTotalTemperatureRatio().
|
protected |
Definition at line 43 of file DAFunctionTotalTemperatureRatio.H.
Referenced by DAFunctionTotalTemperatureRatio::calcFunction(), and DAFunctionTotalTemperatureRatio::DAFunctionTotalTemperatureRatio().
|
protected |
Definition at line 45 of file DAFunctionTotalTemperatureRatio.H.
Referenced by DAFunctionTotalTemperatureRatio::calcFunction(), and DAFunctionTotalTemperatureRatio::DAFunctionTotalTemperatureRatio().