python helper function that generates a second-order model on a 3d grid ...

...(volume).