Method for output of stress tensor components
My goal is to export tau to a CSV or VTK so that I can know the stress tensor components that describe the stresses imposed by the fluid on boundary particles. I see that tau_xx, tau_xy, tau_xz, tau_yy, tau_yz and tau_zz are used in JSphGpu_ker.cu and JSphCpu.cpp, but I'm not sure what the appropriate method is to yield a CSV or VTK output of those components. Is there a way to accomplish this using the existing DualSPHysics framework? Does this require modifying the source code? Any help would be most appreciated!
Comments
You should mimic funtions as the ones that appear in "ToVTK" project.
Regards