Go to the documentation of this file.
14 #include "runTimeSelectionTables.H"
15 #include "fvOptions.H"
19 #include "topoSetSource.H"
110 const word objFuncName,
111 const word objFuncPart,
112 const dictionary& objFuncDict),
132 const word objFuncName,
133 const word objFuncPart,
134 const dictionary& objFuncDict);
139 static autoPtr<DAObjFunc>
New(
145 const word objFuncName,
146 const word objFuncPart,
147 const dictionary& objFuncDict);
166 labelList& faceSources,
167 labelList& cellSources);
171 const labelList& objFuncFaceSources,
172 const labelList& objFuncCellSources,
173 scalarList& objFuncFaceValues,
174 scalarList& objFuncCellValues,
175 scalar& objFuncValue) = 0;
182 const dictionary& options,
const DAResidual & daResidual_
DAResidual object.
word objFuncType_
the type of the objective function
void clear()
clear up members
const scalarList & getObjFuncCellValues() const
return DAObjFunc::objFuncCellValues_
labelList objFuncCellSources_
a sorted list of all cell sources for the objective function
const scalarList & getObjFuncFaceValues() const
return DAObjFunc::objFuncFaceValues_
const DAModel & daModel_
DAModel object.
word objFuncName_
the name of the objective function
const labelList & getObjFuncCellSources() const
return DAObjFunc::objFuncCellSources_
DAField daField_
DAField object.
const labelList & getObjFuncFaceSources() const
return DAObjFunc::objFuncFaceSources_
const DAIndex & daIndex_
DAIndex object.
DAOption daOption(mesh, pyOptions_)
scalarList objFuncCellValues_
value of the obj function in the discrete cells
void calcObjFuncSources(labelList &faceSources, labelList &cellSources)
calculate DAObjFunc::objFuncFaceSources_ and DAObjFunc::objFuncCellSources_
virtual void calcObjFunc(const labelList &objFuncFaceSources, const labelList &objFuncCellSources, scalarList &objFuncFaceValues, scalarList &objFuncCellValues, scalar &objFuncValue)=0
calculate the value of objective function
word getObjFuncPart()
return the part of objective function
scalar getObjFuncValue()
calculate the value of objective function
word getObjFuncType()
return the part of objective function
scalar masterFunction(const dictionary &options, const Vec xvVec, const Vec wVec)
the master function to compute objective function given the state and point vectors
const fvMesh & mesh_
fvMesh
const List< List< word > > & getObjFuncConInfo() const
return DAObjFunc::objFuncConInfo_
label calcRefCoeffs
whether to compute reference coefficients for special objFunc treatment such as totalPressureRatio
static autoPtr< DAObjFunc > New(const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const DAResidual &daResidual, const word objFuncName, const word objFuncPart, const dictionary &objFuncDict)
const DAOption & daOption_
DAOption object.
declareRunTimeSelectionTable(autoPtr, DAObjFunc, dictionary,(const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const DAResidual &daResidual, const word objFuncName, const word objFuncPart, const dictionary &objFuncDict),(mesh, daOption, daModel, daIndex, daResidual, objFuncName, objFuncPart, objFuncDict))
TypeName("DAObjFunc")
Runtime type information.
word objFuncPart_
the part of the objective function
scalar scale_
scale of the objective function
DAModel daModel(mesh, daOption)
List< List< word > > objFuncConInfo_
the connectivity information for the objective function
scalarList objFuncFaceValues_
value of the obj function on the discrete faces
DAIndex daIndex(mesh, daOption, daModel)
const dictionary & objFuncDict_
dictionary containing the information for the objective function
word getObjFuncName()
return the name of objective function
scalar objFuncValue_
the value of the objective function
labelList objFuncFaceSources_
a sorted list of all face sources for the objective function
scalar expSumKS
expSumKS stores sum[exp(coeffKS*x_i)] for KS function which will be used to scale dFdW