Thanks Timo Heister,

My interest is to move the vertices by some velocity and would therefore 
first ask for the vertex coordinates of each cell using  cell->vertex(i) 
and then displace them by velocity. Is this the best approach? How can i 
get the vertices at once? Cheers

On Sunday, December 4, 2016 at 5:57:23 PM UTC, Timo Heister wrote:
>
> Benard, 
>
> the get_function_values is made to evaluate a finite element solution 
> at quadrature points within a cell. If you are just interested in 
> values at DoFs you can access the vector of coefficients directly: 
> Velocity_solution.block(0)[j] will return the value that corresponds 
> to the j-th DoF shape function. If your FE space is nodal, this will 
> be the function value at that support point. 
>
> On Sun, Dec 4, 2016 at 12:37 PM, BENARD KIPCHUMBA <[email protected] 
> <javascript:>> wrote: 
> > 
> > I want to use fe_function_values to get values for the entire of degrees 
> and 
> > am using 
> > 
> > fe_values.get_function_values (Velocity_solution.block(0),x_value); 
> > 
> > where size of (Velocity_solution.block(0) is supposed to be 
> > dof_handler.n_dofs()    but because x_value is defined only for a 
> particular 
> > cell, I get the error Dimension 0 not equal to 1. 
> > 
> > How do I get function values for the entire degrees of freedom? 
> > 
> > With thanks, 
> > 
> > Benard 
> > 
> > -- 
> > The deal.II project is located at 
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.dealii.org_&d=CwIBaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=cyAHZ9QFB-vto36D97sZUlYu6mcMYRJ7B7bnJKRrhKY&s=6RH5_9bnc-9bDAN-q9HgmchzIXlamTxSYoErARyQalA&e=
>  
> > For mailing list/forum options, see 
> > 
> https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_forum_dealii-3Fhl-3Den&d=CwIBaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=cyAHZ9QFB-vto36D97sZUlYu6mcMYRJ7B7bnJKRrhKY&s=s6d_WIfIWKuXFBgPJVVkbIM-tyuiNjEdJ9Ya5w-6LTs&e=
>  
> > --- 
> > 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] <javascript:>. 
> > For more options, visit 
> https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_optout&d=CwIBaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=cyAHZ9QFB-vto36D97sZUlYu6mcMYRJ7B7bnJKRrhKY&s=PNMvimxd8ons5DaW7ZJtOfbZZlxH1A9te08pWeuM6lw&e=
>  
> . 
>
>
>
> -- 
> Timo Heister 
> http://www.math.clemson.edu/~heister/ 
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to