sofa::simulation::MechanicalComputeDfVisitor Class Reference

Compute the variation of force corresponding to a variation of position. More...

#include <MechanicalVisitor.h>

Inheritance diagram for sofa::simulation::MechanicalComputeDfVisitor:

Inheritance graph
[legend]
Collaboration diagram for sofa::simulation::MechanicalComputeDfVisitor:

Collaboration graph
[legend]

Public Member Functions

 MechanicalComputeDfVisitor (VecId res, bool useV=false, bool accumulate=true)
virtual Result fwdMechanicalState (simulation::Node *, core::componentmodel::behavior::BaseMechanicalState *mm)
 Process the BaseMechanicalState if it is not mapped from the parent level.
virtual Result fwdMappedMechanicalState (simulation::Node *, core::componentmodel::behavior::BaseMechanicalState *mm)
 Process the BaseMechanicalState if it is mapped from the parent level.
virtual Result fwdForceField (simulation::Node *, core::componentmodel::behavior::BaseForceField *ff)
 Process all the BaseForceField.
virtual void bwdMechanicalMapping (simulation::Node *, core::componentmodel::behavior::BaseMechanicalMapping *map)
 Process the BaseMechanicalMapping.
virtual bool isThreadSafe () const
 Specify whether this action can be parallelized.

Data Fields

VecId res
bool useV
bool accumulate
 Accumulate everything back to the DOFs through the mappings.

Detailed Description

Compute the variation of force corresponding to a variation of position.

This action is typically called after a MechanicalPropagateDxVisitor.

Definition at line 550 of file MechanicalVisitor.h.


Constructor & Destructor Documentation

sofa::simulation::MechanicalComputeDfVisitor::MechanicalComputeDfVisitor ( VecId  res,
bool  useV = false,
bool  accumulate = true 
) [inline]

Definition at line 556 of file MechanicalVisitor.h.


Member Function Documentation

void sofa::simulation::MechanicalComputeDfVisitor::bwdMechanicalMapping ( simulation::Node *  ,
core::componentmodel::behavior::BaseMechanicalMapping *   
) [virtual]

Process the BaseMechanicalMapping.

Reimplemented from sofa::simulation::MechanicalVisitor.

Definition at line 416 of file MechanicalVisitor.cpp.

References accumulate, and sofa::core::componentmodel::behavior::BaseMechanicalMapping::accumulateDf().

Visitor::Result sofa::simulation::MechanicalComputeDfVisitor::fwdForceField ( simulation::Node *  ,
core::componentmodel::behavior::BaseForceField *   
) [virtual]

Visitor::Result sofa::simulation::MechanicalComputeDfVisitor::fwdMappedMechanicalState ( simulation::Node *  ,
core::componentmodel::behavior::BaseMechanicalState *   
) [virtual]

Process the BaseMechanicalState if it is mapped from the parent level.

Reimplemented from sofa::simulation::MechanicalVisitor.

Definition at line 403 of file MechanicalVisitor.cpp.

References sofa::core::componentmodel::behavior::BaseMechanicalState::accumulateDf(), and sofa::simulation::Visitor::RESULT_CONTINUE.

Visitor::Result sofa::simulation::MechanicalComputeDfVisitor::fwdMechanicalState ( simulation::Node *  ,
core::componentmodel::behavior::BaseMechanicalState *   
) [virtual]

virtual bool sofa::simulation::MechanicalComputeDfVisitor::isThreadSafe (  )  const [inline, virtual]

Specify whether this action can be parallelized.

Reimplemented from sofa::simulation::Visitor.

Definition at line 564 of file MechanicalVisitor.h.


Field Documentation

Accumulate everything back to the DOFs through the mappings.

Definition at line 555 of file MechanicalVisitor.h.

Referenced by bwdMechanicalMapping().

Definition at line 553 of file MechanicalVisitor.h.

Referenced by fwdMechanicalState().

Definition at line 554 of file MechanicalVisitor.h.

Referenced by fwdForceField().


The documentation for this class was generated from the following files:

Generated on Sun Nov 23 04:24:28 2008 for Sofa by  doxygen 1.5.7.1