Questions tagged [vtk]

For questions about using the Visualization ToolKit (VTK) program

Filter by
Sorted by
Tagged with
0 votes
1 answer
184 views

VTK arbitrary-order Lagrange elements - node positions/ordering on reference tri/quad/hex/tet elements

VTK has had support for visualizing arbitrary-order Lagrange elements for a while now, but there aren't many resources out there (as far as I know) facilitating their use. Notably, these elements rely ...
Tristan Montoya's user avatar
4 votes
2 answers
343 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 ...
Al-Farouq's user avatar
0 votes
1 answer
35 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 ...
yemino's user avatar
  • 515
0 votes
0 answers
50 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] ...
yemino's user avatar
  • 515
1 vote
2 answers
707 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 ...
NNN's user avatar
  • 610
1 vote
0 answers
217 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: ...
WBSS's user avatar
  • 23
0 votes
1 answer
243 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 ...
WBSS's user avatar
  • 23
1 vote
1 answer
1k 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 ...
WBSS's user avatar
  • 23
0 votes
1 answer
1k 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 ...
xpt's user avatar
  • 1
0 votes
2 answers
577 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 ...
Ander Biguri's user avatar
1 vote
0 answers
98 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 ...
Sara's 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 ...
user3482876's user avatar
4 votes
2 answers
1k 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 ...
jake_gerard10's user avatar
1 vote
1 answer
262 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 ...
user3482876's user avatar
2 votes
1 answer
445 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 ...
user32882's user avatar
  • 251
1 vote
1 answer
167 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 ...
Entwickler582's user avatar
2 votes
2 answers
4k 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 ...
Michael's user avatar
  • 1,463
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-...
student's user avatar
  • 231
1 vote
0 answers
653 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....
krishnab's user avatar
  • 297
1 vote
1 answer
857 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 ...
IPA's user avatar
  • 13
1 vote
1 answer
997 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)....
Victor's user avatar
  • 21
16 votes
4 answers
19k 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 ...
Geoff Oxberry's user avatar
21 votes
3 answers
19k 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 ?
SAAD's user avatar
  • 636
4 votes
2 answers
3k 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 ...
Stephen Jacob's user avatar