#include <MechanicalVisitor.h>


Typically used in implicit integration solved by a Conjugate Gradient algorithm. Note that if a dx vector is given, it is used and propagated by the mappings, Otherwise the current value is used.
Definition at line 376 of file MechanicalVisitor.h.
| sofa::simulation::MechanicalAddMDxVisitor::MechanicalAddMDxVisitor | ( | VecId | res, | |
| VecId | dx = VecId(), |
|||
| double | factor = 1.0 | |||
| ) | [inline] |
Definition at line 382 of file MechanicalVisitor.h.
| virtual void sofa::simulation::MechanicalAddMDxVisitor::bwdMechanicalMapping | ( | simulation::Node * | , | |
| core::componentmodel::behavior::BaseMechanicalMapping * | ||||
| ) | [inline, virtual] |
Process the BaseMechanicalMapping.
Reimplemented from sofa::simulation::MechanicalVisitor.
Definition at line 414 of file MechanicalVisitor.h.
References sofa::core::componentmodel::behavior::BaseMechanicalMapping::accumulateForce().
| virtual Result sofa::simulation::MechanicalAddMDxVisitor::fwdMappedMechanicalState | ( | simulation::Node * | , | |
| core::componentmodel::behavior::BaseMechanicalState * | ||||
| ) | [inline, virtual] |
Process the BaseMechanicalState if it is mapped from the parent level.
Reimplemented from sofa::simulation::MechanicalVisitor.
Definition at line 402 of file MechanicalVisitor.h.
References sofa::core::componentmodel::behavior::BaseMechanicalState::resetForce(), and sofa::simulation::Visitor::RESULT_CONTINUE.
| Visitor::Result sofa::simulation::MechanicalAddMDxVisitor::fwdMass | ( | simulation::Node * | , | |
| core::componentmodel::behavior::BaseMass * | ||||
| ) | [virtual] |
Process the BaseMass.
Reimplemented from sofa::simulation::MechanicalVisitor.
Definition at line 272 of file MechanicalVisitor.cpp.
References sofa::core::componentmodel::behavior::BaseMass::addMDx(), factor, and sofa::simulation::Visitor::RESULT_PRUNE.
| virtual Result sofa::simulation::MechanicalAddMDxVisitor::fwdMechanicalMapping | ( | simulation::Node * | , | |
| core::componentmodel::behavior::BaseMechanicalMapping * | ||||
| ) | [inline, virtual] |
Process the BaseMechanicalMapping.
Reimplemented from sofa::simulation::MechanicalVisitor.
Definition at line 389 of file MechanicalVisitor.h.
References dx, sofa::core::componentmodel::behavior::BaseMechanicalState::VecId::isNull(), sofa::core::componentmodel::behavior::BaseMechanicalMapping::propagateDx(), and sofa::simulation::Visitor::RESULT_CONTINUE.
| Visitor::Result sofa::simulation::MechanicalAddMDxVisitor::fwdMechanicalState | ( | simulation::Node * | , | |
| core::componentmodel::behavior::BaseMechanicalState * | ||||
| ) | [virtual] |
Process the BaseMechanicalState if it is not mapped from the parent level.
Reimplemented from sofa::simulation::MechanicalVisitor.
Definition at line 265 of file MechanicalVisitor.cpp.
References dx, sofa::core::componentmodel::behavior::BaseMechanicalState::VecId::isNull(), res, sofa::simulation::Visitor::RESULT_CONTINUE, sofa::core::componentmodel::behavior::BaseMechanicalState::setDx(), and sofa::core::componentmodel::behavior::BaseMechanicalState::setF().
| virtual bool sofa::simulation::MechanicalAddMDxVisitor::isThreadSafe | ( | ) | const [inline, virtual] |
Specify whether this action can be parallelized.
Reimplemented from sofa::simulation::Visitor.
Definition at line 421 of file MechanicalVisitor.h.
Definition at line 380 of file MechanicalVisitor.h.
Referenced by fwdMechanicalMapping(), and fwdMechanicalState().
1.5.7.1