chrono::fsi::ChSystemFsi Class Reference

## Description

Physical system for fluid-solid interaction problem.

This class is used to represent a fluid-solid interaction problem consist of fluid dynamics and multibody system. Each of the two underlying physics are independent objects owned and instantiated by this class. Additionally, the fsi system owns other objects to handle the interface between the two systems, boundary condition enforcing markers, and data.

#include <ChSystemFsi.h>

Inherits chrono::fsi::ChFsiGeneral.

## Public Member Functions

ChSystemFsi (ChSystem *other_physicalSystem, bool other_haveFluid, ChFluidDynamics::Integrator type=ChFluidDynamics::Integrator::IISPH)
Constructor for FSI system. More...

~ChSystemFsi ()
Destructor for the FSI system.

virtual void DoStepDynamics_FSI ()
Function to integrate the fsi system in time. More...

void SetFluidIntegratorType (ChFluidDynamics::Integrator type)

virtual void DoStepDynamics_ChronoRK2 ()
Function to integrate the multibody system dynamics based on Runge-Kutta 2nd-order integration scheme. More...

virtual void CopyDeviceDataToHalfStep ()
Function to initialize the midpoint device data of the fluid system by copying from the full step.

virtual void FinalizeData ()
Fill out the dependent data based on the independent one. More...

ChFsiDataManagerGetDataManager ()
Get a pointer to the data manager.

void SetFluidSystemLinearSolver (ChFsiLinearSolver::SolverType other_solverType)

SimParamsGetSimParams ()
Get a pointer to the parameters used to set up the simulation.

std::vector< std::shared_ptr< ChBody > > * GetFsiBodiesPtr ()
Get a pointer to the fsi bodies. More...

virtual void Finalize ()
Finzalize data by calling FinalizeData function and finalize fluid and bce and also finalizes the fluid and bce objects if the system have fluid. More...

void AddFsiBody (std::shared_ptr< ChBody > mbody)
Add the Chbody to the FSI system, note that the BCE for this body must be generated too.

std::vector< std::shared_ptr< chrono::fea::ChElementCableANCF > > * GetFsiCablesPtr ()

std::vector< std::shared_ptr< chrono::fea::ChElementShellANCF > > * GetFsiShellsPtr ()

std::vector< std::shared_ptr< chrono::fea::ChNodeFEAxyzD > > * GetFsiNodesPtr ()

void SetCableElementsNodes (std::vector< std::vector< int >> elementsNodes)
Finalize the construction of the fsi system.

void SetShellElementsNodes (std::vector< std::vector< int >> elementsNodes)
Set the vector of shell elements nodes indices.

void SetFsiMesh (std::shared_ptr< chrono::fea::ChMesh > other_fsi_mesh)
Set the ChMesh participating in the FSI system.

std::shared_ptr< chrono::fea::ChMeshGetFsiMesh ()
Returns the ChMesh participating in the FSI system.

## Constructor & Destructor Documentation

 chrono::fsi::ChSystemFsi::ChSystemFsi ( ChSystem * other_physicalSystem, bool other_haveFluid, ChFluidDynamics::Integrator type = ChFluidDynamics::Integrator::IISPH )

Constructor for FSI system.

This class constructor instantiates all the member objects. Wherever relevant, the instantiation is handled by sending a pointer to other objects or data. Therefore, the sub-classes have pointers to the same data.

## Member Function Documentation

 void chrono::fsi::ChSystemFsi::DoStepDynamics_ChronoRK2 ( )
virtual

Function to integrate the multibody system dynamics based on Runge-Kutta 2nd-order integration scheme.

 void chrono::fsi::ChSystemFsi::DoStepDynamics_FSI ( )
virtual

Function to integrate the fsi system in time.

It uses a Runge-Kutta 2nd order algorithm to update both the fluid and multibody system dynamics. The midpoint data of MBS is needed for fluid dynamics update.

The following is used to execute the previous Explicit SPH

A different coupling scheme is used for implicit SPH formulations

 void chrono::fsi::ChSystemFsi::Finalize ( )
virtual

Finzalize data by calling FinalizeData function and finalize fluid and bce and also finalizes the fluid and bce objects if the system have fluid.

 void chrono::fsi::ChSystemFsi::FinalizeData ( )
virtual

Fill out the dependent data based on the independent one.

For instance, it copies the position of the rigid bodies from the multibody dynamics system to arrays in fsi system since they are needed for internal use.

 std::vector >* chrono::fsi::ChSystemFsi::GetFsiBodiesPtr ( )

Get a pointer to the fsi bodies.

fsi bodies are the ones seen by the fluid dynamics system. These ChBodies are stored in a std::vector using their shared pointers.