SOFA plugin: SofaDistanceGrid  master
Open source framework for multi-physics simuation
sofa::component::forcefield::DistanceGridForceField< DataTypes > Class Template Reference

#include <DistanceGridForceField.h>

Inheritance diagram for sofa::component::forcefield::DistanceGridForceField< DataTypes >:

Classes

class  Contact
 
class  TContact
 
class  VContact
 

Public Attributes

sofa::core::objectmodel::DataFileName fileDistanceGrid
 load distance grid from specified file More...
 
Data< double > scale
 scaling factor for input file More...
 
Data< type::fixed_array< DistanceGrid::Coord, 2 > > box
 Field bounding box defined by xmin,ymin,zmin, xmax,ymax,zmax. More...
 
Data< int > nx
 number of values on X axis More...
 
Data< int > ny
 number of values on Y axis More...
 
Data< int > nz
 number of values on Z axis More...
 
Data< RealstiffnessIn
 force stiffness when inside of the object More...
 
Data< RealstiffnessOut
 force stiffness when outside of the object More...
 
Data< Realdamping
 force damping coefficient More...
 
Data< RealmaxDist
 max distance of the surface after which no more force is applied More...
 
Data< RealminArea
 minimal area for each triangle, as seen from the direction of the local surface (i.e. a flipped triangle will have a negative area) More...
 
Data< RealstiffnessArea
 force stiffness if a triangle have an area less than minArea More...
 
Data< RealminVolume
 minimal volume for each tetrahedron (a flipped triangle will have a negative volume) More...
 
Data< RealstiffnessVolume
 force stiffness if a tetrahedron have an volume less than minVolume More...
 
bool flipNormals
 
Data< sofa::type::RGBAColorcolor
 display color.(default=[0.0,0.5,0.2,1.0]) More...
 
Data< bool > bDraw
 enable/disable drawing of distancegrid More...
 
Data< bool > drawPoints
 enable/disable drawing of distancegrid More...
 
Data< RealdrawSize
 display size if draw is enabled More...
 
Data< type::Vec< 2, int > > localRange
 optional range of local DOF indices. Any computation involving only indices outside of this range are discarded (useful for parallelization using mesh partitioning) More...
 
- Public Attributes inherited from sofa::core::behavior::BaseForceField
Data< SReal > rayleighStiffness
 
objectmodel::lifecycle::RemovedData isCompliance
 
- Public Attributes inherited from sofa::core::objectmodel::BaseObject
Data< bool > f_listening
 
- Public Attributes inherited from sofa::core::objectmodel::Base
std::vector< lifecycle::DeprecatedData * > m_oldAttributes
 
Data< int > d_messageLogCount
 
Data< std::string > name
 
Data< bool > f_printLog
 
Data< sofa::core::objectmodel::TagSetf_tags
 
Data< sofa::type::BoundingBoxf_bbox
 
Data< sofa::core::objectmodel::ComponentStated_componentState
 
std::string m_definitionSourceFileName
 
int m_definitionSourceFilePos
 
std::string m_instanciationSourceFileName
 
int m_instanciationSourceFilePos
 

Protected Attributes

std::shared_ptr< DistanceGridgrid
 
sofa::type::vector< bool > pOnBorder
 
Data< sofa::type::vector< Contact > > contacts
 
Data< sofa::type::vector< TContact > > tcontacts
 
Data< sofa::type::vector< VContact > > vcontacts
 
DistanceGridForceFieldInternalData< DataTypesdata
 
- Protected Attributes inherited from sofa::core::behavior::StateAccessor
MultiLink< StateAccessor, BaseMechanicalState, BaseLink::FLAG_DUPLICATE > l_mechanicalStates
 
- Protected Attributes inherited from sofa::core::objectmodel::BaseObject
SingleLink< BaseObject, BaseContext, BaseLink::FLAG_DOUBLELINK > l_context
 
LinkSlaves l_slaves
 
SingleLink< BaseObject, BaseObject, BaseLink::FLAG_DOUBLELINK > l_master
 
- Protected Attributes inherited from sofa::core::objectmodel::Base
std::map< std::string, sofa::core::DataTrackerCallbackm_internalEngine
 
VecData m_vecData
 
MapData m_aliasData
 
VecLink m_vecLink
 
MapLink m_aliasLink
 
- Protected Attributes inherited from SingleStateAccessor< TDataTypes >
SingleLink< SingleStateAccessor< TDataTypes >, MechanicalState< TDataTypes >, BaseLink::FLAG_STRONGLINK > mstate
 

