sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::GPUSpringSet Struct Reference

#include <CudaSpringForceField.h>

Collaboration diagram for sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::GPUSpringSet:

Collaboration graph
[legend]

Public Member Functions

 GPUSpringSet ()
void init (int v0, int nbv, int nbsperv)
void set (int vertex, int spring, int index, float initpos, float ks, float kd)

Data Fields

int vertex0
 index of the first vertex connected to a spring
int nbVertex
 number of vertices to process to compute all springs
int nbSpringPerVertex
 max number of springs connected to a vertex
gpu::cuda::CudaVector< GPUSpring > springs
 springs attached to each points (layout per bloc of NBLOC vertices, with first spring of each vertex, then second spring, etc)
gpu::cuda::CudaVector< Real > dfdx
 only used for StiffSpringForceField

Detailed Description

template<class TCoord, class TDeriv, class TReal>
struct sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::GPUSpringSet

Definition at line 104 of file CudaSpringForceField.h.


Constructor & Destructor Documentation

template<class TCoord , class TDeriv , class TReal >
sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::GPUSpringSet::GPUSpringSet (  )  [inline]

Definition at line 111 of file CudaSpringForceField.h.


Member Function Documentation

template<class TCoord , class TDeriv , class TReal >
void sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::GPUSpringSet::init ( int  v0,
int  nbv,
int  nbsperv 
) [inline]

Definition at line 112 of file CudaSpringForceField.h.

References BSIZE.

template<class TCoord , class TDeriv , class TReal >
void sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::GPUSpringSet::set ( int  vertex,
int  spring,
int  index,
float  initpos,
float  ks,
float  kd 
) [inline]

Definition at line 120 of file CudaSpringForceField.h.

References BSIZE.


Field Documentation

template<class TCoord , class TDeriv , class TReal >
gpu::cuda::CudaVector<Real> sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::GPUSpringSet::dfdx

only used for StiffSpringForceField

Definition at line 110 of file CudaSpringForceField.h.

template<class TCoord , class TDeriv , class TReal >
int sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::GPUSpringSet::nbSpringPerVertex

max number of springs connected to a vertex

Definition at line 108 of file CudaSpringForceField.h.

template<class TCoord , class TDeriv , class TReal >
int sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::GPUSpringSet::nbVertex

number of vertices to process to compute all springs

Definition at line 107 of file CudaSpringForceField.h.

template<class TCoord , class TDeriv , class TReal >
gpu::cuda::CudaVector<GPUSpring> sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::GPUSpringSet::springs

springs attached to each points (layout per bloc of NBLOC vertices, with first spring of each vertex, then second spring, etc)

Definition at line 109 of file CudaSpringForceField.h.

template<class TCoord , class TDeriv , class TReal >
int sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::GPUSpringSet::vertex0

index of the first vertex connected to a spring

Definition at line 106 of file CudaSpringForceField.h.


The documentation for this struct was generated from the following file:

Generated on Sun Nov 23 04:20:21 2008 for Sofa by  doxygen 1.5.7.1