DAObjFuncVonMisesStressKS.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2 
3  DAFoam : Discrete Adjoint with OpenFOAM
4  Version : v3
5 
6  Description:
7  Child class for max von Mises stress
8 
9 \*---------------------------------------------------------------------------*/
10 
11 #ifndef DAObjFuncVonMisesStressKS_H
12 #define DAObjFuncVonMisesStressKS_H
13 
14 #include "DAObjFunc.H"
15 #include "addToRunTimeSelectionTable.H"
16 
17 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
18 
19 namespace Foam
20 {
21 
22 /*---------------------------------------------------------------------------*\
23  Class DAObjFuncVonMisesStressKS Declaration
24 \*---------------------------------------------------------------------------*/
25 
27  : public DAObjFunc
28 {
29 
30 protected:
31 
33  scalar coeffKS_;
34 
35 public:
36  TypeName("vonMisesStressKS");
37  // Constructors
38 
39  //- Construct from components
41  const fvMesh& mesh,
42  const DAOption& daOption,
43  const DAModel& daModel,
44  const DAIndex& daIndex,
45  const DAResidual& daResidual,
46  const word objFuncName,
47  const word objFuncPart,
48  const dictionary& objFuncDict);
49 
50  //- Destructor
52  {
53  }
54 
56  virtual void calcObjFunc(
57  const labelList& objFuncFaceSources,
58  const labelList& objFuncCellSources,
59  scalarList& objFuncFaceValues,
60  scalarList& objFuncCellValues,
61  scalar& objFuncValue);
62 };
63 
64 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
65 
66 } // End namespace Foam
67 
68 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
69 
70 #endif
71 
72 // ************************************************************************* //
Foam::DAOption
Definition: DAOption.H:29
daOption
DAOption daOption(mesh, pyOptions_)
Foam::DAObjFuncVonMisesStressKS::calcObjFunc
virtual void calcObjFunc(const labelList &objFuncFaceSources, const labelList &objFuncCellSources, scalarList &objFuncFaceValues, scalarList &objFuncCellValues, scalar &objFuncValue)
calculate the value of objective function
Definition: DAObjFuncVonMisesStressKS.C:52
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
Foam::DAIndex
Definition: DAIndex.H:32
Foam::DAModel
Definition: DAModel.H:59
Foam
Definition: multiFreqScalarFvPatchField.C:144
Foam::DAResidual
Definition: DAResidual.H:35
Foam::DAObjFuncVonMisesStressKS
Definition: DAObjFuncVonMisesStressKS.H:26
Foam::DAObjFuncVonMisesStressKS::TypeName
TypeName("vonMisesStressKS")
Foam::DAObjFuncVonMisesStressKS::~DAObjFuncVonMisesStressKS
virtual ~DAObjFuncVonMisesStressKS()
Definition: DAObjFuncVonMisesStressKS.H:51
Foam::DAObjFuncVonMisesStressKS::coeffKS_
scalar coeffKS_
coefficient for the KS function
Definition: DAObjFuncVonMisesStressKS.H:33
Foam::DAObjFuncVonMisesStressKS::DAObjFuncVonMisesStressKS
DAObjFuncVonMisesStressKS(const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const DAResidual &daResidual, const word objFuncName, const word objFuncPart, const dictionary &objFuncDict)
Definition: DAObjFuncVonMisesStressKS.C:19
daModel
DAModel daModel(mesh, daOption)
daIndex
DAIndex daIndex(mesh, daOption, daModel)
DAObjFunc.H
Foam::DAObjFunc
Definition: DAObjFunc.H:33