Public Member Functions

 SOFA_CLASS (SOFA_TEMPLATE(DistanceGridForceField, DataTypes), SOFA_TEMPLATE(core::behavior::ForceField, DataTypes))
 
void init () override
 
void setMState (core::behavior::MechanicalState< DataTypes > *mstate)
 
void setStiffness (Real stiffIn, Real stiffOut)
 
void setDamping (Real damp)
 
void addForce (const sofa::core::MechanicalParams *, DataVecDeriv &dataF, const DataVecCoord &dataX, const DataVecDeriv &dataV) override
 
void addDForce (const sofa::core::MechanicalParams *mparams, DataVecDeriv &datadF, const DataVecDeriv &datadX) override
 
void addKToMatrix (const sofa::core::MechanicalParams *mparams, const sofa::core::behavior::MultiMatrixAccessor *matrix) override
 
SReal getPotentialEnergy (const core::MechanicalParams *, const DataVecCoord &) const override
 
void draw (const core::visual::VisualParams *vparams) override
 
void drawDistanceGrid (const core::visual::VisualParams *, float size=0.0f)
 
- Public Member Functions inherited from sofa::core::behavior::ForceField< class >
 SOFA_CLASS2 (SOFA_TEMPLATE(ForceField, TDataTypes), BaseForceField, SOFA_TEMPLATE(SingleStateAccessor, TDataTypes))
 
void addForce (const MechanicalParams *mparams, MultiVecDerivId fId) override
 
virtual void addForce (const MechanicalParams *, DataVecDeriv &f, const DataVecCoord &x, const DataVecDeriv &v)=0
 
void addDForce (const MechanicalParams *mparams, MultiVecDerivId dfId) override
 
virtual void addDForce (const MechanicalParams *mparams, DataVecDeriv &df, const DataVecDeriv &dx)=0
 
virtual void addClambda (const MechanicalParams *mparams, DataVecDeriv &df, const DataVecDeriv &lambda, SReal cFactor)=delete
 
SReal getPotentialEnergy (const MechanicalParams *mparams) const override
 
virtual SReal getPotentialEnergy (const MechanicalParams *, const DataVecCoord &x) const=0
 
virtual void addClambda (const MechanicalParams *, MultiVecDerivId, MultiVecDerivId, SReal)=delete
 
virtual void addKToMatrix (sofa::linearalgebra::BaseMatrix *matrix, SReal kFact, unsigned int &offset)
 
void addBToMatrix (const MechanicalParams *mparams, const sofa::core::behavior::MultiMatrixAccessor *matrix) override
 
void addToMatrix (sofa::linearalgebra::BaseMatrix *bm, unsigned offset, const IndexArray &nodeIndex, const ElementMat &em, SReal scale)
 
virtual void addBToMatrix (sofa::linearalgebra::BaseMatrix *matrix, SReal bFact, unsigned int &offset)
 
void addForce (const MechanicalParams *mparams, MultiVecDerivId fId) override
 
virtual void addForce (const MechanicalParams *, DataVecDeriv &f, const DataVecCoord &x, const DataVecDeriv &v)=0
 
void addDForce (const MechanicalParams *mparams, MultiVecDerivId dfId) override
 
virtual void addDForce (const MechanicalParams *mparams, DataVecDeriv &df, const DataVecDeriv &dx)=0
 
virtual void addClambda (const MechanicalParams *mparams, DataVecDeriv &df, const DataVecDeriv &lambda, SReal cFactor)=delete
 
SReal getPotentialEnergy (const MechanicalParams *mparams) const override
 
virtual SReal getPotentialEnergy (const MechanicalParams *, const DataVecCoord &x) const=0
 
virtual void addClambda (const MechanicalParams *, MultiVecDerivId, MultiVecDerivId, SReal)=delete
 
virtual void addKToMatrix (sofa::linearalgebra::BaseMatrix *matrix, SReal kFact, unsigned int &offset)
 
void addBToMatrix (const MechanicalParams *mparams, const sofa::core::behavior::MultiMatrixAccessor *matrix) override
 
void addToMatrix (sofa::linearalgebra::BaseMatrix *bm, unsigned offset, const IndexArray &nodeIndex, const ElementMat &em, SReal scale)
 
virtual void addBToMatrix (sofa::linearalgebra::BaseMatrix *matrix, SReal bFact, unsigned int &offset)
 
