Go to the documentation of this file.
11 #ifndef DAObjFuncForce_H
12 #define DAObjFuncForce_H
15 #include "addToRunTimeSelectionTable.H"
63 const word objFuncName,
64 const word objFuncPart,
65 const dictionary& objFuncDict);
74 const labelList& objFuncFaceSources,
75 const labelList& objFuncCellSources,
76 scalarList& objFuncFaceValues,
77 scalarList& objFuncCellValues,
78 scalar& objFuncValue);
virtual ~DAObjFuncForce()
label flowAxisIndex_
flowAxisIndex_ for the alpha design variable with tan(U_normal/U_flow)
const DATurbulenceModel & daTurb_
DATurbulenceModel object.
DAObjFuncForce(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_)
vector forceDir_
the direction of the force
void updateForceDir(vector &forceDir)
dynamically adjust the force direction
word inoutRefPatchName_
the reference patch name from the alpha design variable dict patches[0] from which we compute the flo...
word dirMode_
if dynamically adjusting the angle what mode to use
DAModel daModel(mesh, daOption)
DAIndex daIndex(mesh, daOption, daModel)
label normalAxisIndex_
normalAxisIndex_ for the alpha design variable with tan(U_normal/U_flow)
virtual void calcObjFunc(const labelList &objFuncFaceSources, const labelList &objFuncCellSources, scalarList &objFuncFaceValues, scalarList &objFuncCellValues, scalar &objFuncValue)
calculate the value of objective function