Go to the documentation of this file.
14 #include "runTimeSelectionTables.H"
15 #include "fvOptions.H"
19 #include "topoSetSource.H"
95 const word functionName),
111 const word functionName);
116 static autoPtr<DAFunction>
New(
121 const word functionName);
labelList faceSources_
a sorted list of all face sources for the objective function
void calcFunctionSources()
calculate DAFunction::faceSources_ and DAFunction::cellSources_
const labelList & getFaceSources() const
return DAFunction::faceSources_
const labelList & getCellSources() const
return DAFunction::cellSources_
label calcRefVar_
whether to calculate (obj-ref)^2
void clear()
clear up members
void calcRefVar(scalar &functionValue)
calculate (var-ref)^2
word functionName_
the name of the objective function
const DAIndex & daIndex_
DAIndex object.
word getFunctionTimeOp()
return the time operator such as final, sum, average, variance
word timeOp_
time operator such as final, sum, or average
TypeName("DAFunction")
Runtime type information.
const DAModel & daModel_
DAModel object.
word getFunctionName()
return the name of objective function
virtual scalar calcFunction()=0
calculate the value of objective function
const DAOption & daOption_
DAOption object.
word getFunctionType()
return the part of objective function
static autoPtr< DAFunction > New(const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const word functionName)
word functionType_
the type of the objective function
dictionary functionDict_
dictionary containing the information for the objective function
labelList cellSources_
a sorted list of all cell sources for the objective function
scalar scale_
scale of the objective function
scalarList ref_
if calcRefVar_ is True, set the reference value list
const fvMesh & mesh_
fvMesh
declareRunTimeSelectionTable(autoPtr, DAFunction, dictionary,(const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const word functionName),(mesh, daOption, daModel, daIndex, functionName))