- Public Member Functions inherited from sofa::core::behavior::BaseForceField
 SOFA_ABSTRACT_CLASS (BaseForceField, StateAccessor)
 
bool insertInNode (objectmodel::BaseNode *node) override
 
bool removeInNode (objectmodel::BaseNode *node) override
 
virtual void addMBKdx (const MechanicalParams *mparams, MultiVecDerivId dfId)
 
virtual void addMBKToMatrix (const MechanicalParams *mparams, const sofa::core::behavior::MultiMatrixAccessor *matrix)
 
virtual void buildStiffnessMatrix (StiffnessMatrix *matrix)
 
virtual void buildDampingMatrix (DampingMatrix *matrix)
 
virtual const sofa::linearalgebra::BaseMatrixgetComplianceMatrix (const MechanicalParams *)=delete
 
virtual void addMBKdx (const MechanicalParams *mparams, MultiVecDerivId dfId)
 
virtual void addMBKToMatrix (const MechanicalParams *mparams, const sofa::core::behavior::MultiMatrixAccessor *matrix)
 
virtual void buildStiffnessMatrix (StiffnessMatrix *matrix)
 
virtual void buildDampingMatrix (DampingMatrix *matrix)
 
- Public Member Functions inherited from sofa::core::behavior::StateAccessor
 SOFA_ABSTRACT_CLASS (StateAccessor, objectmodel::BaseObject)
 
virtual const MultiLink< StateAccessor, BaseMechanicalState, BaseLink::FLAG_DUPLICATE >::Container & getMechanicalStates () const
 
void computeBBox (const core::ExecParams *params, bool onlyVisible=false) override
 
- Public Member Functions inherited from sofa::core::objectmodel::BaseObject
 SOFA_CLASS (BaseObject, Base)
 
void setSrc (const std::string &v, std::vector< std::string > *attributeList=nullptr)
 
void setSrc (const std::string &v, const BaseObject *loader, std::vector< std::string > *attributeList=nullptr)
 
BasefindLinkDestClass (const BaseClass *destType, const std::string &path, const BaseLink *link) override
 
virtual std::string getPathName () const override
 
SReal getTime () const
 
const BaseContextgetContext () const
 
BaseContextgetContext ()
 
const BaseObjectgetMaster () const
 
BaseObjectgetMaster ()
 
const VecSlavesgetSlaves () const
 
BaseObjectgetSlave (const std::string &name) const
 
virtual void addSlave (BaseObject::SPtr s)
 
virtual void removeSlave (BaseObject::SPtr s)
 
virtual void handleEvent (Event *)
 
virtual void handleTopologyChange ()
 
virtual void handleTopologyChange (core::topology::Topology *t)
 
void parse (BaseObjectDescription *arg) override
 
virtual void bwdInit ()
 
virtual void reinit ()
 
void updateInternal ()
 
virtual void storeResetState ()
 
virtual void reset ()
 
virtual void cleanup ()
 
SReal getTime () const
 
- Public Member Functions inherited from sofa::core::objectmodel::Base
virtual const BaseClassgetClass () const
 
void addDeprecatedAttribute (lifecycle::DeprecatedData *attribute)
 
void addUpdateCallback (const std::string &name, std::initializer_list< BaseData * > inputs, std::function< sofa::core::objectmodel::ComponentState(const DataTracker &)> function, std::initializer_list< BaseData * > outputs)
 
void addOutputsToCallback (const std::string &name, std::initializer_list< BaseData * > outputs)
 
const std::string & getName () const
 
void setName (const std::string &n)
 
void setName (const std::string &n, int counter)
 
std::string getTypeName () const
 
virtual std::string getClassName () const
 
virtual std::string getTemplateName () const final
 
std::string getNameSpaceName () const
 
void setDefinitionSourceFileName (const std::string &sourceFileName)
 
const std::string & getDefinitionSourceFileName () const
 
void setDefinitionSourceFilePos (const int)
 
int getDefinitionSourceFilePos () const
 
void setInstanciationSourceFileName (const std::string &sourceFileName)
 
const std::string & getInstanciationSourceFileName () const
 
void setInstanciationSourceFilePos (const int)
 
int getInstanciationSourceFilePos () const
 
void addMessage (const sofa::helper::logging::Message &m) const
 
size_t countLoggedMessages (sofa::helper::logging::Message::TypeSet t=sofa::helper::logging::Message::AnyTypes) const
 
