leon-vv / Traceon

Electromagnetic solver and electron tracer
https://traceon.org/
GNU Affero General Public License v3.0
3 stars 4 forks source link

Improve choice of optical axis sampling for derivative calculation #18

Closed leon-vv closed 1 year ago

leon-vv commented 1 year ago

Now sometimes we over sample by a lot, for example validation/preikszas.py spends way too much time calculating the required derivatives. Maybe a good first guess would be to take the sampling equal to the mesh size.

leon-vv commented 1 year ago

It looks like we first need a more generic Solution (or maybe Field) class. The sample function only has access to the current solution tuple which does not contain the mesh size...

leon-vv commented 1 year ago

See #20