Thanks, Jean-Paul Pelteret.
The get_cell() function is introduced in deal.II-8.5.0, but I'm using 
deal.II-8.2.1 so I will output the component of strain tensor as the 
tutorial step-33 does. And computing the stress in paraview. Thank you!
Best 
Chen
在2022年4月29日星期五 UTC+8 03:15:01<Jean-Paul Pelteret> 写道:

> Dear Chen,
>
> Would it be correct to say that you’ve implemented a class that derives 
> from DataPostprocessor[Scalar,Vector,Tensor] and that you’re wanting to 
> access the cell from your overriding implementation 
> of evaluate_[scalar,vector]_field()? If so, then take a look at 
> the DataPostprocessorInputs classes that are passed in as the first 
> argument to this function. They implement a get_cell() 
> <https://dealii.org/developer/doxygen/deal.II/structDataPostprocessorInputs_1_1CommonInputs.html#a2bc88342acd8e41314c8c1328bd98a67>
>  function 
> that can be called from the point that you’re wanting to compute the stress.
>
> I hope that this helps.
>
> Best,
> Jean-Paul
>
>
> On 28. Apr 2022, at 16:41, [email protected] <[email protected]> wrote:
>
> Hi, everyone
>
> I want to use DataPostprocessor to compute the stress of solid, but my 
> solid is composed of more than one material, so I can distinguish each part 
> by the cell->material_id(), but how can I use Class DataPostprocessor to 
> output stress of different material? It seems that the 
> active_cell_iterator can't be accessed by the Class DataPostprocessor
>
> Best
> Chen 
>
> -- 
> 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 [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dealii/3ad02db2-2dfa-4ec3-a084-32e43e558399n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/dealii/3ad02db2-2dfa-4ec3-a084-32e43e558399n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/2a46d63f-7bd8-4d92-8f61-3f4a05ec02d8n%40googlegroups.com.

Reply via email to