DAFunctionVonMisesStressKS.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2 
3  DAFoam : Discrete Adjoint with OpenFOAM
4  Version : v4
5 
6  Description:
7  Child class for max von Mises stress
8 
9 \*---------------------------------------------------------------------------*/
10 
11 #ifndef DAFunctionVonMisesStressKS_H
12 #define DAFunctionVonMisesStressKS_H
13 
14 #include "DAFunction.H"
15 #include "addToRunTimeSelectionTable.H"
16 
17 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
18 
19 namespace Foam
20 {
21 
22 /*---------------------------------------------------------------------------*\
23  Class DAFunctionVonMisesStressKS Declaration
24 \*---------------------------------------------------------------------------*/
25 
27  : public DAFunction
28 {
29 
30 protected:
32  scalar coeffKS_;
33 
34 public:
35  TypeName("vonMisesStressKS");
36  // Constructors
37 
38  //- Construct from components
40  const fvMesh& mesh,
41  const DAOption& daOption,
42  const DAModel& daModel,
43  const DAIndex& daIndex,
44  const word functionName);
45 
46  //- Destructor
48  {
49  }
50 
52  virtual scalar calcFunction();
53 };
54 
55 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
56 
57 } // End namespace Foam
58 
59 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
60 
61 #endif
62 
63 // ************************************************************************* //
Foam::DAFunctionVonMisesStressKS::coeffKS_
scalar coeffKS_
coefficient for the KS function
Definition: DAFunctionVonMisesStressKS.H:32
Foam::DAFunctionVonMisesStressKS::TypeName
TypeName("vonMisesStressKS")
Foam::DAOption
Definition: DAOption.H:29
DAFunction.H
Foam::DAFunctionVonMisesStressKS::calcFunction
virtual scalar calcFunction()
calculate the value of objective function
Definition: DAFunctionVonMisesStressKS.C:37
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
Foam::DAIndex
Definition: DAIndex.H:32
Foam::DAModel
Definition: DAModel.H:57
Foam::DAFunction
Definition: DAFunction.H:31
Foam
Definition: checkGeometry.C:32
Foam::DAFunctionVonMisesStressKS::~DAFunctionVonMisesStressKS
virtual ~DAFunctionVonMisesStressKS()
Definition: DAFunctionVonMisesStressKS.H:47
Foam::DAFunctionVonMisesStressKS::DAFunctionVonMisesStressKS
DAFunctionVonMisesStressKS(const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex, const word functionName)
Definition: DAFunctionVonMisesStressKS.C:19
Foam::DAFunctionVonMisesStressKS
Definition: DAFunctionVonMisesStressKS.H:26