Dear Wolfgang,

I would like to generate a covariance matrix based on these DoFs. After 
that I would like to produce a random vector and associate the DoFs with 
the random vectors, in order to compute the quadrature. 

Best Regards,
Yang

在 2020年4月28日星期二 UTC+8下午10:43:50,Wolfgang Bangerth写道:
>
> On 4/28/20 5:52 AM, Yang Liu wrote: 
> > 
> > I would like to ask is there a way to traverse all DoFs in a FE? 
>
> Well, you can always do 
>    for (unsigned int i=0; i<dof_handler.n_dofs(); ++i) 
>      ...do something... 
> to traverse all degrees of freedom. But I suspect that's not what you 
> want, 
> but that you want to tie them to individual cells, individual components, 
> etc. 
>
> Can you describe what you actually want to do with this traversal? 
>
> Best 
>   W. 
>
>
> -- 
> ------------------------------------------------------------------------ 
> Wolfgang Bangerth          email:                 bang...@colostate.edu 
> <javascript:> 
>                             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/7078de25-a39c-4599-b8b3-63ec903a33b0%40googlegroups.com.

Reply via email to