20#ifndef NurbsCurve1s_H_
21#define NurbsCurve1s_H_
23#include "mbsimFlexibleBody/contours/contour1s.h"
24#include "mbsim/numerics/nurbs/nurbs_curve.h"
26namespace MBSimFlexibleBody {
65 void setNormalRotationGrid(
const fmatvec::Vec& normal_) {
normalRotationGrid = normal_(fmatvec::RangeV(0,2)); }
basic class for contours described by one contour parameter
Definition: contour1s.h:35
contour 1s flexible with NURBS parametrization
Definition: nurbs_curve_1s.h:37
NurbsCurve1s(const std::string &name)
constructor
Definition: nurbs_curve_1s.h:43
int degU
interpolation degree
Definition: nurbs_curve_1s.h:120
double L
length of entire curve
Definition: nurbs_curve_1s.h:115
MBSim::NurbsCurve curveAngularVelocities
interpolated angular velocities of the contour
Definition: nurbs_curve_1s.h:135
~NurbsCurve1s() override=default
destructor
int qSize
number of DOFs
Definition: nurbs_curve_1s.h:105
int Elements
number of elements
Definition: nurbs_curve_1s.h:100
void computeCurveVelocities(bool update=false)
interpolates the velocities with the node-data from the body
Definition: nurbs_curve_1s.cc:87
void computeCurveJacobians(bool trans=true, bool rot=true, bool update=false)
interpolates the Jacobians of translation with the node-data from the body
Definition: nurbs_curve_1s.cc:133
std::vector< MBSim::NurbsCurve > CurveJacobiansOfRotation
interpolated Jacobians of Rotation on the contour
Definition: nurbs_curve_1s.h:150
bool openStructure
open or closed beam structure
Definition: nurbs_curve_1s.h:110
MBSim::NurbsCurve curveVelocities
interpolated velocities of the contour
Definition: nurbs_curve_1s.h:130
void computeCurveTranslations(bool update=false)
interpolates the translations with node-data from body
Definition: nurbs_curve_1s.cc:63
void computeCurveAngularVelocities(bool update=false)
interpolates the angular velocities with the node-data from the body
Definition: nurbs_curve_1s.cc:110
fmatvec::Vec3 normalRotationGrid
closest normal on rotation grid to update direction of normal of nurbs-curve and to avoid jumping
Definition: nurbs_curve_1s.h:140
MBSim::NurbsCurve curveTranslations
interpolated translations of the contour
Definition: nurbs_curve_1s.h:125
std::vector< MBSim::NurbsCurve > CurveJacobiansOfTranslation
interpolated Jacobians of Translation of the contour
Definition: nurbs_curve_1s.h:145
void initContourFromBody(InitStage stage)
initialize NURBS curve
Definition: nurbs_curve_1s.cc:31