mbsim 4.0.0 MBSim Kernel

polar_contour_function.h
1 /* Copyright (C) 2004-2016 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: martin.o.foerg@gmail.com
18 */
19
20 #ifndef POLAR_CONTOUR_FUNCTION_H
21 #define POLAR_CONTOUR_FUNCTION_H
22
23 #include <mbsim/functions/function.h>
24
25 namespace MBSim {
26
27 class PolarContourFunction : public MBSim::Function<fmatvec::Vec3(double)> {
28 public:
29 PolarContourFunction();
30 ~PolarContourFunction();
31
32 void setRadiusFunction(Function<double(double)> *f_);
33 void init(Element::InitStage stage, const InitConfigSet &config);
34 void initializeUsingXML(xercesc::DOMElement *element);
35
36 fmatvec::Vec3 operator()(const double& alpha);
37 fmatvec::Vec3 parDer(const double& alpha);
38 fmatvec::Vec3 parDerDirDer(const double& alphaDir, const double& alpha);
39
40 private:
41 MBSim::Function<double(double)> *r;
42
43 double alphaSave, salphaSave, calphaSave, rSave, drdalphaSave, d2rdalpha2Save;
44
45 void updateData(const double& alpha);
46 };
47
48 }
49
50 #endif
MBSim::PolarContourFunction::init
void init(Element::InitStage stage, const InitConfigSet &config)
plots time series header
Definition: polar_contour_function.cc:47
MBSim::PolarContourFunction
Definition: polar_contour_function.h:27
MBSim::Element::InitStage
InitStage
The stages of the initialization.
Definition: element.h:62
MBSim::Function
Definition: contact_kinematics.h:32
MBSim
namespace MBSim
Definition: bilateral_constraint.cc:30