Forums
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
see the doc for the variable
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
In reply to by anonymous_stub (not verified)
Is it force or pressure
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
In reply to by anonymous_stub (not verified)
fix mesh/gran/stressanalysis
fix mesh/gran/stressanalysis outputs the total force, as written in the manual
Christoph