Hi Simon,

Correct - we don't have a way to shift support points like that on one 
particular element.

Another possibility would be to add a constraint (i.e., with AffineConstraints) 
enforcing that the FE solution sums to zero at that point. You would have to do 
some work to find the cell on which the point is and evaluate the shape 
functions at that point but it would work for any order of element and any 
point location.

Best,
David
________________________________
From: dealii@googlegroups.com <dealii@googlegroups.com> on behalf of Simon 
<simon.wieshe...@gmail.com>
Sent: Tuesday, February 7, 2023 5:05 AM
To: deal.II User Group <dealii@googlegroups.com>
Subject: [deal.II] possible to shift a support point (no vertex) of a 
triangulation?

Dear all,

I am approximating a scalar function F of one single argument by discretizing 
the argument over the interval [lb;ub].
Then, I interpolate the nodal values utilizing VectorTools::interpolate.
To generate the triangulation (a line), I call
GridGenerator::hyber_cube(triangulation, lb, ub) and refine globally up to a 
desired level.
Either FE_Q(1) or FE_Q(2) elements are used.

The issue is that there is one 'point' p in [lb;ub] for which the function must 
be Zero.
In case of FE_Q(1) elements, I simply shifted the vertex which is closest to p, 
to p.
For FE_Q(2) elements, the closest point to p is a vertex *or* the support point 
in the center of the element.
I think it is not possible to 'shift' a support point as the triangulation is 
made up of vertices only, right?

Best
Simon

--
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<mailto:dealii+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/e4c1dc91-7e1c-4317-93ca-ef8985f1313dn%40googlegroups.com<https://groups.google.com/d/msgid/dealii/e4c1dc91-7e1c-4317-93ca-ef8985f1313dn%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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/MN2PR03MB48795F2B98CD9E82F9AC150AEDDB9%40MN2PR03MB4879.namprd03.prod.outlook.com.

Reply via email to