iMSTK
Interactive Medical Simulation Toolkit
|
Force model for corotational based finite elements formulation. More...
#include <imstkCorotationalFemForceModel.h>
Public Member Functions | |
CorotationalFemForceModel (std::shared_ptr< vega::VolumetricMesh > mesh, const int warp=1) | |
Constructor using mesh . More... | |
void | getInternalForce (const Vectord &u, Vectord &internalForce) override |
Compute internal force internalForce at state u . | |
void | getTangentStiffnessMatrix (const Vectord &u, SparseMatrixd &tangentStiffnessMatrix) override |
Compute stiffness matrix tangentStiffnessMatrix at state . | |
void | getTangentStiffnessMatrixTopology (vega::SparseMatrix **tangentStiffnessMatrix) override |
Build the sparsity pattern for stiffness matrix. | |
void | getForceAndMatrix (const Vectord &u, Vectord &internalForce, SparseMatrixd &tangentStiffnessMatrix) override |
Compute internal force internalForce and stiffness matrix tangentStiffnessMatrix at state . | |
void | setWarp (const int warp) |
Turn on/off warp. | |
void | setTangentStiffness (std::shared_ptr< vega::SparseMatrix > K) override |
Specify tangent stiffness matrix. | |
Protected Attributes | |
std::shared_ptr< vega::CorotationalLinearFEM > | m_corotationalLinearFem |
std::shared_ptr< vega::SparseMatrix > | m_vegaTangentStiffnessMatrix |
int | m_warp |
Additional Inherited Members | |
![]() | |
static void | updateValuesFromMatrix (std::shared_ptr< vega::SparseMatrix > vegaMatrix, double *values) |
Update the values of the Eigen sparse matrix given the linearized array of data from the Vega matrix. More... | |
Force model for corotational based finite elements formulation.
Definition at line 25 of file imstkCorotationalFemForceModel.h.
imstk::CorotationalFemForceModel::CorotationalFemForceModel | ( | std::shared_ptr< vega::VolumetricMesh > | mesh, |
const int | warp = 1 |
||
) |
Constructor using mesh
.
warp | if use warp |
Definition at line 20 of file imstkCorotationalFemForceModel.cpp.