Use the data of fix mesh/gran/stressanalysis in the script file

Submitted by J_Wang on Sun, 10/09/2011 - 23:57

Hi everyone,

As we know the command fix mesh/gran/stressanalysis command can analysis the stress on a wall. My question is how to use the pressure analysed by this command to control a loop in a script file. If I output the pressure on the wall first to a dump file, can I use any command to read the pressure in the dump file and then use it in the loop? Anybody can help me?

Many thanks.

J. Wang

ckloss's picture

ckloss | Mon, 10/10/2011 - 08:40

see the doc for the variable command for details on how to use fix output for a loop, e.g. variable fmeshx equal f_mymesh[1]

Christoph

J_Wang | Tue, 10/11/2011 - 21:55

Hi, Christoph,

Thank you for your help. When I use the variable command I found the output from a fix mesh/gran/analysis command is different with the output results from a dump file of the wall. So is the variable command is using total force on the wall rather than stress?

Thank you

J.Wang