Hello, I am solving a similar problem. What I do is to sum the contributions from all the processors, and then use Utilities::MPI::Sum() to get the overall force which I then write in a file on a master process,
For the contribution of a single cell, you have to integrate stress X normal X area for each locally owned cell on faces on the boundary. On Wednesday, February 22, 2017 at 5:53:38 PM UTC-5, Hamed Babaei wrote: > > Hello, > > I want to make an output of the resultant force existing on external > surfaces of a cube domain in a parallel code. what I did in the serial code > was that I integrated stress on external faces and as a result, I got one > scalar resultant force for the face to be written in a text file in every > time step. However in parallel, a face may be possessed by several > processors each of which producing a portion of the overall force existing > on the whole face. I was wondering what may be the best approach in > parallel codes to make an output file of one single scalar output which is > obtained by integration over domain. > > Best regards, > Hamed > -- 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. For more options, visit https://groups.google.com/d/optout.