Hello,
Is VectorTools::point_value supposed to work with FE_Nedelec?
The documentation looks very promising:
Evaluate a possibly vector-valued finite element function defined by the given DoFHandler and nodal vector fe_function at the given point point, and return the (vector) value of this function through the last argument.
Best,
John.
Yes, I have. Thus the question.
I would like to have a simple silly test to see that the FE_Nedelec elements are what I expect them to be. So, I made a simple program similar to step-3 that sets up a test. The program uses FE_Nedelec<2>. It does all the steps similarly to step-3. However, it does not solve the system of linear equations. It substitutes all zeros into the solution vector and then makes solution(0) = 1.
Then I have fed this solution together with the dof handler to the VectorTools::point_value on a grid of regularly spaced points. The results were written into a *.csv file. Then I have made the vector plot out of it. The 0-th order, FE_Nedelec<2> fe(0), looks just as what I would expect. The 2-nd order, however, looks just like the 0-th order. I opened the files in spreadsheet and indeed – the shape functions of the 0-th and 2-nd order are the same. I ruled out the possibility of mistake (the program prints fe.degree) and began worrying. I think VectorTools::point_value is to blame probably…
Is there a
replacement for it?
Best,
John
Dear Wolfgang,
I do not think it is a bug. I think it may very well be that VectorTools::point_value it is not meant to be used with FE_Nedelec.
The first question: in this instance I do not use DataOut at all. I use VectorTools::point_value to get data point-by-point and save it into a *.csv file.
For the second question: You are absolutely right. I do expect two edge elements of different degree to be different. So, I must conclude that my knowledge of the edge elements is not correct or is not complete. The last brings me to the following quesition:
Is there a paper or a book which describes the exact FE_Nedelec implementation of deal.ii?
Best,
John
Dear Wolfgang,
I have made a silly mistake. Thank you for pointing out this mistake! The shape functions indeed look fine!
I apologize for wasting time your time like that …
Best wishes,
John