chrono::fsi::ChFsiInterface Class Reference

Description

Base class for processing the interface between chrono and fsi modules.

Inherits chrono::fsi::ChFsiGeneral.

Public Member Functions

 ChFsiInterface (FsiBodiesDataH *other_fsiBodiesH, chrono::ChSystem *other_mphysicalSystem, std::vector< std::shared_ptr< chrono::ChBody >> *other_fsiBodeisPtr, thrust::device_vector< Real3 > *other_rigid_FSI_ForcesD, thrust::device_vector< Real3 > *other_rigid_FSI_TorquesD)
 Constructs an interface for fsi simulation. More...
 
 ~ChFsiInterface ()
 Destructor of the FSI interface.
 
virtual void Add_Rigid_ForceTorques_To_ChSystem ()
 Reads the surface-integrated pressure and viscous forces form the fluid dynamics system, and add these forces as external forces to the ChSystem bodies. More...
 
virtual void Copy_External_To_ChSystem ()
 Uses an external configuration to set the generalized coordinates of the ChSystem.
 
virtual void Copy_ChSystem_to_External ()
 Uses the generalized coordinates of the ChSystem to set the configuration state in the FSI system.
 
virtual void Copy_fsiBodies_ChSystem_to_FluidSystem (FsiBodiesDataD *fsiBodiesD)
 Copies the generalized coordinates of the rigid bodies at the position, velocity, and acceleration level to the fluid dynamics system. More...
 
virtual void ResizeChronoBodiesData ()
 Resizes the data structure associated with the chrono system based on the size of the chrono system.
 

Constructor & Destructor Documentation

chrono::fsi::ChFsiInterface::ChFsiInterface ( FsiBodiesDataH other_fsiBodiesH,
chrono::ChSystem other_mphysicalSystem,
std::vector< std::shared_ptr< chrono::ChBody >> *  other_fsiBodeisPtr,
thrust::device_vector< Real3 > *  other_rigid_FSI_ForcesD,
thrust::device_vector< Real3 > *  other_rigid_FSI_TorquesD 
)

Constructs an interface for fsi simulation.

Parameters
other_fsiBodiesHStates of rigid bodies in fsi simulation
other_mphysicalSystemA pointer to the ChSystem handled by the fsi system
other_fsiBodeisPtrPointer to the vector of the
other_rigid_FSI_ForcesDChBody shared pointers handle by the FSI system. A pointer to the surface-integrated forces from the fluid dynamics system to rigid bodies
other_rigid_FSI_TorquesDA pointer to the surface-integrated torques from the fluid dynamics system to rigid bodies

Member Function Documentation

virtual void chrono::fsi::ChFsiInterface::Add_Rigid_ForceTorques_To_ChSystem ( )
virtual

Reads the surface-integrated pressure and viscous forces form the fluid dynamics system, and add these forces as external forces to the ChSystem bodies.

virtual void chrono::fsi::ChFsiInterface::Copy_fsiBodies_ChSystem_to_FluidSystem ( FsiBodiesDataD fsiBodiesD)
virtual

Copies the generalized coordinates of the rigid bodies at the position, velocity, and acceleration level to the fluid dynamics system.