All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
contour_1s_neutral_factory.h
1 /*
2  * contour_1s_neutral_factory.h
3  *
4  * Created on: 25.10.2013
5  * Author: zwang
6  */
7 
8 #ifndef CONTOUR_1S_NEUTRAL_FACTORY_H_
9 #define CONTOUR_1S_NEUTRAL_FACTORY_H_
10 
11 #include "mbsimFlexibleBody/contours/contour1s.h"
12 #include "mbsimFlexibleBody/utils/contact_utils.h"
13 
14 namespace MBSim {
15  class ContourFrame;
16 }
17 
18 namespace MBSimFlexibleBody {
19 
21  public:
22  Contour1sNeutralFactory(const std::string &name) : Contour1s(name), uMin(0.), uMax(1.), degU(3), openStructure(false) { }
23 
24  virtual std::string getType() const { return "Contour1sNeutralFactory"; }
25 
26  virtual MBSim::ContourFrame* createContourFrame(const std::string &name="P");
27 
28  virtual bool isZetaOutside(const fmatvec::Vec2 &zeta) { return etaNodes.size() and (zeta(0) < etaNodes[0] or zeta(0) > etaNodes[etaNodes.size()-1]); }
29 
30  virtual MBSim::ContactKinematics * findContactPairingWith(std::string type0, std::string type1) { return findContactPairingFlexible(type0.c_str(), type1.c_str()); }
31 
32  virtual void setOpenStructure(const bool & openStructure_) { openStructure = openStructure_; }
33 
34  virtual void setuMin(const double & uMin_) { uMin = uMin_; }
35 
36  virtual void setuMax(const double & uMax_) { uMax = uMax_; }
37 
38  protected:
39 
43  double uMin;
44 
48  double uMax;
49 
53  int degU;
54 
59 
60  };
61 
62 } /* namespace MBSimFlexibleBody */
63 #endif
double uMin
starting parameter of the contour descriptions
Definition: contour_1s_neutral_factory.h:43
basic class for contours described by one contour parameter
Definition: contour1s.h:35
int degU
interpolation degree
Definition: contour_1s_neutral_factory.h:53
Contour1s(const std::string &name)
constructor
Definition: contour1s.h:41
bool openStructure
is the contour opened or closed?
Definition: contour_1s_neutral_factory.h:58
Definition: contour_1s_neutral_factory.h:20
double uMax
ending parameter of the contour description
Definition: contour_1s_neutral_factory.h:48

Impressum / Disclaimer / Datenschutz Generated by doxygen 1.8.5 Valid HTML