On 5/19/22 00:47, BBah wrote:

i am just trying to put out the norm of the stresses like in step 18. Is there a way to save my stress tensor for each cell and put it out ? In step 18 there is a loop through each cell and the locally owned are used to put out the stresses. Is there a way to do the same with the workstream object ? Been searching for a while for a solution but could not find one. Putting out the strains is easy since the gradient of the displacements are saved but how to do the same with the stresses ?

BBah: What have you tried already? When you loop over all cells with WorkStream, the WorkStream::run() function calls your 'worker' function for every cell. This is the place where you would create output.

Alternatively, if all you want is to generate some output, just do it with the same loop as done in step-18. WorkStream is meant for cases where something is expensive and you want to do it in parallel, but outputting a couple of numbers for each cell is not expensive.

Best
 WB

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 bange...@colostate.edu
                           www: http://www.math.colostate.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/14d7a7d7-c088-eeb2-86ab-ed6231a7da66%40colostate.edu.

Reply via email to