iMSTK
Interactive Medical Simulation Toolkit
Public Member Functions | Protected Attributes | List of all members
imstk::StvkForceModel Class Reference
Inheritance diagram for imstk::StvkForceModel:
Inheritance graph
[legend]
Collaboration diagram for imstk::StvkForceModel:
Collaboration graph
[legend]

Public Member Functions

 StvkForceModel (std::shared_ptr< vega::VolumetricMesh > mesh, const bool withGravity=true, const double gravity=10.0)
 
void getInternalForce (const Vectord &u, Vectord &internalForce) override
 Get the internal force.
 
void getTangentStiffnessMatrixTopology (vega::SparseMatrix **tangentStiffnessMatrix) override
 Get the tangent stiffness matrix topology.
 
void getTangentStiffnessMatrix (const Vectord &u, SparseMatrixd &tangentStiffnessMatrix) override
 Set the tangent stiffness matrix.
 
void setTangentStiffness (std::shared_ptr< vega::SparseMatrix > K) override
 Speficy tangent stiffness matrix.
 
- Public Member Functions inherited from imstk::InternalForceModel
virtual void getForceAndMatrix (const Vectord &u, Vectord &internalForce, SparseMatrixd &tangentStiffnessMatrix)
 Compute both internal force internalForce and stiffness matrix tangentStiffnessMatrix at state . More...
 

Protected Attributes

std::shared_ptr< vega::StVKInternalForces > m_stVKInternalForces
 
std::shared_ptr< vega::SparseMatrix > m_vegaTangentStiffnessMatrix
 
std::shared_ptr< vega::StVKStiffnessMatrix > m_vegaStVKStiffnessMatrix
 
bool ownStiffnessMatrix
 

Additional Inherited Members

- Static Public Member Functions inherited from imstk::InternalForceModel
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...
 

Detailed Description

Definition at line 26 of file imstkStVKForceModel.h.


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