MAST
normal_rotation_function_base.h
Go to the documentation of this file.
1 /*
2  * MAST: Multidisciplinary-design Adaptation and Sensitivity Toolkit
3  * Copyright (C) 2013-2019 Manav Bhatia
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 #ifndef __mast__normal_rotation_function_base__
21 #define __mast__normal_rotation_function_base__
22 
23 // MAST includes
25 
26 
27 namespace MAST {
28 
33  template <typename ValType>
35  public MAST::FieldFunction<ValType> {
36 
37  public:
38 
39  NormalRotationFunctionBase(const std::string& nm):
40  MAST::FieldFunction<ValType>(nm) {
41 
42  }
43 
44 
46 
47 
48  virtual void operator() (const libMesh::Point& p,
49  const libMesh::Point& n,
50  const Real t,
51  ValType& dn_rot) const = 0;
52 
53  virtual void perturbation (const libMesh::Point& p,
54  const libMesh::Point& n,
55  const Real t,
56  ValType& dn_rot) const = 0;
57 
58  protected:
59 
60  };
61 }
62 
63 #endif // __mast__normal_rotation_function_base__
64 
This uses the displacement gradient to calculate the rotation in a given surface normal.
libMesh::Real Real
virtual void perturbation(const libMesh::Point &p, const libMesh::Point &n, const Real t, ValType &dn_rot) const =0
virtual void operator()(const libMesh::Point &p, const libMesh::Point &n, const Real t, ValType &dn_rot) const =0
This creates the base class for functions that have a saptial and temporal dependence, and provide sensitivity operations with respect to the functions and parameters.