Questions tagged [paraview]

ParaView is an open-source, multi-platform data analysis and visualization application.

ParaView is an open-source, multi-platform data analysis and visualization application. ParaView users can quickly build visualizations to analyze their data using qualitative and quantitative techniques. The data exploration can be done interactively in 3D or programmatically using ParaView’s batch processing capabilities.

ParaView was developed to analyze extremely large datasets using distributed memory computing resources. It can be run on supercomputers to analyze datasets of exascale size as well as on laptops for smaller data.

It uses as the visualization engine.

529 questions
12
votes
1 answer

Paraview: Changing aspect ratio of axes in rendering window

I have a scalar field in a 3D domain (fortunately it can be represented in a structured grid). However, one axis domain is considerably larger than the other two. For sake of clarity, my 'vts' file is equivalent to the one that follows: from…
pysolver
  • 505
  • 6
  • 16
9
votes
2 answers

Reading and plotting VTK file data structure with python

I have a VTK file (unstructured grid) with points and cells. I can import the file and read it into using the meshio python package. If I type the command mesh.cells I see a dictionary called 'hexahedron' with an array made up of lists inside like…
NaN
  • 503
  • 5
  • 16
8
votes
2 answers

paraview python scripting equivalent of File->save Data

I would like to automate exporting csv files from vtk/vtu files. Right now, the steps I take are: open paraview load in the pvd file that stores the information about all vtu files (one for each time steps in my PDE simulation) goto Properties tab…
Hans
  • 1,591
  • 2
  • 21
  • 35
7
votes
1 answer

Passing arguments to cell magic %%script

Closest related question is this one: In Ipython, how can I pass arguments to a cell as though it were its own script? I am writing an ipython notebook to make simulations and then create an animation in paraview. The way I do this is run a cell…
Takoda
  • 253
  • 1
  • 8
7
votes
2 answers

Paraview: rotate around a given axis

The default 3D rotation mode is a kind of rollerball mode. Is it possible to interactively rotate about a given axis (say x, y or z axis), instead? I see you can do it by typing numbers into the view details dialog, but that is painful.
Mark Armstrong
  • 420
  • 1
  • 3
  • 11
7
votes
5 answers

Exporting a 3D numpy to a VTK file for viewing in Paraview/Mayavi

For those that want to export a simple 3D numpy array (along with axes) to a .vtk (or .vtr) file for post-processing and display in Paraview or Mayavi there's a little module called PyEVTK that does exactly that. The module supports structured and…
somada141
  • 964
  • 1
  • 12
  • 25
6
votes
1 answer

10,000+ Point 3D Scatter Plots in Python (with Quick Rendering)

Performance-wise, the following code snippet works perfectly fine for me when plotting in mayavi. import numpy as np from mayavi import mlab n = 5000 x = np.random.rand(n) y = np.random.rand(n) z = np.random.rand(n) s = np.sin(x)**2 +…
lanery
  • 4,159
  • 3
  • 24
  • 37
6
votes
1 answer

Composing VTK file from multiple MPI outputs

For a Lattice Boltzmann simulation of a lid-driven cavity (CFD) I'm decomposing my cubic domain into (also cubic) 8 subdomains, which are computed independently by 8 ranks. Each MPI rank is producing a VTK file for each timestep and since I'm using…
andreee
  • 3,626
  • 16
  • 33
6
votes
2 answers

Add a datafile type reader to paraview using pvpython

I'm aware that you can add readers for different datafile types to paraview, however, that all talks about doing a bunch of VTK stuff in c++ and (maybe worse) re-compiling paraview to make it aware of your datafile format. On the other hand,…
mgilson
  • 264,617
  • 51
  • 541
  • 636
6
votes
1 answer

Adding own GUI in Paraview

I need to add my own, self made qt gui in paraview. I heard about paraview plugins that should allow that. But I do not find a tutorial on it. How can I add buttons, checkboxes, comboboxes in Paraview? Could somebody show me an example? Thanks in…
ISTB
  • 1,629
  • 3
  • 21
  • 28
5
votes
2 answers

Paraview - Using python script to export data in x3d format

I am trying to export in x3d format OpenFOAM results using paraview-python script. When I do it via paraview graphical interface it works and results can be visualized in Blender, see the following picture However, when I try to do the same…
Sim81
  • 1,054
  • 2
  • 7
  • 12
5
votes
1 answer

How to select all mesh regions in ParaView OpenFOAM case using python scripting?

Loading an OpenFOAM case in ParaView using python is straight forward with: ofReader = OpenFOAMReader(FileName='') However, by default only the internalMesh mesh region is selected in the reader object. Using the trace…
Woltan
  • 12,751
  • 12
  • 70
  • 97
5
votes
3 answers

HDF5 for data files written with fortran

The HDF5 data storage uses the C convention, i.e. if I am storing a matrix A(N,M,K) in a binary file, the fastest changing dimension of the stored data will have size N. Apparently when I use the Fortran wrapper of HDF5, HDF5 automatically…
Pradeep Jha
  • 783
  • 2
  • 12
  • 27
5
votes
1 answer

How to write ASCII and BINARY data to the same file at the same time

I work with a VTK data type for my outputs. Since my data is becoming larger and larger, it's taking considerable time to write it in ASCII and that's what I have been doing so far. I need to change that into binary format but the problem is the…
mmirzadeh
  • 6,245
  • 7
  • 32
  • 45
4
votes
1 answer

ParaView crashes when loading a large ASCII VTK file

When I try to load a VTK file which is approximately 100mb in size in ParaView the program crashes. However, if I reduce the size of the file by selecting fewer data points (average size now approximately 30mb) it gets loaded without any problems. I…
long bow
  • 41
  • 3
1
2 3
35 36