const std::deque< sofa::helper::logging::Message > & getLoggedMessages () const
 
const std::string getLoggedMessagesAsString (sofa::helper::logging::Message::TypeSet t=sofa::helper::logging::Message::AnyTypes) const
 
void clearLoggedMessages () const
 
bool notMuted () const
 
const sofa::core::objectmodel::TagSetgetTags () const
 
bool hasTag (Tag t) const
 
void addTag (Tag t)
 
void removeTag (Tag t)
 
ComponentState getComponentState () const
 
bool isComponentStateValid () const
 
bool isComponentStateInvalid () const
 
 SOFA_ATTRIBUTE_DEPRECATED__TOBASECONSTRAINT () virtual const behavior
 
virtual bool parseField (const std::string &attribute, const std::string &value)
 
virtual bool hasField (const std::string &attribute) const
 
void parseFields (const std::list< std::string > &str)
 
virtual void parseFields (const std::map< std::string, std::string * > &str)
 
void writeDatas (std::map< std::string, std::string * > &str)=delete
 
void writeDatas (std::ostream &out, const std::string &separator=" ")
 
BaseDatafindData (const std::string &name) const
 
std::vector< BaseData * > findGlobalField (const std::string &name) const
 
BaseLinkfindLink (const std::string &name) const
 
std::vector< BaseLink * > findLinks (const std::string &name) const
 
virtual void updateLinks (bool logErrors=true)
 
BaseData::BaseInitData initData (::sofa::core::objectmodel::Data< T > *field, const char *name, const char *help, ::sofa::core::objectmodel::BaseData::DataFlags dataflags)
 
BaseData::BaseInitData initData (Data< T > *field, const char *name, const char *help, bool isDisplayed=true, bool isReadOnly=false)
 
Data< T >::InitData initData (Data< T > *field, const T &value, const char *name, const char *help, bool isDisplayed=true, bool isReadOnly=false)
 
void addData (BaseData *f, const std::string &name)
 
void addData (BaseData *f)
 
void removeData (BaseData *f)
 
void addAlias (BaseData *field, const char *alias)
 
void addLink (BaseLink *l)
 
void addAlias (BaseLink *link, const char *alias)
 
const VecDatagetDataFields () const
 
const MapDatagetDataAliases () const
 
const VecLinkgetLinks () const
 
const MapLinkgetLinkAliases () const
 
virtual bool findDataLinkDest (BaseData *&ptr, const std::string &path, const BaseLink *link)
 
bool findLinkDest (T *&ptr, const std::string &path, const BaseLink *link)
 
const sofa::core::objectmodel::TagSetgetTags () const
 
bool hasTag (Tag t) const
 
void addTag (Tag t)
 
void removeTag (Tag t)
 
ComponentState getComponentState () const
 
bool isComponentStateValid () const
 
bool isComponentStateInvalid () const
 
 SOFA_ATTRIBUTE_DEPRECATED__TOBASECONSTRAINT () virtual const behavior
 
- Public Member Functions inherited from SingleStateAccessor< TDataTypes >
 SOFA_ABSTRACT_CLASS (SOFA_TEMPLATE(SingleStateAccessor, TDataTypes), StateAccessor)
 
MechanicalState< TDataTypes > * getMState ()
 
const MechanicalState< TDataTypes > * getMState () const
 

Protected Member Functions

 DistanceGridForceField ()
 
- Protected Member Functions inherited from sofa::core::behavior::ForceField< class >
 ForceField (MechanicalState< DataTypes > *mm=nullptr)
 
 ~ForceField () override
 
- Protected Member Functions inherited from sofa::core::behavior::BaseForceField
 BaseForceField ()
 
 ~BaseForceField () override=default
 
- Protected Member Functions inherited from sofa::core::behavior::StateAccessor
 StateAccessor ()
 
 ~StateAccessor () override=default
 
- Protected Member Functions inherited from sofa::core::objectmodel::BaseObject
 BaseObject ()
 
 ~BaseObject () override
 
virtual void doUpdateInternal ()
 
void changeContextLink (BaseContext *before, BaseContext *&after)
 
void changeSlavesLink (BaseObject::SPtr ptr, std::size_t, bool add)
 
void trackInternalData (const BaseData &data)
 
void cleanTracker ()
 
bool hasDataChanged (const BaseData &data)
 
- Protected Member Functions inherited from sofa::core::objectmodel::Base
 Base ()
 
virtual ~Base ()
 
