Setting new variable

Submitted by Masayuki on Tue, 02/07/2012 - 17:59

Hi,

I would like to make new two dimensional array for calculation of maximum contact area between particle and wall in each contact detection. I intend to modify form "contact_area" to "contact_area[i][npartners[i]-1] in "fix_wall_gran.cpp". How can I set two dimensional array?

Thanks,

Masa

ckloss's picture

ckloss | Thu, 02/09/2012 - 17:38

sorry, I didn't quite get the question. what do you mean by "How can I set two dimensional array?"
Anyway, by increasing "dnum" in both the pair and wall style you can allocate an extra double in the contact history, which could be the area you want to calculate/store

Cheers, Christoph