On 1/31/22 11:41, Ali Seddiq wrote:

Thanks for a quick reply, and sorry for ambiguity. To be more precise (trying to be) I should say the lines I modified with the aim of creating a so-called "view" do not do that for my intended variable. My question mainly was that if using the [ ] operator (that I added) does the job of identifying the desired field on the faces? Is the usage correct?

Yes. The call in your example code considers the first vector component of the i'th shape function at quadrature point q_point.


I am also a bit confused as fe.system_to_component_index <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dealii.org%2Fcurrent%2Fdoxygen%2Fdeal.II%2FclassFiniteElement.html%23a86644fe67824373cd51e9ff7fca94f8c&data=04%7C01%7CWolfgang.Bangerth%40colostate.edu%7C66a9d6d095e7444d971c08d9e4e94b94%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637792512914352482%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=%2BiFE%2FIimkawMXkp54Z7Kci%2BA7AYn%2B6EJg%2BFeTE5LVYQ%3D&reserved=0>(i) seems to do the same but not for the faces I guess. So not sure which approach should be taken.

system_to_component index is a property of the finite element, not of the FEValues or FEFaceValues class. As such, it can be used as well. step-8 shows how it is used for FEValues, but the same could be done for FEFaceValues.

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/d2b39731-bbf6-4287-0ef9-a7c519cebb9b%40colostate.edu.

Reply via email to