mbsimflexiblebody 4.0.0 MBSim Flexible Body Module

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
20 class Contour1sNeutralFactory : public Contour1s {
21 public:
22 Contour1sNeutralFactory(const std::string &name) : Contour1s(name), uMin(0.), uMax(1.), degU(3), openStructure(false) { }
23
24 MBSim::ContourFrame* createContourFrame(const std::string &name="P") override;
25
26 bool isZetaOutside(const fmatvec::Vec2 &zeta) override { return etaNodes.size() and (zeta(0) < etaNodes[0] or zeta(0) > etaNodes[etaNodes.size()-1]); }
27
28 MBSim::ContactKinematics * findContactPairingWith(const std::type_info &type0, const std::type_info &type1) override { return findContactPairingFlexible(type0, type1); }
29
30 virtual void setOpenStructure(const bool & openStructure_) { openStructure = openStructure_; }
31
32 virtual void setuMin(const double & uMin_) { uMin = uMin_; }
33
34 virtual void setuMax(const double & uMax_) { uMax = uMax_; }
35
36 protected:
37
41 double uMin;
42
46 double uMax;
47
51 int degU;
52
56 bool openStructure;
57
58 };
59
60 } /* namespace MBSimFlexibleBody */
61 #endif
MBSimFlexibleBody::Contour1sNeutralFactory::uMin
double uMin
starting parameter of the contour descriptions
Definition: contour_1s_neutral_factory.h:41
MBSimFlexibleBody::Contour1s
basic class for contours described by one contour parameter
Definition: contour1s.h:35
MBSimFlexibleBody::Contour1sNeutralFactory::degU
int degU
interpolation degree
Definition: contour_1s_neutral_factory.h:51
MBSim::ContourFrame
MBSimFlexibleBody::Contour1s::Contour1s
Contour1s(const std::string &name)
constructor
Definition: contour1s.h:41
MBSim::Element::name
std::string name
MBSimFlexibleBody::Contour1sNeutralFactory::openStructure
bool openStructure
is the contour opened or closed?
Definition: contour_1s_neutral_factory.h:56
MBSimFlexibleBody::Contour1sNeutralFactory
Definition: contour_1s_neutral_factory.h:20
MBSim::ContactKinematics
MBSimFlexibleBody::Contour1sNeutralFactory::uMax
double uMax
ending parameter of the contour description
Definition: contour_1s_neutral_factory.h:46