IBAMR
An adaptive and distributed-memory parallel implementation of the immersed boundary (IB) method
Public Member Functions | List of all members
IBAMR::IBKirchhoffRodForceGen Class Reference

Class IBKirchhoffRodForceGen computes the forces and torques generated by a collection of linear elements based on Kirchhoff rod theory. More...

#include </home/runner/work/IBAMR/IBAMR/include/ibamr/IBKirchhoffRodForceGen.h>

Inheritance diagram for IBAMR::IBKirchhoffRodForceGen:
Inheritance graph
[legend]

Public Member Functions

 IBKirchhoffRodForceGen (SAMRAI::tbox::Pointer< SAMRAI::tbox::Database > input_db=NULL)
 Default constructor.
 
virtual ~IBKirchhoffRodForceGen ()
 Destructor.
 
void setUniformBodyForce (IBTK::Vector F, int structure_id, int level_number)
 Set a uniform body force that is applied on each point in the structure with the given structure_id.
 
void initializeLevelData (SAMRAI::tbox::Pointer< SAMRAI::hier::PatchHierarchy< NDIM > > hierarchy, int level_number, double init_data_time, bool initial_time, IBTK::LDataManager *l_data_manager)
 Setup the data needed to compute the beam forces on the specified level of the patch hierarchy.
 
void computeLagrangianForceAndTorque (SAMRAI::tbox::Pointer< IBTK::LData > F_data, SAMRAI::tbox::Pointer< IBTK::LData > N_data, SAMRAI::tbox::Pointer< IBTK::LData > X_data, SAMRAI::tbox::Pointer< IBTK::LData > D_data, SAMRAI::tbox::Pointer< SAMRAI::hier::PatchHierarchy< NDIM > > hierarchy, int level_number, double data_time, IBTK::LDataManager *l_data_manager)
 Compute the curvilinear force and torque generated by the given configuration of the curvilinear mesh. More...
 

Detailed Description

Class IBKirchhoffRodForceGen computes the forces and torques generated by a collection of linear elements based on Kirchhoff rod theory.

Note
Class IBKirchhoffRodForceGen DOES NOT correct for periodic displacements of IB points.

Member Function Documentation

◆ computeLagrangianForceAndTorque()

void IBAMR::IBKirchhoffRodForceGen::computeLagrangianForceAndTorque ( SAMRAI::tbox::Pointer< IBTK::LData F_data,
SAMRAI::tbox::Pointer< IBTK::LData N_data,
SAMRAI::tbox::Pointer< IBTK::LData X_data,
SAMRAI::tbox::Pointer< IBTK::LData D_data,
SAMRAI::tbox::Pointer< SAMRAI::hier::PatchHierarchy< NDIM > >  hierarchy,
int  level_number,
double  data_time,
IBTK::LDataManager l_data_manager 
)

Compute the curvilinear force and torque generated by the given configuration of the curvilinear mesh.

Note
Nodal forces and moments computed by this method are added to the force and moment vectors.

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