Go to the documentation of this file.
   11 #ifndef DAObjFuncVariableVolSum_H 
   12 #define DAObjFuncVariableVolSum_H 
   15 #include "addToRunTimeSelectionTable.H" 
   58         const word objFuncName,
 
   59         const word objFuncPart,
 
   60         const dictionary& objFuncDict);
 
   69         const labelList& objFuncFaceSources,
 
   70         const labelList& objFuncCellSources,
 
   71         scalarList& objFuncFaceValues,
 
   72         scalarList& objFuncCellValues,
 
   73         scalar& objFuncValue);
 
  
label divByTotalVol_
whether to normalize the volume sum with the total volume
virtual void calcObjFunc(const labelList &objFuncFaceSources, const labelList &objFuncCellSources, scalarList &objFuncFaceValues, scalarList &objFuncCellValues, scalar &objFuncValue)
calculate the value of objective function
word varName_
name of the variable
DAObjFuncVariableVolSum(const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const DAResidual &daResidual, const word objFuncName, const word objFuncPart, const dictionary &objFuncDict)
DAOption daOption(mesh, pyOptions_)
virtual ~DAObjFuncVariableVolSum()
word varType_
type of the variable either vector or scalar
label isSquare_
whether to take a square of the variable
DAModel daModel(mesh, daOption)
DAIndex daIndex(mesh, daOption, daModel)
label component_
if vector which element?
TypeName("variableVolSum")