How can I get more specific Vector Field creation?

Could you specify the file format. What I find on the internet is only for 2D grids and not 3D volumes. If you could share the python script it would be greatly appreciated.