

Public Member Functions | |
| TypeName ("force") | |
| DAFunctionForce (const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const word functionName) | |
| virtual | ~DAFunctionForce () |
| virtual scalar | calcFunction () |
| calculate the value of objective function More... | |
Public Member Functions inherited from DAFunction | |
| 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 | |
| vector | forceDir_ |
| the direction of the force More... | |
| word | dirMode_ |
| if dynamically adjusting the angle what mode to use More... | |
| label | flowAxisIndex_ |
| flowAxisIndex_ for the alpha design variable with tan(U_normal/U_flow) More... | |
| label | normalAxisIndex_ |
| normalAxisIndex_ for the alpha design variable with tan(U_normal/U_flow) More... | |
| const DATurbulenceModel & | daTurb_ |
| DATurbulenceModel object. More... | |
Protected Attributes inherited from DAFunction | |
| 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 Public Member Functions inherited from DAFunction | |
| static autoPtr< DAFunction > | New (const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const word functionName) |
Definition at line 28 of file DAFunctionForce.H.
| DAFunctionForce | ( | const fvMesh & | mesh, |
| const DAOption & | daOption, | ||
| const DAModel & | daModel, | ||
| const DAIndex & | daIndex, | ||
| const word | functionName | ||
| ) |
Definition at line 19 of file DAFunctionForce.C.
References DAFunction::daOption_, DAFunctionForce::dirMode_, DAFunctionForce::flowAxisIndex_, DAFunctionForce::forceDir_, DAFunction::functionDict_, DAOption::getAllOptions(), and DAFunctionForce::normalAxisIndex_.

|
inlinevirtual |
Definition at line 61 of file DAFunctionForce.H.
| TypeName | ( | "force" | ) |
|
virtual |
calculate the value of objective function
Implements DAFunction.
Definition at line 79 of file DAFunctionForce.C.
References DAIndex::bFaceFaceI, DAIndex::bFacePatchI, DAFunction::calcRefVar(), DAFunction::daIndex_, DAFunctionForce::daTurb_, DATurbulenceModel::devRhoReff(), DAFunctionForce::dirMode_, DAFunction::faceSources_, DAFunctionForce::flowAxisIndex_, forAll(), DAFunctionForce::forceDir_, DAFunction::mesh_, DAIndex::nLocalInternalFaces, DAFunctionForce::normalAxisIndex_, p, DAGlobalVar::patchVelocity, and DAFunction::scale_.

|
protected |
the direction of the force
Definition at line 34 of file DAFunctionForce.H.
Referenced by DAFunctionForce::calcFunction(), and DAFunctionForce::DAFunctionForce().
|
protected |
if dynamically adjusting the angle what mode to use
Definition at line 37 of file DAFunctionForce.H.
Referenced by DAFunctionForce::calcFunction(), and DAFunctionForce::DAFunctionForce().
|
protected |
flowAxisIndex_ for the alpha design variable with tan(U_normal/U_flow)
Definition at line 40 of file DAFunctionForce.H.
Referenced by DAFunctionForce::calcFunction(), and DAFunctionForce::DAFunctionForce().
|
protected |
normalAxisIndex_ for the alpha design variable with tan(U_normal/U_flow)
Definition at line 43 of file DAFunctionForce.H.
Referenced by DAFunctionForce::calcFunction(), and DAFunctionForce::DAFunctionForce().
|
protected |
DATurbulenceModel object.
Definition at line 46 of file DAFunctionForce.H.
Referenced by DAFunctionForce::calcFunction().