Evaluate FEM solution at any point in domain

69 views
Skip to first unread message

Xuefeng Li

unread,
Oct 1, 2024, 4:13:34 PM10/1/24
to deal.II User Group
Hi, everyone!

This is a problem related to post-processing. But I can't find a solution from the DataPostprocessor class. Here is the description of my problem.

  1. Solve a PDE on a 2D domain [0, 1]X[0, 1] in the x-y plane by FEM with a fixed mesh, say, a 16X16 mesh. The FEM solution is a Vector u=u(x, y). Information of u(x, y) is known if (x, y) is a grid point of the mesh.
  2.  I need to solve for a curve x=f(y) defined by u(f(y), y)=f(y), for 0<y<1, where f(0) is known.
  3. On paper, we can solve for curve x=f(y) using Newton's method so long as u(x, y) and derivatives of u(x,y) are known for all (x, y) in [0, 1]X[0, 1].
  4. Is it possible to evaluate solution u and its derivatives at (x, y) which is not a grid point of the mesh?
  5. Ultimately, curve x=f(y) will be approximated by f(0), f(y_1), f(y_2), ..., f(y_{15}), f(1). Here is a related problem. Is there a way to get a 1D projection of a 2D mesh in dealii? In this case, I need the projection of the 16X16 mesh onto the y-axis. 

Xuefeng Li

unread,
Oct 2, 2024, 9:00:00 AM10/2/24
to dea...@googlegroups.com
I apologize for hitting the Send button before completing my questions.

I realize that the evaluation of a FEM function is an expensive process due to the fact that we'll need to determine the cell in the mesh where a point belongs before interpolation takes place. That's why I'm just asking for the possibility of existence of such a capability in dealii. 

Your suggestions are greatly appreciated!

Best,

--Xuefeng Li, (504)865-3340(phone)
   Department of Mathematics and Computer Science
   Like floating clouds, the heart rests easy
   Like flowing water, the spirit stays free
      Loyola University New Orleans
   New Orleans, Louisiana (504)865-2051(fax)


--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/2b65d4d8-8f79-4967-b46a-09795eec6a49n%40googlegroups.com.

Praveen C

unread,
Oct 2, 2024, 9:32:54 AM10/2/24
to Deal. II Googlegroup

Peter Munch

unread,
Oct 2, 2024, 9:36:42 AM10/2/24
to deal.II User Group

Xuefeng Li

unread,
Oct 3, 2024, 12:22:00 PM10/3/24
to dea...@googlegroups.com
Thank you, Praveen and Peter. Seems like what you've suggested meets my needs. 

Have a great weekend!

Best,

--Xuefeng Li, (504)865-3340(phone)
   Chair, Department of Mathematics and Computer Science

   Like floating clouds, the heart rests easy
   Like flowing water, the spirit stays free
      Loyola University New Orleans
   New Orleans, Louisiana (504)865-2051(fax)
Reply all
Reply to author
Forward
0 new messages