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
14namespace MBSimFlexibleBody {
15
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
Definition: contour_2s_neutral_factory.h:16
basic contour described by two contour parameters
Definition: contour2s.h:33
Contour2s(const std::string &name)
constructor
Definition: contour2s.h:41
std::string name