Skip to content

jobejen/Viscid

 
 

Repository files navigation

Viscid

Python framework to visualize scientific data on structured meshes. At the moment, only rectilinear meshes are supported, and support for other mesh types will be added as needed.

File types:

  • XDMF + HDF5
  • OpenGGCM jrrle (3df, p[xyz], iof)
  • OpenGGCM binary (3df, p[xyz], iof)
  • Athena (bin, hst, tab)
  • ASCII

There is also preliminary support for reading and plotting AMR datasets from XDMF files.

Install

Dependencies:

  • Python 2.6+ and 3.3+
  • numpy (required... for everything)
  • h5py (optional, if reading hdf5 files)
  • matplotlib (optional, if you import viscid.plot.mpl)
  • mayavi2 (optional, if you import viscid.plot.mvi)
  • numexpr (optional, for the calculator.necalc module)
  • cython > 0.17 (optional, only if you want to edit the cython code)
  • PyYaml (optional, rc file and plot options can parse using yaml)

The optional calculator modules (necalc and cycalc) are all dispatched through calculator.calc, and it is intelligent enough not to use a library that is not installed.

Standard distutils ./setup.py build; ./setup.py install

For a better dev experience, I recommend adding Viscid to your PYTHONPATH, viscid/scripts to your PATH, and building in-place with ./setup.py build_ext -i --with-cython If you want to ensure the cython generated code is up to date, you can use the shortcut ./setup.py dev, which is the same as above, but it ensures that cython is being used.

Developer Notes

I'm trying out the git flow model for this project, so the latest goodies will be in the develop branch.

About

Python framework to help visualize scientific data on structured meshes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 96.0%
  • Fortran 3.6%
  • Other 0.4%