Forums
Hi everyone,
I am using compute pressure command to extract the normal pressure on x,y,z directions. I managed to use this command by using compute all temp, but the temp result obtained by this command looks like the molecular temperature. finally, the compute pressure command gave a 6 elements vector rather than an array of one scalar and on vector documented on the websites.
does the 6 elements vector I got have the definition on those website of compute pressure?
Thanks
Weijing
Hi Weijing,
Hi Weijing,
look at fix ave/euler. This will give you the granular stress tensor :-)
Christoph
In reply to Hi Weijing, by ckloss
I'm also looking at fix ave
I'm also looking at fix ave/euler. In terms of stresses, the documentation only says it outputs pressure as -1/3 of the stress tensor but it doesn't give the actual stress tensor. Is there a way to get the full stress tensor with xx, yy, zz, xy, yz, xz? I know there's the compute pressure and compute stress/atom functions, but I'm trying to find the stress tensor within specific regions of my simulation instead for the entire domain. So fix ave/euler seems like my best choice if I can somehow get a full tensor out of it.
In reply to I'm also looking at fix ave by estefan31
The fix ave/euler command
The fix ave/euler command computes per cell quantities that can be accessed from the input script as you can see here:
https://github.com/CFDEMproject/LIGGGHTS-PUBLIC/blob/master/src/fix_ave…
Another option is to modify the DumpEulerVTK class to also output the stress components.
In reply to The fix ave/euler command by Daniel Queteschiner
I went with modifying
I went with modifying DumpEulerVTK. But one thing in fix_ave_euler.cpp needs to be corrected. Line 662 says "else if(j < 14) return stress_[i][j-7];" and it should be corrected to "else if(j < 14) return stress_[i][j-8];" or else the indices will be off by 1.
In reply to I went with modifying by estefan31
No, that is correct
No, that is correct. The first entry in the stress array is the pressure followed by the 6 stress tensor components.
In reply to No, that is correct by Daniel Queteschiner
Oh! I mixed it up. The public
Oh! I mixed it up. The public version source code currently says [j-8] and I corrected it to [j-7].
In reply to Oh! I mixed it up. The public by estefan31
You're right
LOL, and I was under the impression that this issue had been fixed since I already reported it a year ago
http://cfdem.com/forums/fix-aveeuler
Obviously, it's still wrong in 3.6.0
https://github.com/CFDEMproject/LIGGGHTS-PUBLIC/blob/3.6.0/src/fix_ave_…
In reply to You're right by Daniel Queteschiner
Thanks for the hint.
Thanks for the hint.
I corrected it in the development version. The fix will be published with the next release.