Questions tagged [vtk]

For questions about using the Visualization ToolKit (VTK) program

Filter by
Sorted by
Tagged with
4 votes
2 answers
191 views

Computation of the tensor of curvature on surface mesh

Is there a formula which enables the computation the tensor of curvature knowing the following at each vertex and cell of a triangulated mesh: Normal vector Two arbitrary vectors in the tangent space ...
user avatar
0 votes
1 answer
27 views

Plot scalar and vectorial solution constant on each CELL=square in paraview/vtk

I have the velocity (vector) and pressure (scalar). This solution is constant in each CELL (square) of the mesh. I don't know why does not appear the pressure information when I open the file in ...
user avatar
  • 503
0 votes
0 answers
23 views

Plot a function (constant on each square=CELL) in paraview using vtk file

I'm trying to plot the solution of a numerical method using a vtk file in paraview. The structure is very simple, and I going to explain with an example. I have a mesh of the unit square [0,1]x[0,1] ...
user avatar
  • 503
1 vote
2 answers
394 views

vtk python visualizing scalar data on quad mesh

I'd like to visualize scalar data located on the nodes of a quad mesh (2D) using VTK in Python3. The closest example I've found is vtk quad mesh, but it only seems to visualize the mesh, not data on ...
user avatar
  • 428
1 vote
0 answers
98 views

Understanding STRUCTURED_POINTS dataset in VTK

Based on my readings this is what I have gathered: Dimensions: Number of data points in the x, y, z directions Spacing: Space between points in each dimension Origin: Location of origin Cell data: ...
user avatar
  • 23
0 votes
1 answer
134 views

Extracting data from VTK simulations using C++

I have been given a few numerical simulations regarding fluid mixing and have been asked to extract a few parameters from them using C++. Altogether there are about 1000 VTK files per simulation, and ...
user avatar
  • 23
1 vote
1 answer
629 views

Reading VTK file into C++ for analysis

I apologize in advance if this post is at all ignorant or elementary, I am a pure mathematician who is newly getting into the world of scientific computing. For my research, my advisor would like me ...
user avatar
  • 23
0 votes
1 answer
843 views

Gmsh: Recombine 2D in script file or command line

I have many STL files and I want to reduce their size, so I use Gmsh in this way: gmsh -2 -bin -format vtk -o file.vtk file.stl -0 It reduces the size from 7 MB ...
user avatar
  • 1
0 votes
2 answers
468 views

Loading VTK tetrahedron volumes into ParaView

I want to see tetrahedron volumes generated from STL meshes in ParaView (5.5.2). From a given STL (simple cube, for example), I can generate a volume mesh using gmsh, and export it as .vtk ...
user avatar
1 vote
0 answers
94 views

How to measure euclidean distance between points with vtkDelaunay3D package? [closed]

I'm working with python vtkDelaunay3D package for a special purpose. I have set some points but I do not know how can I measure euclidean distance between points with this package. Is there anyone who ...
user avatar
  • 111
2 votes
1 answer
2k views

Volume rendering 3D VTK *.vtu UnstructuredGrid file in Paraview

I would like to volumetrically render 3D scalar data in Paraview, and I'm not sure if my inability to do so is incorrect usage of VTK or Paraview. I have built a *.vtu VTK unstructured grid file ...
user avatar
4 votes
2 answers
970 views

How do I migrate from Legacy VTK (Structured Points) to XML (Structured Grid)?

The documentation is fairly confusing and I know that I need to keep track of the actual grid location of my data. Writing a python script to convert binary data into this vtk format. I want to leave ...
user avatar
1 vote
1 answer
216 views

Viewing HDG FEM edge variables in vtk / paraview

For a 2D HDG code, I would like to be able to visualize the solution on the edge space between elements. Basically, this amounts to plotting the solution on the "green" nodes below. Is there a ...
user avatar
2 votes
1 answer
397 views

15 noded triangular elements in paraview

I am modelling a soil medium in plane strain and would like to determine if paraview supports the 15-noded triangular element as shown on this link. On the documentation I am only seeing elements up ...
user avatar
  • 241
1 vote
1 answer
154 views

VTK: Missing Streamlines due to error in Runge-Kutta method?

We are using Kitware VTK to visualize our models. When we display streamlines, it sometimes happens that a single streamline is left out. This can be especially seen when duplicating a model several ...
user avatar
2 votes
2 answers
3k views

How do you generate data for VTK?

I'm currently developing a simulation and I intend to use VTK for visualisation. Furthermore, I fell a bit stupid right now, as I do not find a good example on how to generate the data for VTK. There ...
user avatar
  • 1,443
5 votes
1 answer
1k views

What determines the usual chemistry textbook plots of atom orbitals?

In elementary chemistry textbooks you often have pictures like the following one: Are there any conventions how to get them? I am not sure, but I guess that it are contour plots with only one iso-...
user avatar
  • 231
1 vote
0 answers
623 views

best package choice for visualizing agent based model simulations in python

This is a visualization/programming design problem. I am working on building a geospatial agent based model, meaning that there are multiple agents interacting within some particular spatial container....
user avatar
  • 255
1 vote
1 answer
727 views

Visualizing the difference of two sets of VTK files

I have two sets of 300 VTK files and I want to get a graph comparing the average difference of the two sets. All files have a structured grid containing a scalar value named phi. At the end, I need a ...
user avatar
  • 13
1 vote
1 answer
874 views

VTK File: How do I save data on a cell face?

I am writing a program that creates a vtk file with a Rectilinear Grid. I am able to save data to each one of the cells using CELL_DATA, but now, I need to save data to each one of the cell faces (x6)....
user avatar
  • 21
16 votes
4 answers
17k views

How do I calculate the numerical difference between two fields stored in two different VTK files with the same structure?

Suppose I have two VTK files, both in structured grid format. The structured grids are the same (they have the same list of points, in the same order), and there is a field, call it "Phi", in each VTK ...
user avatar
19 votes
3 answers
18k views

Binary vs. ASCII file size

I need to write some data from a computation, that will be read later by Paraview (.vtu or vtk file). When it comes to file size , should I go for the ASCII format or the Binary format ?
user avatar
  • 616
4 votes
2 answers
2k views

VTK file format to image file

Is there a way to convert vtk file without visualizing into a image file such as png in the bash terminal itself? I have found that for the vtk files that I visualize to take longer time than its ...
user avatar