nutofem / nuto

NuTo - yet another finite element library
https://nuto.readthedocs.io
Boost Software License 1.0
17 stars 5 forks source link

Improve PhysicalEquations #270

Closed Psirus closed 5 years ago

Psirus commented 6 years ago

This was already fixed in master, so now cherry-picking it for develop. The function DensityLiquidWater has been mangled by clang-format, and wasn't ideal to begin with. This proposes an improvement.

Psirus commented 6 years ago

The boost class assumes equidistant spacing. This is not the case here.

NAThompson commented 5 years ago

If you don't want equidistant spacing, boost also provides barycentric rational interpolation. O(n) construction and O(n) evaluation.