lgw1860 / PyVT

A Python-based Open-Source Visualization Tool for CFD Applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

PyVT is a open-source light-weight python-based visualization tool built upon VTK. It is designated for visualization and graphic analysis of CFD/fluid-dynamic datasets. It is capable of generating cutplane/streamline/vector/isosurface in a interactive GUI.

Reference & Citation

The details of PyVT are documented in the following paper. We appreciate you citing our work. @article{liu2021pyvt, title={PyVT: A python-based open-source software for visualization and graphic analysis of fluid dynamics datasets}, author={Liu, Qing and Qiao, Zheng and Lv, Yu}, journal={Aerospace Science and Technology}, pages={106961}, year={2021}, publisher={Elsevier} }

Dependencies:

  1. python3
  2. numpy
  3. vtk
  4. PyQt5
  5. matplotlib

Installation on Mac OS (tested on high sierra or newer) and linux (tested on Ubuntu)

naive approach:

  1. Download the tarball package and uncompress it
  2. Make sure Python3 installed
  3. Run: python3 setup.py install

if conda is used:

  1. create a new environment: conda create --name myenv python3/python
  2. step 1 should install pip already, just run: pip install ./pyvt-1.0

Issues with cgns io interface:

Once installation of cgns is complete, navigate to the folder of cgns_to_vtk, and check the path of runtime library to be loaded. On Mac, do: " otool -L ./cgns_to_vtk " to check the search path; and use the command: " install_name_tool -add_rpath "@loader_path/../../lib" cgns_to_vtk " to add additional search path so that the dyn library can be loaded when cgns_to_vtk is executed

miscellaneous

  1. issue might occur when install matplotlib with newer-version python; make sure to upgrade the pip to the lastest version; I encountered issue with pip version 19.2.3; and resolved this issue with pip version 21.1.1

  2. issue might occur when loading PyQT on ubuntu since a required package component SIP is installed in a separate package folder. The solution is simply to copy SIP .so lib into the PyQT libs folder

About

A Python-based Open-Source Visualization Tool for CFD Applications

License:MIT License


Languages

Language:PostScript 83.9%Language:C 9.5%Language:Fortran 2.6%Language:Tcl 2.0%Language:Python 1.1%Language:Batchfile 0.3%Language:CMake 0.2%Language:M4 0.1%Language:Shell 0.1%Language:HTML 0.1%Language:Makefile 0.0%Language:Gnuplot 0.0%Language:Pascal 0.0%