Skip to content

Latest commit

 

History

History
70 lines (47 loc) · 2.38 KB

README.md

File metadata and controls

70 lines (47 loc) · 2.38 KB

Orvisu

Orvisu provides an interface to simply generate 3D plot and 3D animations with color as 4th dimensions.

Orvisu is a Python3 interface realized with wxpython

Orvisu uses PVGeo and pyvista libraries for the visualization.

Orvisu can be useful in Geoscience to visualize 3D Domains or visualize sliced 3D domain.

UBC file format

Orvisu uses UBC file format to generate plots. For one plot two files are needed:

The mesh defines the model region and the model file defines the cells properties.

A script named "writeVisuOutput.py" is provided to generate UBC files from numpy arrays.

Example:

import sys
sys.path.append('/path/to/Orvisu/directory')
import writeVisuOutput as wvo
import numpy as np

data=np.random.rand(3,3,3)
wvo.WriteVisuOutput().run(data,'ubc','./numpytoubc')

s_data=np.ones((5,10,15))*10
wvo.WriteVisuOutput().run(s_data,'ubc','./s_numpytoubc')

Requirements

  • Python3.x needs to be installed.
  • Package manager pip needs to be installed.

Installation

Use the 'install.sh' script.

git clone https://github.com/BartheG/Orvisu.git
chmod +x ./install.sh && ./install.sh

or

git clone https://github.com/BartheG/Orvisu.git
chmod +x ./install.sh && sudo ./install.sh

Usage

python3 CoreInterface.py

Usage example

Examples of visualizations made with Orvisu

Plot showing a 50*50 (horizontal blocks) domain with PH value as 4th dimension Animation showing the evolution of a 15*15 (horizontal blocks) domain with PH value as 4th dimension Animation showing the evolution of a 50*50 (horizontal blocks) domain with PH value as 4th dimension

Contact

Guillaume Barthe