mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
add some comments [ci skip]
This commit is contained in:
@ -190,11 +190,11 @@ protected:
|
|||||||
const turbulenceModel& turbulence_;
|
const turbulenceModel& turbulence_;
|
||||||
|
|
||||||
struct particleProperty {
|
struct particleProperty {
|
||||||
void** property;
|
void** property; // pointer to per-particle data; memory deallocation by cfdemCloud
|
||||||
const std::type_info* ti;
|
const std::type_info* ti; // type of particle data (int**, double**)
|
||||||
int size;
|
int size; // size of single particle data; memory allocation by cfdemCloud if size > 0
|
||||||
double initVal;
|
double initVal; // initial property value
|
||||||
bool reset;
|
bool reset; // if true, data is reset to initial value every coupling step
|
||||||
template<typename T>
|
template<typename T>
|
||||||
T& ref() {
|
T& ref() {
|
||||||
if (*ti == typeid(T)) return *reinterpret_cast<T*>(&property);
|
if (*ti == typeid(T)) return *reinterpret_cast<T*>(&property);
|
||||||
@ -202,7 +202,7 @@ protected:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
HashTable<particleProperty> particlePropertyTable;
|
HashTable<particleProperty> particlePropertyTable; // table of registered per-particle properties
|
||||||
|
|
||||||
autoPtr<dataExchangeModel> dataExchangeModel_;
|
autoPtr<dataExchangeModel> dataExchangeModel_;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user