Description

Base class for various FSI classes.

Provides access to the FSI simulation parameters and counters.

#include <ChFsiBase.h>

Inheritance diagram for chrono::fsi::ChFsiBase:

Public Member Functions

 ChFsiBase (std::shared_ptr< SimParams > params, std::shared_ptr< ChCounters > numObjects)
 Constructor for the ChFsiBase class. More...
 
virtual ~ChFsiBase ()
 Destructor of the ChFsiBase class.
 

Static Public Member Functions

static void computeGridSize (uint n, uint blockSize, uint &numBlocks, uint &numThreads)
 Compute number of blocks and threads for calculation on GPU. More...
 

Protected Attributes

std::shared_ptr< SimParamsparamsH
 simulation parameters (host)
 
std::shared_ptr< ChCountersnumObjectsH
 problem counters (host)
 

Constructor & Destructor Documentation

◆ ChFsiBase()

chrono::fsi::ChFsiBase::ChFsiBase ( std::shared_ptr< SimParams params,
std::shared_ptr< ChCounters numObjects 
)

Constructor for the ChFsiBase class.

Parameters
paramssimulation parameters
numObjectsproblem counters

Member Function Documentation

◆ computeGridSize()

void chrono::fsi::ChFsiBase::computeGridSize ( uint  n,
uint  blockSize,
uint numBlocks,
uint numThreads 
)
static

Compute number of blocks and threads for calculation on GPU.

This function calculates the number of blocks and threads for a given number of elements based on the blockSize.

Parameters
ntotal number of elements
blockSizeblock size (threads per block)
numBlocksnumber of blocks [output]
numThreadsnumber of threads [output]

The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono_fsi/physics/ChFsiBase.h
  • /builds/uwsbel/chrono/src/chrono_fsi/physics/ChFsiBase.cpp