#include <MechanicalVisitor.h>


Public Member Functions | |
| MechanicalAddMBKdxVisitor (VecId res, double mFactor, double bFactor, double kFactor, 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 |
| double | mFactor |
| double | bFactor |
| double | kFactor |
| bool | useV |
| bool | accumulate |
| Accumulate everything back to the DOFs through the mappings. | |
Typically used in implicit integration solved by a Conjugate Gradient algorithm. The current value of the dx vector is used. This action is typically called after a MechanicalPropagateDxAndResetForceVisitor.
Definition at line 576 of file MechanicalVisitor.h.
| sofa::simulation::MechanicalAddMBKdxVisitor::MechanicalAddMBKdxVisitor | ( | VecId | res, | |
| double | mFactor, | |||
| double | bFactor, | |||
| double | kFactor, | |||
| bool | useV = false, |
|||
| bool | accumulate = true | |||
| ) | [inline] |
Definition at line 585 of file MechanicalVisitor.h.
| void sofa::simulation::MechanicalAddMBKdxVisitor::bwdMechanicalMapping | ( | simulation::Node * | , | |
| core::componentmodel::behavior::BaseMechanicalMapping * | ||||
| ) | [virtual] |
Process the BaseMechanicalMapping.
Reimplemented from sofa::simulation::MechanicalVisitor.
Definition at line 444 of file MechanicalVisitor.cpp.
References accumulate, and sofa::core::componentmodel::behavior::BaseMechanicalMapping::accumulateDf().
| Visitor::Result sofa::simulation::MechanicalAddMBKdxVisitor::fwdForceField | ( | simulation::Node * | , | |
| core::componentmodel::behavior::BaseForceField * | ||||
| ) | [virtual] |
Process all the BaseForceField.
Reimplemented from sofa::simulation::MechanicalVisitor.
Definition at line 435 of file MechanicalVisitor.cpp.
References sofa::core::componentmodel::behavior::BaseForceField::addMBKdx(), sofa::core::componentmodel::behavior::BaseForceField::addMBKv(), bFactor, kFactor, mFactor, sofa::simulation::Visitor::RESULT_CONTINUE, and useV.
| Visitor::Result sofa::simulation::MechanicalAddMBKdxVisitor::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 430 of file MechanicalVisitor.cpp.
References sofa::core::componentmodel::behavior::BaseMechanicalState::accumulateDf(), and sofa::simulation::Visitor::RESULT_CONTINUE.
| Visitor::Result sofa::simulation::MechanicalAddMBKdxVisitor::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 424 of file MechanicalVisitor.cpp.
References sofa::core::componentmodel::behavior::BaseMechanicalState::accumulateDf(), res, sofa::simulation::Visitor::RESULT_CONTINUE, and sofa::core::componentmodel::behavior::BaseMechanicalState::setF().
| virtual bool sofa::simulation::MechanicalAddMBKdxVisitor::isThreadSafe | ( | ) | const [inline, virtual] |
Specify whether this action can be parallelized.
Reimplemented from sofa::simulation::Visitor.
Definition at line 594 of file MechanicalVisitor.h.
Accumulate everything back to the DOFs through the mappings.
Definition at line 584 of file MechanicalVisitor.h.
Referenced by bwdMechanicalMapping().
1.5.7.1