Hi all,
I'm trying to write the total torque to an output file. For doing this I've read:
(1) Torque on axle exerted by particles (Forum-Post at 27.07.2011)
(2) Compute pair/gran/local (Forum-Post at 16.12.2010)
(3) fix print command (in the LIGGGHTS-doc)
(4) fix mesh/gran/stressanalysis command (in the LIGGGHTS-doc)
(5) fix_mesh_gran_stressanalysis.cpp (sourcecode)
But I do still not know how to write the total torque out. The question in (1) describes exactly what I will do.
- How can I find out the name of the global vector which is the output from the fix mesh/gran/stressanalysis?
- What's the syntax in fix print to call the content of this global vector?
- I'm not experienced in C++, but how can I find out the name of the variables by analysing the sourcecode?
Cheers
Claudio
ckloss | Mon, 12/19/2011 - 16:51
>>- How can I find out the
>>- How can I find out the name of the global vector which is the output from the fix mesh/gran/stressanalysis?
f_(ID)[1], f_(ID)[2], f_(ID)[3], where ID is the fix ID
>>- What's the syntax in fix print to call the content of this global vector?
you need to wrap the output of the fix mesh/gran/stressanalysis into 3 variables that you then use for fix print
>>- I'm not experienced in C++, but how can I find out the name of the variables by analysing the sourcecode?
the name of the variables
Cheers, Christoph
Claudio Wolfer | Tue, 12/20/2011 - 14:48
Hi Christoph Thanks for help.
Hi Christoph
Thanks for help. Know I understand: f_(ID)[?] is the fix reference! If a fix has an output like a torque vector I can refer to it using this syntax. I was looking for this in the source code and obviously I couldn't find it. Just the return force_total[n] and return torque_total[n-3] which can not be used with fix print because they does not exist outside the function.
Christmas greetings from snowy switzerland.
Claudio