Thank you for the answer. After some more testing I found out the code was
correct, but my reasoning/math was not for cases with hanging nodes.

Best,
Lars

On Fri, Mar 17, 2017 at 9:42 AM, Wolfgang Bangerth <[email protected]>
wrote:

> On 03/14/2017 10:54 AM, [email protected]
> wrote:
>
>>
>> I'm trying to evaluate the solution of face elements (FE_FaceQ) at
>> specific
>> points on a face. For uniformly refined meshes the following works
>> perfectly
>> (as far as I can tell)
>>
>> std::vector<Vector<double>> result_values (1, Vector<double>(1));
>> const Point<dim - 1> punit_face = StaticMappingQ1<dim, dim>::mapping
>>                     .project_real_point_to_unit_point_on_face(cell,
>> face_id,
>> point);
>> Quadrature<dim - 1> quadrature(punit_face);
>> FEFaceValues<dim> fe_v(fe, quadrature, update_values);
>> fe_v.reinit(cell, face_id);
>> fe_v.get_function_values(solution, result_values);
>>
>> However when I refine some cells on the grid it seems to give wrong
>> results
>> for the cells around the hanging nodes. In specific it seems to be
>> incorrect
>> when cell is the coarse cell.
>>
>> So the question, does the previous code work with non uniformly refined
>> meshes? If not is there a way to adapt it to make it work?
>>
>
> I see no particular reason why that shouldn't work, but "In specific it
> seems to be incorrect" is really too non-specific to tell what exactly is
> going wrong. Can you explain what you see and how that differs from what
> you expect to see? Maybe with a picture on as coarse a mesh as you can use
> to demonstrate the error?
>
> 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/fo
> rum/dealii?hl=en
> --- You received this message because you are subscribed to a topic in the
> Google Groups "deal.II User Group" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/to
> pic/dealii/SwrPvNg7STU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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