Computes and map the length of the beams.
More...
#include <BeamLengthMapping.h>
|
| enum | { Nin = In::deriv_total_size
, Nout = Out::deriv_total_size
} |
|
typedef Mapping< TIn, TOut > | Inherit |
|
typedef TIn | In |
|
typedef TOut | Out |
|
typedef Out::Coord::value_type | Real |
|
typedef Out::Coord | Coord |
|
typedef Out::Deriv | Deriv |
|
typedef Out::VecCoord | VecCoord |
|
typedef Out::VecDeriv | VecDeriv |
|
typedef Out::MatrixDeriv | OutMatrixDeriv |
|
typedef In::Coord::value_type | InReal |
|
typedef In::Deriv | InDeriv |
|
typedef In::VecCoord | InVecCoord |
|
typedef In::VecDeriv | InVecDeriv |
|
typedef In::MatrixDeriv | InMatrixDeriv |
|
typedef vector< unsigned int > | VecIndex |
|
typedef BaseMeshTopology::EdgeID | ElementID |
|
typedef vector< BaseMeshTopology::Edge > | VecEdges |
|
typedef vector< BaseMeshTopology::EdgeID > | VecElementID |
|
typedef SolidTypes< InReal >::Transform | Transform |
|
typedef pair< int, Transform > | IndexedTransform |
|
typedef SolidTypes< InReal >::SpatialVector | SpatialVector |
|
typedef linearalgebra::EigenSparseMatrix< TIn, TOut > | SparseMatrixEigen |
|
typedef linearalgebra::EigenSparseMatrix< TIn, TIn > | SparseKMatrixEigen |
|
typedef Vec< 3, Real > | Vec3 |
|
typedef Vec< 6, Real > | Vec6 |
|
typedef Mat< 3, 3, Real > | Mat3 |
|
typedef Mat< 3, 6, Real > | Mat3x6 |
|
typedef Mat< 3, 12, Real > | Mat3x12 |
|
typedef Mat< 12, 3, Real > | Mat12x3 |
|
typedef Mat< 6, 12, Real > | Mat6x12 |
|
typedef Mat< 12, 6, Real > | Mat12x6 |
|
typedef BeamInterpolation< TIn > | BInterpolation |
|
|
| SOFA_CLASS (SOFA_TEMPLATE2(BeamLengthMapping, TIn, TOut), SOFA_TEMPLATE2(Mapping, TIn, TOut)) |
|
| BeamLengthMapping (State< In > *from=NULL, State< Out > *to=NULL, BeamInterpolation< TIn > *interpolation=NULL) |
|
void | setInterpolation (BeamInterpolation< TIn > *interpolation) |
|
virtual void | init () override |
|
virtual void | bwdInit () override |
|
virtual void | reset () override |
|
virtual void | reinit () override |
|
virtual void | draw (const VisualParams *) override |
|
virtual void | apply (const MechanicalParams *mparams, Data< VecCoord > &out, const Data< InVecCoord > &in) override |
|
virtual void | applyJ (const MechanicalParams *mparams, Data< VecDeriv > &out, const Data< InVecDeriv > &in) override |
|
virtual void | applyJT (const MechanicalParams *mparams, Data< InVecDeriv > &out, const Data< VecDeriv > &in) override |
|
virtual void | applyJT (const ConstraintParams *cparams, Data< InMatrixDeriv > &out, const Data< OutMatrixDeriv > &in) override |
| virtual void | applyDJT (const MechanicalParams *mparams, core::MultiVecDerivId parentDfId, core::ConstMultiVecDerivId childDfId) override |
|
virtual void | updateK (const MechanicalParams *, core::ConstMultiVecDerivId) override |
|
const linearalgebra::BaseMatrix * | getK () override |
|
|
SingleLink< BeamLengthMapping< TIn, TOut >, BInterpolation, BaseLink::FLAG_STOREPATH|BaseLink::FLAG_STRONGLINK > | l_adaptativebeamInterpolation |
|
Data< unsigned > | d_geometricStiffness |
| | how to compute geometric stiffness (0->no GS, 1->exact GS, 2->stabilized GS)
|
|
| void | computeJSpline (Real &dlength, const Vec3 &P0, const Vec3 &P1, const Vec3 &P2, const Vec3 &P3, const Vec3 &dP0, const Vec3 &dP1, const Vec3 &dP2, const Vec3 &dP3) |
| void | computeJtSpline (const Real &f_input, const Vec3 &P0, const Vec3 &P1, const Vec3 &P2, const Vec3 &P3, Vec3 &F0, Vec3 &F1, Vec3 &F2, Vec3 &F3) |
| void | computeDJtSpline (const Real &f_input, const Vec3 &P0, const Vec3 &P1, const Vec3 &P2, const Vec3 &P3, Mat< 4, 4, Mat3 > &Mat) |
|
void | createCrossMatrix (const Vec3 &v, Mat3 &result) |
|
|
SparseKMatrixEigen | K_geom |
template<class TIn, class TOut>
class beamadapter::BeamLengthMapping< TIn, TOut >
Computes and map the length of the beams.
This is a component: https://www.sofa-framework.org/community/doc/programming-with-sofa/create-your-component/
◆ applyDJT()
template<class TIn, class TOut>
| void applyDJT |
( |
const MechanicalParams * | mparams, |
|
|
core::MultiVecDerivId | parentDfId, |
|
|
core::ConstMultiVecDerivId | childDfId ) |
|
overridevirtual |
BeamLengthMapping::applyDJT(MultiVecDerivId parentDfId, const ConstMultiVecDerivId childDfId) this function computes the additional stiffness force created on the parents by the force on the child (due to mapping non-linearity)
◆ computeDJtSpline()
template<class TIn, class TOut>
| void computeDJtSpline |
( |
const Real & | f_input, |
|
|
const Vec3 & | P0, |
|
|
const Vec3 & | P1, |
|
|
const Vec3 & | P2, |
|
|
const Vec3 & | P3, |
|
|
Mat< 4, 4, Mat3 > & | Mat ) |
|
protected |
In computeDLength, corresponds to a part of the applicaiton of the jacobian Here, we compute the transposed of the jacobian formula with 4 Gauss Points definition of the Gauss points
◆ computeJSpline()
template<class TIn, class TOut>
| void computeJSpline |
( |
Real & | dlength, |
|
|
const Vec3 & | P0, |
|
|
const Vec3 & | P1, |
|
|
const Vec3 & | P2, |
|
|
const Vec3 & | P3, |
|
|
const Vec3 & | dP0, |
|
|
const Vec3 & | dP1, |
|
|
const Vec3 & | dP2, |
|
|
const Vec3 & | dP3 ) |
|
protected |
the computation of the derivation of the integral Int[0,1]_||dP(x)||_ dx = length done using Gauss Points
definition of the Gauss points
formula with 4 Gauss Points
◆ computeJtSpline()
template<class TIn, class TOut>
| void computeJtSpline |
( |
const Real & | f_input, |
|
|
const Vec3 & | P0, |
|
|
const Vec3 & | P1, |
|
|
const Vec3 & | P2, |
|
|
const Vec3 & | P3, |
|
|
Vec3 & | F0, |
|
|
Vec3 & | F1, |
|
|
Vec3 & | F2, |
|
|
Vec3 & | F3 ) |
|
protected |
In computeDLength, corresponds to a part of the applicaiton of the jacobian Here, we compute the transposed of the jacobian formula with 4 Gauss Points definition of the Gauss points