Public Member Functions |
Static Public Member Functions |
Protected Attributes |
List of all members
chrono::fsi::ChFsiBase Class Reference
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< SimParams > | paramsH |
simulation parameters (host) | |
std::shared_ptr< ChCounters > | numObjectsH |
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
-
params simulation parameters numObjects problem counters
Member Function Documentation
◆ computeGridSize()
|
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
-
n total number of elements blockSize block size (threads per block) numBlocks number of blocks [output] numThreads number 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