|
|
using | Inherit = BaseBeamInterpolation<DataTypes> |
|
using | Coord = typename DataTypes::Coord |
|
using | VecCoord = typename DataTypes::VecCoord |
|
using | Real = typename Coord::value_type |
|
using | Deriv = typename DataTypes::Deriv |
|
using | VecDeriv = typename DataTypes::VecDeriv |
|
using | Vec2 = sofa::type::Vec<2, Real> |
|
using | Vec3 = sofa::type::Vec<3, Real> |
|
using | Vec3NoInit = sofa::type::VecNoInit<3, Real> |
|
using | Quat = sofa::type::Quat<Real> |
|
using | VectorVec3 = type::vector <Vec3> |
|
using | Transform = typename sofa::defaulttype::SolidTypes<Real>::Transform |
|
using | SpatialVector = typename sofa::defaulttype::SolidTypes<Real>::SpatialVector |
|
using | PointID = BaseMeshTopology::PointID |
|
using | ElementID = BaseMeshTopology::EdgeID |
|
using | EdgeID = BaseMeshTopology::EdgeID |
|
using | VecElementID = type::vector<BaseMeshTopology::EdgeID> |
|
using | VecEdges = type::vector<BaseMeshTopology::Edge> |
|
using | Inherit = sofa::core::behavior::SingleStateAccessor<DataTypes> |
|
using | Coord = typename DataTypes::Coord |
|
using | VecCoord = typename DataTypes::VecCoord |
|
using | Real = typename Coord::value_type |
|
using | Deriv = typename DataTypes::Deriv |
|
using | VecDeriv = typename DataTypes::VecDeriv |
|
using | Transform = sofa::type::Transform<Real> |
|
using | SpatialVector = sofa::type::SpatialVector<Real> |
|
using | Vec2 = sofa::type::Vec<2, Real> |
|
using | Vec3 = sofa::type::Vec<3, Real> |
|
using | Vec3NoInit = sofa::type::VecNoInit<3, Real> |
|
using | Quat = sofa::type::Quat<Real> |
|
using | VectorVec3 = type::vector <Vec3> |
|
using | PointID = BaseMeshTopology::PointID |
|
using | EdgeID = BaseMeshTopology::EdgeID |
|
using | VecEdgeID = type::vector<BaseMeshTopology::EdgeID> |
|
using | VecEdges = type::vector<BaseMeshTopology::Edge> |
|
using | StateDataTypes = sofa::defaulttype::StdVectorTypes< sofa::type::Vec<DataTypes::spatial_dimensions, Real>, sofa::type::Vec<DataTypes::spatial_dimensions, Real>, Real > |
| | DATA INPUT (that could change in real-time).
|
|
|
| SOFA_CLASS (SOFA_TEMPLATE(BeamInterpolation, DataTypes), SOFA_TEMPLATE(BaseBeamInterpolation, DataTypes)) |
|
void | init () override |
|
void | reinit () override |
|
void | reset () override |
|
void | storeResetState () override |
| | In the context of beam interpolation, this function (easily access with Python) is used to update the interpolation (input / output).
|
| void | updateInterpolation () |
|
bool | interpolationIsAlreadyInitialized () |
| | Returns true if the interpolation is specified in the scene file (case of saved executed scenes...).
|
| bool | verifyTopology () |
|
void | computeCrossSectionInertiaMatrix () |
| const BeamSection & | getBeamSection (sofa::Index beamId) override |
| | Returns the BeamSection.
|
| void | getInterpolationParameters (sofa::Index beamId, Real &_L, Real &_A, Real &_Iy, Real &_Iz, Real &_Asy, Real &_Asz, Real &J) override |
| | Returns the BeamSection data depending on the beam position at the given beam, similar to @getBeamSection.
|
| void | getMechanicalParameters (sofa::Index beamId, Real &youngModulus, Real &cPoisson, Real &massDensity) override |
| | Returns the Young modulus, Poisson's ratio and massDensity coefficient of the section at the given curvilinear abscissa.
|
|
void | getTangentUsingSplinePoints (const EdgeID edgeInList, const Real baryCoord, const sofa::core::ConstVecCoordId &vecXId, Vec3 &t) |
| virtual void | getCurvAbsAtBeam (const EdgeID edgeInList_input, const Real baryCoord_input, Real &x_output) override |
| | computeActualLength => given the 4 control points of the spline, it provides an estimate of the length (using gauss points integration)
|
|
virtual void | getBeamAtCurvAbs (const Real x_input, unsigned int &edgeInList_output, Real &baryCoord_output, unsigned int start=0) override |
| virtual void | clear () override |
| virtual void | addBeam (const EdgeID eID, const Real length, const Real x0, const Real x1, const Real angle) override |
| virtual void | getSamplingParameters (type::vector< Real > &xP_noticeable, type::vector< sofa::Size > &nbP_density) override |
| Real | getRestTotalLength () override |
| | getLength / setLength => provides the rest length of each spline using
|
| void | getMechanicalSampling (Real &dx, const Real x_localcurv_abs) override |
| void | getCollisionSampling (Real &dx, const Real x_localcurv_abs) override |
| | Collision information using.
|
|
void | getNumberOfCollisionSegment (Real &dx, unsigned int &numLines) override |
|
void | setTransformBetweenDofAndNode (const sofa::Index beam, const Transform &DOF_H_Node, unsigned int zeroORone) |
| void | getSplineRestTransform (const EdgeID edgeInList, Transform &local_H_local0_rest, Transform &local_H_local1_rest) override |
|
unsigned int | getNumBeamsNotUnderControl () |
|
| SOFA_CLASS (SOFA_TEMPLATE(BaseBeamInterpolation, DataTypes), SOFA_TEMPLATE(sofa::core::behavior::SingleStateAccessor, DataTypes)) |
|
void | init () override |
|
sofa::Size | getNumBeams () const |
|
void | getAbsCurvXFromBeam (const sofa::Index beam, Real &x_curv) |
|
void | getAbsCurvXFromBeam (const sofa::Index beam, Real &x_curv_start, Real &x_curv_end) |
|
Real | getLength (const EdgeID edgeInList) |
|
void | setLength (const EdgeID edgeInList, Real &length) |
|
void | addCollisionOnBeam (const sofa::Index beam) |
| | Set collision information.
|
|
void | clearCollisionOnBeam () |
|
virtual void | getNumberOfCollisionSegment (Real &dx, sofa::Size &numLines)=0 |
| virtual void | getSplineRestTransform (const EdgeID edgeInList, Transform &local_H_local0_rest, Transform &local_H_local1_rest)=0 |
| virtual void | getBeamAtCurvAbs (const Real x_input, sofa::Index &edgeInList_output, Real &baryCoord_output, unsigned int start=0) |
| int | computeTransform (const EdgeID edgeInList, Transform &global_H_local0, Transform &global_H_local1, const VecCoord &x) |
| int | computeTransform (const EdgeID edgeInList, const PointID node0Idx, const PointID node1Idx, Transform &global_H_local0, Transform &global_H_local1, const VecCoord &x) |
|
void | getDOFtoLocalTransform (const EdgeID edgeInList, Transform &DOF0_H_local0, Transform &DOF1_H_local1) |
|
void | getDOFtoLocalTransformInGlobalFrame (const EdgeID edgeInList, Transform &DOF0Global_H_local0, Transform &DOF1Global_H_local1, const VecCoord &x) |
|
void | setTransformBetweenDofAndNode (const sofa::Index beam, const Transform &DOF_H_Node, unsigned int zeroORone) |
|
void | getTangent (Vec3 &t, const Real baryCoord, const Transform &global_H_local0, const Transform &global_H_local1, const Real L) |
| | getTangent : Computation of a Tangent for the beam (it is given by the derivative of the spline formulation)
|
| int | getNodeIndices (const EdgeID edgeInList, unsigned int &node0Idx, unsigned int &node1Idx) |
|
void | getSplinePoints (const EdgeID edgeInList, const VecCoord &x, Vec3 &P0, Vec3 &P1, Vec3 &P2, Vec3 &P3) |
|
unsigned int | getStateSize () const |
| void | computeActualLength (Real &length, const Vec3 &P0, const Vec3 &P1, const Vec3 &P2, const Vec3 &P3) |
| void | computeStrechAndTwist (const EdgeID edgeInList, const VecCoord &x, Vec3 &ResultNodeO, Vec3 &ResultNode1) |
| void | updateBezierPoints (const VecCoord &x, sofa::core::VecCoordId &vId_Out) |
| | vId_Out provides the id of the multiVecId which stores the position of the Bezier Points
|
|
void | updateBezierPoints (const VecCoord &x, sofa::Index index, VectorVec3 &v) |
|
void | interpolatePointUsingSpline (const EdgeID edgeInList, const Real baryCoord, const Vec3 &localPos, const VecCoord &x, Vec3 &posResult) |
| | spline base interpolation of points and transformation
|
| void | interpolatePointUsingSpline (const EdgeID edgeInList, const Real baryCoord, const Vec3 &localPos, const VecCoord &x, Vec3 &posResult, bool recompute, const sofa::core::ConstVecCoordId &vecXId) |
|
void | InterpolateTransformUsingSpline (const EdgeID edgeInList, const Real baryCoord, const Vec3 &localPos, const VecCoord &x, Transform &global_H_localInterpol) |
| void | InterpolateTransformUsingSpline (Transform &global_H_localResult, const Real baryCoord, const Transform &global_H_local0, const Transform &global_H_local1, const Real L) |
| void | InterpolateTransformAndVelUsingSpline (const EdgeID edgeInList, const Real baryCoord, const Vec3 &localPos, const VecCoord &x, const VecDeriv &v, Transform &global_H_localInterpol, Deriv &v_interpol) |
| Real | ComputeTotalBendingRotationAngle (const Real dx_computation, const Transform &global_H_local0, const Transform &global_H_local1, const Real L, const Real baryCoordMin, const Real baryCoordMax) |
| | compute the total bending Rotation Angle while going through the Spline (to estimate the curvature)
|
| void | MapForceOnNodeUsingSpline (const EdgeID edgeInList, const Real baryCoord, const Vec3 &localPos, const VecCoord &x, const Vec3 &finput, SpatialVector &FNode0output, SpatialVector &FNode1output) |
| | 3DOF mapping
|
| void | MapForceOnNodeUsingSpline (const EdgeID edgeInList, const Real baryCoord, const Vec3 &localPos, const VecCoord &x, const SpatialVector &f6DofInput, SpatialVector &FNode0output, SpatialVector &FNode1output) |
| | 6DoF mapping
|
template<class DataTypes>
class beamadapter::BeamInterpolation< DataTypes >
This class implements a Sofa Component that provide interpolation method to compute Finite Element elastic force and mass based on Adaptive 6D beam elements.
- Adaptive beam interpolation
- Adaptive Force and Mass computation
- Adaptive Mapping
AdaptiveBeam Interpolation provides the basis of the Beam computation As the computation is adaptive, the interpolation can be modified at each time step.
More informations about SOFA components: https://www.sofa-framework.org/community/doc/programming-with-sofa/create-your-component/ https://www.sofa-framework.org/community/doc/programming-with-sofa/components-api/components-and-datas/