FEniCS : How to interpolate data at vertices of (3D) cells?

This question appears to be a duplicate of Solution of my problem e does not match my mesh. Please don’t pose a question multiple times to try to get faster replies.

To avoid issues with ordering, you could use dolfin to create both your mass and stiffness matrices as then they will be in the same order.

Alternatively, you could get the stiffness matrix for each cell (see Element stiffness matrix), then loop through each cell.

If you still have difficulties, please reduce your code to a minimal failing example (see Read before posting: How do I get my question answered?) so that we can more easily run it and work out what the issue is. It’s also helpful if you wrap your code in three backticks (```) so that it is formatted as code.

3 Likes