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/ 
> <http://www.dealii.org/>
> For mailing list/forum options, see 
> https://groups.google.com/d/forum/dealii?hl=en 
> <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] 
> <mailto:[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/190764E0-84A7-4A67-8140-67D87E62FC39%40gmail.com.

Reply via email to