IOModel including particle temperature

Submitted by kalei on Tue, 05/24/2016 - 10:44

I want to define an IO model including the particle temperature based on basicIO. To my understanding I need to extend dupDEMdata in basicIO.C in order to stream the particle temperature to a file as it is done for positions, velocities and radii:
streamDataToPath(lagPath_, particleCloud_.positions(),nPProc_,"positions","vector","Cloud","0");
streamDataToPath(lagPath_, particleCloud_.velocities(),nPProc_,"v","vector","vectorField","");
streamDataToPath(lagPath_, particleCloud_.radii(),nPProc_,"r","scalar","scalarField","");
Yet I got a problem in addressing the particle temperature as it is no member of particleCloud. Can anybody help me how I can address the particle temperature from a self defined IO model?