![]() |
TAPs 0.7.7.3
|
00001 /****************************************************************************** 00002 TAPsCUDA_VertexListPLHMModelElasticRod.cu 00003 ******************************************************************************/ 00008 /****************************************************************************** 00009 SUKITTI PUNAK (09/18/2009) 00010 UPDATE (09/24/2009) 00011 ******************************************************************************/ 00012 #ifndef TAPs_CUDA_VERTEX_LIST_PLHM_MODEL_ELASTIC_ROD_HPP 00013 #define TAPs_CUDA_VERTEX_LIST_PLHM_MODEL_ELASTIC_ROD_HPP 00014 00015 #include "TAPsCUDA_DataPool.cu" 00016 00017 BEGIN_NAMESPACE_TAPs__CUDA 00018 00019 #define ER_TIMING_ADV_SIM_PLHM 0 00020 00021 //============================================================================= 00022 // CUDA Initialization and Clear Functions 00023 //----------------------------------------------------------------------------- 00025 bool InitailizeDataForPLHMElasticRodModel ( 00026 unsigned int & cudaID, 00027 unsigned int numOfNodes, 00028 float * (&posList), 00029 float * (&prevPosList), 00030 float * (&oriList), 00031 float * (&prevOriList), 00032 float * (&intForceList), 00033 float * (&extForceList) 00034 ); 00035 00038 void ClearDataForPLHMElasticRodModel ( unsigned int & cudaID ); 00039 //----------------------------------------------------------------------------- 00040 // CUDA Initialization and Clear Functions 00041 //============================================================================= 00042 00043 00044 //============================================================================= 00045 // CUDA Wrapper Functions 00046 //----------------------------------------------------------------------------- 00047 void Global__PLHMModelElasticRod_AdvSim ( 00048 unsigned int cudaID, 00049 unsigned int numOfNodes, 00050 unsigned int numOfThreads, 00051 float currentTime, 00052 float timeStep, 00053 int numOfSubSteps, 00054 float radius, 00055 float length, 00056 float length_ori, 00057 float mass, 00058 float material_density, 00059 //float Kt, //!< kinetic translational constant 00060 //float Kr_x, //!< kinetic rotational constant -- x 00061 //float Kr_y, //!< kinetic rotational constant -- y 00062 //float Kr_z, //!< kinetic rotational constant -- z 00063 //float Dt, //!< translational constant 00064 //float Dr_x, //!< rotational dissipation constant -- x 00065 //float Dr_y, //!< rotational dissipation constant -- y 00066 //float Dr_z, //!< rotational dissipation constant -- z 00067 float Kconstraint_3rdDirAlignTangent, 00068 float Kvdamping, 00069 float Ps, 00070 float Pb_x, 00071 float Pb_y, 00072 float Pb_z, 00073 float * (&host_pos_data), 00074 float * (&host_prev_pos_data), 00075 float * (&host_ori_data), 00076 float * (&host_prev_ori_data), 00077 float * (&host_int_force_data), 00078 float * (&host_ext_force_data) 00079 ); 00080 //----------------------------------------------------------------------------- 00081 // CUDA Wrapper Functions 00082 //============================================================================= 00083 END_NAMESPACE_TAPs__CUDA 00084 //----------------------------------------------------------------------------- 00085 #include "TAPsCUDA_VertexListPLHMModelElasticRod_Def.cu" 00086 00087 #endif 00088 //34567890123456789012345678901234567890123456789012345678901234567890123456789 00089 //--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----