void initData0 (BaseData *field, BaseData::BaseInitData &res, const char *name, const char *help, bool isDisplayed=true, bool isReadOnly=false)
 
void initData0 (BaseData *field, BaseData::BaseInitData &res, const char *name, const char *help, BaseData::DataFlags dataFlags)
 
void initData0 (Data< T > *field, typename Data< T >::InitData &res, const T &value, const char *name, const char *help, bool isDisplayed=true, bool isReadOnly=false)
 
- Protected Member Functions inherited from sofa::core::IntrusiveObject
virtual ~IntrusiveObject ()=default
 
- Protected Member Functions inherited from SingleStateAccessor< TDataTypes >
 SingleStateAccessor (MechanicalState< TDataTypes > *mm=nullptr)
 
 ~SingleStateAccessor () override=default
 

Additional Inherited Members

- Static Public Member Functions inherited from sofa::core::behavior::ForceField< class >
static bool canCreate (T *&obj, objectmodel::BaseContext *context, objectmodel::BaseObjectDescription *arg)
 
static std::string shortName (const T *ptr=nullptr, objectmodel::BaseObjectDescription *arg=nullptr)
 
- Static Public Member Functions inherited from sofa::core::objectmodel::BaseObject
static bool canCreate (T *, BaseContext *, BaseObjectDescription *)
 
static T::SPtr create (T *, BaseContext *context, BaseObjectDescription *arg)
 
- Static Public Member Functions inherited from sofa::core::objectmodel::Base
static const BaseClassGetClass ()
 
static std::string shortName (const T *ptr=nullptr, BaseObjectDescription *=nullptr)
 

Attribute details

◆ bDraw

template<class DataTypes >
Data<bool> sofa::component::forcefield::DistanceGridForceField< DataTypes >::bDraw

enable/disable drawing of distancegrid

◆ box

template<class DataTypes >
Data< type::fixed_array<DistanceGrid::Coord,2> > sofa::component::forcefield::DistanceGridForceField< DataTypes >::box

Field bounding box defined by xmin,ymin,zmin, xmax,ymax,zmax.

◆ color

display color.(default=[0.0,0.5,0.2,1.0])

◆ contacts

template<class DataTypes >
Data<sofa::type::vector<Contact> > sofa::component::forcefield::DistanceGridForceField< DataTypes >::contacts
protected

◆ damping

template<class DataTypes >
Data<Real> sofa::component::forcefield::DistanceGridForceField< DataTypes >::damping

force damping coefficient

◆ data

◆ drawPoints

template<class DataTypes >
Data<bool> sofa::component::forcefield::DistanceGridForceField< DataTypes >::drawPoints

enable/disable drawing of distancegrid

◆ drawSize

template<class DataTypes >
Data<Real> sofa::component::forcefield::DistanceGridForceField< DataTypes >::drawSize

display size if draw is enabled

◆ fileDistanceGrid

load distance grid from specified file

◆ flipNormals

template<class DataTypes >
bool sofa::component::forcefield::DistanceGridForceField< DataTypes >::flipNormals

◆ grid

template<class DataTypes >
std::shared_ptr<DistanceGrid> sofa::component::forcefield::DistanceGridForceField< DataTypes >::grid
protected

◆ localRange

template<class DataTypes >
Data< type::Vec<2,int> > sofa::component::forcefield::DistanceGridForceField< DataTypes >::localRange

optional range of local DOF indices. Any computation involving only indices outside of this range are discarded (useful for parallelization using mesh partitioning)

◆ maxDist

template<class DataTypes >
Data<Real> sofa::component::forcefield::DistanceGridForceField< DataTypes >::maxDist

max distance of the surface after which no more force is applied

◆ minArea

template<class DataTypes >
Data<Real> sofa::component::forcefield::DistanceGridForceField< DataTypes >::minArea

minimal area for each triangle, as seen from the direction of the local surface (i.e. a flipped triangle will have a negative area)

◆ minVolume

template<class DataTypes >
Data<Real> sofa::component::forcefield::DistanceGridForceField< DataTypes >::minVolume

minimal volume for each tetrahedron (a flipped triangle will have a negative volume)

◆ nx

template<class DataTypes >
Data< int > sofa::component::forcefield::DistanceGridForceField< DataTypes >::nx

number of values on X axis

◆ ny

template<class DataTypes >
Data< int > sofa::component::forcefield::DistanceGridForceField< DataTypes >::ny

number of values on Y axis

◆ nz

