This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

How much new programming work would it be to evaluate Expressions on all points of integration grid

–7 votes

Dear All

Further to my question yesterday.
How much work coding is needed to allow
for the more accurate evaluation of matrix elements of Expressions by
evaluating these expressions on the integration grid instead of interpolatiing them?

regards

Moritz

asked Jun 28, 2013 by moritzbraun FEniCS User (1,390 points)

No work need to be done as it is already supported. Use Quadrature elements as Garth already pointed out for you in your previous question.

Dear Johan

Your are not correct.
Using a function space of higher order is not the same as
evaluating the potential on directly on the integration grid!
I tried to use 10th order polynomials and my job ran out of memory on a 8Gb laptop.

regards

Moritz

I did not say use higher order element. I said use Quadrature elements, as did Garth in the previous question.

Dear Johan
Please note.
Using quadrature element does not help, since the
Expressions are still interpolated on the nodal points
instead of on the integation grid!

regards

Moritz

1 Answer

0 votes

I believe what you're looking for is Gauss-Lobatto quadrature. It is a quadrature rule where the integration points coincide with the mesh nodes.

I'm a fenics novice, but I am very familiar with the method. It seems to be in fenics already. I found it here:

http://fenicsproject.org/documentation/dolfin/1.0.0/cpp/programmers-reference/quadrature/LobattoQuadrature.html

answered Dec 12, 2013 by luiscosta FEniCS Novice (390 points)
...