Description

FEA mesh state on device.

Data are managed in an SOA, with each array containing corresponding data from all meshes (1D or 2D) in the system.

Public Member Functions

void CopyFromH (const FsiMeshStateH &meshStateH)
 Function to transfer CPU -> GPU. More...
 
void CopyDirectionsFromH (const FsiMeshStateH &meshStateH)
 Function to transfer node directions CPU -> GPU. More...
 
FsiMeshStateDoperator= (const FsiMeshStateD &other)
 Assignment operator. Only copies states.
 
void Resize (size_t s, bool use_node_directions)
 Resize the data vectors to the specified size. More...
 

Public Attributes

thrust::device_vector< Real3pos
 mesh node positions
 
thrust::device_vector< Real3vel
 mesh node velocities
 
thrust::device_vector< Real3acc
 mesh node accelerations
 
thrust::device_vector< Real3dir
 node directions (unit vectors)
 
bool has_node_directions
 

Member Function Documentation

◆ CopyDirectionsFromH()

void chrono::fsi::sph::FsiMeshStateD::CopyDirectionsFromH ( const FsiMeshStateH meshStateH)

Function to transfer node directions CPU -> GPU.

This function copies only node directions dir. It does not copy pos, vel, and acc.

◆ CopyFromH()

void chrono::fsi::sph::FsiMeshStateD::CopyFromH ( const FsiMeshStateH meshStateH)

Function to transfer CPU -> GPU.

This function copies only pos, vel, and acc. It does not copy node directions dir.

◆ Resize()

void chrono::fsi::sph::FsiMeshStateD::Resize ( size_t  s,
bool  use_node_directions 
)

Resize the data vectors to the specified size.

If indicated, also resize the vector of node directions.


The documentation for this struct was generated from the following file:
  • /builds/uwsbel/chrono/src/chrono_fsi/sph/physics/FsiDataManager.cuh