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

Force model for corotational based finite elements formulation. More...

#include <imstkCorotationalFemForceModel.h>

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

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 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 corotational based finite elements formulation.

Definition at line 25 of file imstkCorotationalFemForceModel.h.

Constructor & Destructor Documentation

◆ CorotationalFemForceModel()

imstk::CorotationalFemForceModel::CorotationalFemForceModel ( std::shared_ptr< vega::VolumetricMesh >  mesh,
const int  warp = 1 
)

Constructor using mesh.

Parameters
warpif use warp

Definition at line 20 of file imstkCorotationalFemForceModel.cpp.


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