How to calculate the optimized size of mesh?

There are several things you can consider:

  1. Check if you get the analytical solution for the first time step.
  2. Check if the solution changes by using a structured mesh (like BoxMesh(Point(0,0,0), Point(40,40,40),N,N,N))
  3. Check if the solution changes by increasing the degree of the finite element function space.

You should also note that the error can be related to using the point source. See the other post I helped you out with:

1 Like