iMSTK
Interactive Medical Simulation Toolkit
Public Member Functions | Protected Attributes | List of all members
imstk::LinearFemForceModel Class Reference

Force model for linear finite element formulation. More...

#include <imstkLinearFemForceModel.h>

Inheritance diagram for imstk::LinearFemForceModel:
Inheritance graph
[legend]
Collaboration diagram for imstk::LinearFemForceModel:
Collaboration graph
[legend]

Public Member Functions

 LinearFemForceModel (std::shared_ptr< vega::VolumetricMesh > mesh, const bool withGravity=true, const double gravity=-9.81)
 
void getInternalForce (const Vectord &u, Vectord &internalForce) override
 Compute the internal force.
 
void getTangentStiffnessMatrix (const Vectord &u, SparseMatrixd &tangentStiffnessMatrix) override
 Get the tangent stiffness matrix. More...
 
void getTangentStiffnessMatrixTopology (vega::SparseMatrix **tangentStiffnessMatrix) override
 Get the tangent stiffness matrix topology.
 
void setTangentStiffness (std::shared_ptr< vega::SparseMatrix > K) override
 Set the 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::SparseMatrix > m_stiffnessMatrix
 
std::shared_ptr< vega::StVKInternalForces > m_stVKInternalForces
 
vega::SparseMatrix * m_stiffnessMatrixRawPtr
 

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

Force model for linear finite element formulation.

Definition at line 24 of file imstkLinearFemForceModel.h.

Member Function Documentation

◆ getTangentStiffnessMatrix()

void imstk::LinearFemForceModel::getTangentStiffnessMatrix ( const Vectord &  u,
SparseMatrixd &  tangentStiffnessMatrix 
)
inlineoverridevirtual

Get the tangent stiffness matrix.

Todo:
Clear warning C4100

Implements imstk::InternalForceModel.

Definition at line 48 of file imstkLinearFemForceModel.h.


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