calculate theory values only on demand (buggy)
Revert "calculate theory values only on demand (buggy)"

This reverts commit d23e81a89ef280ba2f877798db7b3db93cd87e39.
triangle peridoic BC works a bit (still buggy)