22 #include "imstkReducedFeDeformableObject.h" 23 #include "imstkReducedStVKBodyModel.h" 24 #include "imstkLogger.h" 31 CHECK(m_defModel !=
nullptr) <<
"deformation model pointer not valid DeformableObject::getContactForce()";
33 return m_defModel->getContactForce();
47 LOG(FATAL) <<
"Dynamics pointer cast failure in DeformableObject::initialize()";
55 return m_defModel->getCurrentState()->getQ();
61 return m_defModel->getPreviousState()->getQ();
67 return m_defModel->getCurrentState()->getQDot();
73 return m_defModel->getPreviousState()->getQDot();
79 return m_defModel->getCurrentState()->getQDotDot();
85 return m_defModel->getPreviousState()->getQDotDot();
Vectord & getContactForce()
Set/Get dynamical model.
const Vectord & getAccelerations() const
Get the vector of current accelerations.
const Vectord & getVelocities() const
Get the vector of current velocities.
const Vectord & getPrevAccelerations() const
Get the vector of accelerations from previous time step.
bool initialize() override
Initialize the scene object.
std::shared_ptr< AbstractDynamicalModel > m_dynamicalModel
Dynamical model.
const Vectord & getPrevVelocities() const
Get the vector of velocities from previous time step.
const Vectord & getPrevDisplacements() const
Get the vector of displacements from previous time step.
bool initialize() override
Initialize the deformable object.
const Vectord & getDisplacements() const
Get the vector of current displacements.