On 9/15/21 10:47 PM, Toddy Liu wrote:
Thank you very much for your reply and it really helps me. You explained
how to deal with the latter case (V'(u) . grad u, phi_i) and I've got
the point how to solve this. Addtionally. how about the former case
-(V(u), grad phi_i). Specifically, how to construct the vector V(u) and
then multiply with grad phi_i or to say fe_values.shape_grad(i,q_point)?
You perform the integral via quadrature, and so all you have to know is what
V(u)(x_q) = V(u(x_q))
which you evaluate in the same way as you did
sin(u(x_q))
in step-25 with the only exception that now V(u(x_q)) is a vector
(actually, a Tensor<1,dim>) instead of a scalar quantity.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: [email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/d92bb312-b4e0-251d-cce6-cd0e2e08a117%40colostate.edu.