template<class DataTypes >
Data< int > sofa::component::forcefield::DistanceGridForceField< DataTypes >::nz

number of values on Z axis

◆ pOnBorder

template<class DataTypes >
sofa::type::vector<bool> sofa::component::forcefield::DistanceGridForceField< DataTypes >::pOnBorder
protected

◆ scale

template<class DataTypes >
Data< double > sofa::component::forcefield::DistanceGridForceField< DataTypes >::scale

scaling factor for input file

◆ stiffnessArea

template<class DataTypes >
Data<Real> sofa::component::forcefield::DistanceGridForceField< DataTypes >::stiffnessArea

force stiffness if a triangle have an area less than minArea

◆ stiffnessIn

template<class DataTypes >
Data<Real> sofa::component::forcefield::DistanceGridForceField< DataTypes >::stiffnessIn

force stiffness when inside of the object

◆ stiffnessOut

template<class DataTypes >
Data<Real> sofa::component::forcefield::DistanceGridForceField< DataTypes >::stiffnessOut

force stiffness when outside of the object

◆ stiffnessVolume

template<class DataTypes >
Data<Real> sofa::component::forcefield::DistanceGridForceField< DataTypes >::stiffnessVolume

force stiffness if a tetrahedron have an volume less than minVolume

◆ tcontacts

template<class DataTypes >
Data<sofa::type::vector<TContact> > sofa::component::forcefield::DistanceGridForceField< DataTypes >::tcontacts
protected

◆ vcontacts

template<class DataTypes >
Data<sofa::type::vector<VContact> > sofa::component::forcefield::DistanceGridForceField< DataTypes >::vcontacts
protected

Constructor details

◆ DistanceGridForceField()

template<class DataTypes >
sofa::component::forcefield::DistanceGridForceField< DataTypes >::DistanceGridForceField ( )
inlineprotected

Function details

◆ addDForce()

template<class DataTypes >
void sofa::component::forcefield::DistanceGridForceField< DataTypes >::addDForce ( const sofa::core::MechanicalParams mparams,
DataVecDeriv datadF,
const DataVecDeriv datadX 
)
override

◆ addForce()

template<class DataTypes >
void sofa::component::forcefield::DistanceGridForceField< DataTypes >::addForce ( const sofa::core::MechanicalParams ,
DataVecDeriv dataF,
const DataVecCoord dataX,
const DataVecDeriv dataV 
)
override

◆ addKToMatrix()

template<class DataTypes >
void sofa::component::forcefield::DistanceGridForceField< DataTypes >::addKToMatrix ( const sofa::core::MechanicalParams mparams,
const sofa::core::behavior::MultiMatrixAccessor matrix 
)
overridevirtual

◆ draw()

template<class DataTypes >
void sofa::component::forcefield::DistanceGridForceField< DataTypes >::draw ( const core::visual::VisualParams vparams)
overridevirtual

◆ drawDistanceGrid()

template<class DataTypes >
void sofa::component::forcefield::DistanceGridForceField< DataTypes >::drawDistanceGrid ( const core::visual::VisualParams vparams,
float  size = 0.0f 
)

◆ getPotentialEnergy()

template<class DataTypes >
SReal sofa::component::forcefield::DistanceGridForceField< DataTypes >::getPotentialEnergy ( const core::MechanicalParams ,
const DataVecCoord  
) const
inlineoverride

◆ init()

template<class DataTypes >
void sofa::component::forcefield::DistanceGridForceField< DataTypes >::init ( void  )
overridevirtual

Reimplemented from SingleStateAccessor< TDataTypes >.

◆ setDamping()

template<class DataTypes >
void sofa::component::forcefield::DistanceGridForceField< DataTypes >::setDamping ( Real  damp)
inline

◆ setMState()

template<class DataTypes >
void sofa::component::forcefield::DistanceGridForceField< DataTypes >::setMState ( core::behavior::MechanicalState< DataTypes > *  mstate)
inline

◆ setStiffness()

template<class DataTypes >
void sofa::component::forcefield::DistanceGridForceField< DataTypes >::setStiffness ( Real  stiffIn,
Real  stiffOut 
)
inline

◆ SOFA_CLASS()

template<class DataTypes >
sofa::component::forcefield::DistanceGridForceField< DataTypes >::SOFA_CLASS ( SOFA_TEMPLATE(DistanceGridForceField< DataTypes >, DataTypes ,
SOFA_TEMPLATE(core::behavior::ForceField, DataTypes  
)