sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > > Class Template Reference

#include <CudaSpringForceField.h>

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

Collaboration graph
[legend]

Data Structures

struct  GPUSpring
struct  GPUSpring2
struct  GPUSpringSet

Public Types

typedef
gpu::cuda::CudaVectorTypes
< TCoord, TDeriv, TReal > 
DataTypes
typedef SpringForceField
< DataTypes > 
Main
typedef Main::Inherit Inherit
typedef Main::Spring Spring
typedef
SpringForceFieldInternalData
< DataTypes > 
Data
typedef DataTypes::VecCoord VecCoord
typedef DataTypes::VecDeriv VecDeriv
typedef DataTypes::Coord Coord
typedef DataTypes::Deriv Deriv
typedef DataTypes::Real Real
typedef
gpu::cuda::CudaKernelsSpringForceField
< DataTypes > 
Kernels

Static Public Member Functions

static void init (Main *m, bool stiff)
static void addForce (Main *m, bool stiff, VecDeriv &f1, VecDeriv &f2, const VecCoord &x1, const VecCoord &x2, const VecDeriv &v1, const VecDeriv &v2)
static void addDForce (Main *m, bool stiff, VecDeriv &df1, VecDeriv &df2, const VecDeriv &dx1, const VecDeriv &dx2, double kFactor, double bFactor)

Data Fields

GPUSpringSet springs1
 springs from model1 to model2
GPUSpringSet springs2
 springs from model2 to model1 (only used if model1 != model2)

Detailed Description

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

Definition at line 57 of file CudaSpringForceField.h.


Member Typedef Documentation

template<class TCoord , class TDeriv , class TReal >
typedef DataTypes::Coord sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::Coord

Definition at line 67 of file CudaSpringForceField.h.

template<class TCoord , class TDeriv , class TReal >
typedef SpringForceFieldInternalData<DataTypes> sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::Data

Definition at line 64 of file CudaSpringForceField.h.

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

Definition at line 60 of file CudaSpringForceField.h.

template<class TCoord , class TDeriv , class TReal >
typedef DataTypes::Deriv sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::Deriv

Definition at line 68 of file CudaSpringForceField.h.

template<class TCoord , class TDeriv , class TReal >
typedef Main::Inherit sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::Inherit

Definition at line 62 of file CudaSpringForceField.h.

template<class TCoord , class TDeriv , class TReal >
typedef gpu::cuda::CudaKernelsSpringForceField<DataTypes> sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::Kernels

Definition at line 71 of file CudaSpringForceField.h.

template<class TCoord , class TDeriv , class TReal >
typedef SpringForceField<DataTypes> sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::Main

Definition at line 61 of file CudaSpringForceField.h.

template<class TCoord , class TDeriv , class TReal >
typedef DataTypes::Real sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::Real

Definition at line 69 of file CudaSpringForceField.h.

template<class TCoord , class TDeriv , class TReal >
typedef Main::Spring sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::Spring

Definition at line 63 of file CudaSpringForceField.h.

template<class TCoord , class TDeriv , class TReal >
typedef DataTypes::VecCoord sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::VecCoord

Definition at line 65 of file CudaSpringForceField.h.

template<class TCoord , class TDeriv , class TReal >
typedef DataTypes::VecDeriv sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::VecDeriv

Definition at line 66 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 > >::addDForce ( Main *  m,
bool  stiff,
VecDeriv &  df1,
VecDeriv &  df2,
const VecDeriv &  dx1,
const VecDeriv &  dx2,
double  kFactor,
double  bFactor 
) [inline, static]

template<class TCoord , class TDeriv , class TReal >
void sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::addForce ( Main *  m,
bool  stiff,
VecDeriv &  f1,
VecDeriv &  f2,
const VecCoord &  x1,
const VecCoord &  x2,
const VecDeriv &  v1,
const VecDeriv &  v2 
) [inline, static]

template<class TCoord , class TDeriv , class TReal >
void sofa::component::forcefield::SpringForceFieldInternalData< gpu::cuda::CudaVectorTypes< TCoord, TDeriv, TReal > >::init ( Main *  m,
bool  stiff 
) [inline, static]

Definition at line 114 of file CudaSpringForceField.inl.


Field Documentation

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

springs from model1 to model2

Definition at line 134 of file CudaSpringForceField.h.

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

springs from model2 to model1 (only used if model1 != model2)

Definition at line 135 of file CudaSpringForceField.h.


The documentation for this class was generated from the following files:

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