finite elements method calculation, pre-final version