Skip to content

beauof/FSIViewer

Repository files navigation

FSIViewer

FSIViewer - simple visualizer for FSI data

!===============================================================================================

The software has only been tested with Linux operating systems.

Make sure that the following packages are installed:
gcc
build_essential
python2.x
python-tk
python-imaging-tk (or: python-pil.imagetk)
python-dev
python-numpy
cython
vtk6
libvtk6-dev

Note: This software has been developed with VTK 5.8.0. It was tested with VTK 6.2.0.

To install, open a shell in the installation directory and do:
make user && make

Now, you should be able to start the visualizer with:
python main.py

In the subdirectory, there is a default and personal configuration file of the following format:
!===============================================================================================
Installation directiory of FSI visualizer
Default directory
Data folder (where you keep your *.D files)
Mesh folder (where you keep your .X/.T files)
Filename for fluid space *.D files
Filename for velocity *.D files
Filename for fluid pressure *.D files
Filename for fluid vorticity *.D files (note: filename if file exists, otherwise computed & saved as filename)
Do we have to transform the fluid pressure back to include hydrostatic pressure contributions?
Filename for solid space *.D files
Filename for displacement *.D files
Filename for solid pressure *.D files
Is current configuration the reference configuration + displacement variable?
Topology file prefix (fluid)
Topology file prefix (solid)
Set visualizer output to DEBUG
Fluid density in format 1.0e-3
Gravitational acceleration in x-direction in format 1.0e-3
Gravitational acceleration in y-direction in format 1.0e-3
Gravitational acceleration in z-direction in format 1.0e-3
Visualize fluid
Visualize solid
Visualize interface
Filename for domain velocity .D files
!===============================================================================================

!===============================================================================================

Further, cython files (
.pyx) can be profiled e.g.:
cython -a cythonfile.pyx
firefox cythonfile.html &
!===============================================================================================
!===============================================================================================


Known bugs:

!===============================================================================================

ImportError: No module named vtkCommonCorePython

Add the following two lines to your ~/.bashrc:
export LD_LIBRARY_PATH=/usr/lib/python2.7/dist-packages/vtk:$LD_LIBRARY_PATH
export PYTHONPATH=/usr/lib/python2.7/dist-packages/vtk:$PYTHONPATH
!===============================================================================================

_tkinter.TclError: couldn't load file "libvtkRenderingPythonTkWidgets-6.2.so": libvtkRenderingPythonTkWidgets-6.2.so: cannot open shared object file: No such file or directory

In: /usr/lib/python2.7/dist-packages/vtk (or similar, depending on your installation), do:
sudo ln -s libvtkRenderingPythonTkWidgets.x86_64-linux-gnu.so libvtkRenderingPythonTkWidgets-6.2.so

About

FSIViewer - simple visualizer for FSI data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published