mbsimflexiblebody 4.0.0 MBSim Flexible Body Module

contour_2s_neutral_factory.h
1 /*
2 * contour_2s_neutral_factory.h
3 *
4 * Created on: 25.10.2013
5 * Author: zwang
6 */
7
8 #ifndef CONTOUR_2S_NEUTRAL_FACTORY_H_
9 #define CONTOUR_2S_NEUTRAL_FACTORY_H_
10
11 #include "mbsimFlexibleBody/contours/contour2s.h"
12 #include "mbsimFlexibleBody/utils/contact_utils.h"
13
14 namespace MBSimFlexibleBody {
15
16 class Contour2sNeutralFactory : public Contour2s {
17 public:
18 Contour2sNeutralFactory(const std::string &name) : Contour2s(name) { }
19 ~Contour2sNeutralFactory() override = default;
20
21 MBSim::ContourFrame* createContourFrame(const std::string &name="P") override;
22
23 bool isZetaOutside(const fmatvec::Vec2 &zeta) override { return etaNodes.size() and xiNodes.size() and (zeta(0) < etaNodes[0] or zeta(0) > etaNodes[etaNodes.size()-1] or zeta(1) < xiNodes[0] or zeta(1) > xiNodes[xiNodes.size()-1]); }
24
25 /* INHERITED INTERFACE OF CONTOUR */
26 MBSim::ContactKinematics * findContactPairingWith(const std::type_info &type0, const std::type_info &type1) override{ return findContactPairingFlexible(type0, type1); }
27
28 };
29
30 } /* namespace MBSimFlexibleBody */
31 #endif
MBSimFlexibleBody::Contour2s::Contour2s
Contour2s(const std::string &name)
constructor
Definition: contour2s.h:41
MBSimFlexibleBody::Contour2sNeutralFactory
Definition: contour_2s_neutral_factory.h:16
MBSim::ContourFrame
MBSim::Element::name
std::string name
MBSimFlexibleBody::Contour2s
basic contour described by two contour parameters
Definition: contour2s.h:33
MBSim::ContactKinematics