All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
functions_contact.h
1 /* Copyright (C) 2004-2015 MBSim Development Team
2  *
3  * This library is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU Lesser General Public
5  * License as published by the Free Software Foundation; either
6  * version 2.1 of the License, or (at your option) any later version.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this library; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16  *
17  * Contact: thorsten.schindler@mytum.de
18  */
19 
20 #ifndef MBSIMFLEXIBLEBODY_FUNCTIONS_CONTACT_H_
21 #define MBSIMFLEXIBLEBODY_FUNCTIONS_CONTACT_H_
22 
23 #include <mbsim/functions/contact/distance_function.h>
24 
25 namespace MBSim {
26  class Circle;
27 }
28 
29 namespace MBSimFlexibleBody {
30 
31  class NurbsDisk2s;
32 
38  class FuncPairCircleNurbsDisk2s : public MBSim::DistanceFunction<double(double)> {
39  public:
45  FuncPairCircleNurbsDisk2s(MBSim::Circle* circle_, NurbsDisk2s* nurbsdisk_) : nurbsdisk(nurbsdisk_), circle(circle_) { }
46 
47  /* INHERITED INTERFACE OF DISTANCEFUNCTION */
48  double operator()(const double &alpha);
49 
50  fmatvec::Vec3 evalWrD(const double &alpha);
51  /***************************************************/
52 
53  private:
58  MBSim::Circle *circle;
59  };
60 
61 }
62 
63 #endif /* MBSIMFLEXIBLEBODY_FUNCTIONS_CONTACT_H_ */
FuncPairCircleNurbsDisk2s(MBSim::Circle *circle_, NurbsDisk2s *nurbsdisk_)
constructor
Definition: functions_contact.h:45
2s flexible
Definition: nurbs_disk_2s.h:54
root function for pairing Circle and NurbsDisk2s
Definition: functions_contact.h:38
NurbsDisk2s * nurbsdisk
contours
Definition: functions_contact.h:57

Impressum / Disclaimer / Datenschutz Generated by doxygen 1.8.5 Valid HTML