Questions tagged [visualization]

Questions relating to graphing and displaying numerical data

Filter by
Sorted by
Tagged with
5
votes
2answers
7k views

CFD visualization workflow: Visit vs Paraview vs Tecplot and others

For those familiar with more of these tools than I am, what are the pros and cons of the various tools available? Right now I exclusively use Tecplot for CFD visualization, but it leaves a lot to be ...
0
votes
0answers
42 views

How to calculate the average velocity over a surface through time using paraview?

My problem is a little more complex, but here is a simplified similar model. Let us consider a fire source inside a box and the hot gases (burnt or unburnt) from the combustion are going out of the ...
0
votes
1answer
120 views

temperature profile on axial direction of a chamber

I have a task to plot average temperature profile at each cross-section in the axial direction of a combustion chamber. I have $x$, $y$, $z$ coordinates data in excel as well as the corresponding ...
0
votes
0answers
43 views

Triplet optimization algorithm producing weird results?

I wrote an algorithm for data analysis using the CERN ROOT framework. It takes in three files of sorted UNIX timestamps from a single year and pairs them up in the closest triplets, where each file ...
2
votes
2answers
141 views

Generate random smooth 2D closed curves

I would like to know how can I generate a collection of random 2D closed smooth curves. I thought about generating a random 3D surface with random peaks, and then intersecting the Z=0 plane with it, ...
2
votes
2answers
93 views

Visualization of Quad/Octree data Structures

I have a simple C++ quadtree implementation. The implementation subdivides node into four children as if there is more than one point in that particular node. At the moment I want to visualize how ...
0
votes
0answers
42 views

Plotting a Magnetic Field in Spherical Coordinates in Python

I am modeling a Helmholtz Coil as two dipoles from far away and I want to plot the magnetic field. $$\mathbf{B}(\mathbf{r}) = \frac{\mu_0 |\mathbf{m}|}{4\pi r^3}\left(2\cos\theta\,\hat{\mathbf{r}} + \...
19
votes
3answers
12k 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 ?
0
votes
0answers
17 views

How can I convert OpenFOAM postProcessing directory to HDF5?

Are there existing tools or practices for converting OpenFOAM run-time post-processing directory, postProcessing, into a single HDF5 file or HDF5 groups? The ...
1
vote
0answers
38 views

Stress visualization for structured and unstrcutured mesh

I put together a FEM solver to do some structural analysis. At the moment I am trying to add stress visualization feature to my code. The post-processing is done with Paraview and the results with ...
0
votes
0answers
73 views

Numerical flow visualization in 2D for a moving boundary,

I have a rigid body that moves according to a set of governing ODEs, and I'd like to numerically visualize the vortices that are shed by this object. How could I proceed? I've been reading up on the ...
0
votes
1answer
575 views

C++ library unstructured mesh writer to VTK format (or similar)

I am working on a 2D unstructured code in C++. I am using gmsh to generate a 2D unstructured mesh and reading it into my program with a library called ...
1
vote
1answer
46 views

Using Axis Equal for Matlab simulation plots of the SIR model gives very flat solution curves

My professor taught us to always use the Matlab command axis equal for our simulation data plots - for all of our homework assignments. However, in studying the ...
2
votes
1answer
54 views

How to plot a heatmap under a curve?

If I were to have a data for a one-dimensional system evolving in time, essentially a two-dimensional array, and the array at each point in time is of the same size, how would I produce something like ...
1
vote
1answer
1k views

Efficiently plot a finite element mesh solution with Matplotlib

I am looking for the most efficient way to plot a mesh using Matplotlib given the following information, coordinates of each node, what nodes belong to each element, and the value each node has. Below ...
5
votes
5answers
15k views

How can I plot piece-wise defined function in some easily-accessed open-source tool?

I want to plot $$f_{n}(x) = \begin{cases} x-n & \text{for } n \leq x \leq n+1 \\ 2-x+n & \text{for } n+1\leq x \leq n+2 \\ 0 &...
4
votes
1answer
66 views

How to visualize multidimensional (d>10) function

I need to visualize the response of a function $$y=f(x_1, x_2, … , x_d)$$ with d in the order of 10-12 (the function f was sampled using finite element simulations). For lower-dimensional design ...
2
votes
0answers
28 views

Piecewise-linear Continuations vs Marching Squares/Cubes

It seems that both piecewise-linear continuation and marching squares are methods to produce iso-contours of a scalar function given the function's values on a grid. It seems that piecwise-linear ...
2
votes
0answers
310 views

Showing date in Paraview's Annotate Time Filter

I have a time dependent data set where each frame corresponds to a certain date. I need to show the time annotation, much like what Annotate Time Filter does, but show the date instead of time as a ...
2
votes
1answer
124 views

Which statistical method should I use for comparing machine run-time of two algorithms?

I am comparing the run-time of two algorithm by solving different instance of the problems. Sample of my data: ...
1
vote
0answers
54 views

3D log density plot in ParaView

I have a .csv file of thousands of (x,y,z) point particles that I would like to visualize in ParaView. I am able to plot a 3D scatterplot using the TableToPoints, and by decreasing point opacity I can ...
4
votes
3answers
786 views

Pre/Post-processor for an academic finite element solver

I'm currently developing a finite element solver for academic/research purposes. Therefore I'm searching for a pre- and postprocessor in my toolchain. For a previous project I have used gmsh as a ...
2
votes
1answer
155 views

User friendly scipy optimize wrapper package?

I'm creating too much throw away code for interfacing with the scipy optimize package in a user friendly way. (See code below for example of interruptible optimization that keeps last optimization ...
0
votes
1answer
220 views

How to create an optimal pizza delivery plan and how to visualize it

This question is quite open, and the actual problem comes from something you would probably consider an everyday niche (something you'd probably take for granted without really thinking about it). ...
1
vote
1answer
339 views

3D visualization in MATLAB

I have a function of 3 variables like $V= f(r_1, p, r_2)$, I want to plot these 4 data in one graph to be able to capture the behavior of V with respect to all three variables. I searched a little ...
0
votes
0answers
14 views

Compute cell values and isosurface constant from density values of particles

I am trying to reconstruct the surface for a fluid simulation based on a list of particles using the Marching Cubes algorithm. From different resources, such as http://paulbourke.net/geometry/...
0
votes
0answers
34 views

Extracting raw data from a graph

I am supposed to do black-box modeling, I need the input and output data for training, however, the authors didn't agree to share the raw data with me, I can only use their publication where these ...
1
vote
0answers
79 views

Properly sizing ParaView plots for LaTeX [closed]

I would like to make a visualization with ParaView for a paper. In order to have a high quality look, I would like the image to be, say, 300 dpi (or vector graphics). Moreover, since I know the column ...
3
votes
1answer
208 views

Visualization of 3D streamlines in ParaView

Essentially I want to use paraview to recreate a flow visualization like the one shown in the picture above. I am able to create the 3d flow lines using a pipeline that looks like ...
5
votes
2answers
2k views

Line Integral Convolution (LIC) Requirements

I'm trying to plot some vector fields using LIC technique. More specifically, I'm using the Python solution for this kind of plot. Before applying that approach, I was plotting my vectors as quiver. ...
0
votes
1answer
70 views

Visualizing a trajectory in VMD

So, I've written a short python program simulating diffusion in 2D; in essence each particle is behaving like a random walker. The output is a 3D tensor, which for 4 particles and 10 timesteps, looks ...
5
votes
1answer
9k views

How do I plot a transparent cylinder in matlab? [closed]

I know that I can use the following commands to create an opaque cylinder in matlab: N=100; [X,Y,Z]=cylinder(R,N); surf(X,Y,Z); I want to plot an arrow inside ...
3
votes
2answers
491 views

Recommended visualization tools for higher order finite element solutions?

Is there any software available which can directly render higher order finite element results? In particular, 3D finite elements would be preferable. It seems gmsh has some capability in this regard ...
0
votes
2answers
226 views

How to represent CFD result when I use grid-centered FVM?

My variables are stored at the center of the cells. How can I transfer these values to grid points? If I calculate the algebraic average value there may be a shock.
3
votes
1answer
105 views

Plotting or Visualizing a Higher dimensional vector field

I am trying to visualize a higher dimensional vector field. Is there a way to do this. I asked this question here, I was told to post it here. As an example, one can use $$\begin{eqnarray} \dot{x}...
1
vote
1answer
314 views

Recreating this 3D density plot in ParaView

I want to do somethings similar to the plot found at the bottom of this blogpost, which I found via this post in ParaView, which seems to have been the original Application used to generate the plot. ...
4
votes
2answers
540 views

3D contour mesh computation

I have the value of a function in three dimensions, $f(x, y, z)$, which varies smoothly. I would like to compute a 3D mesh where $f(x, y, z)$ has a particular value. Are there algorithms to do this? ...
3
votes
2answers
672 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 ...
15
votes
1answer
2k views

Visualizing discontinuous Galerkin/finite element data

I would like to visualize simulation results, obtained using the discontinuous Galerkin (DG) approach, within ParaView. Similarly to finite volume methods, the problem domain is divided into cube-...
2
votes
4answers
3k views

Magnetic field simulation and visualization on Mac OS X?

Does somebody know about any tool for simulation and visualization of magnetic fields either of permanent magnets or solenoids, that can be used on Mac OS X? Maybe there is some software for Linux, ...
0
votes
1answer
78 views

How to report non-monotonic runtimes in convergence plots

Let's say I have an algorithm that can be tuned by a parameter $h>0$ and is expected to converge as $h\to 0$. I want to study the computational complexity of this algorithm, i.e., how the ...
0
votes
1answer
197 views

Code to output VTK point data from decomposed domain for Paraview [closed]

I am developing a parallel 2D CFD code in C++ using PETSc and would like to use it as an opportunity to learn about VTK/Paraview. Right now, I have each processor output an ASCII file for the portion ...
2
votes
2answers
349 views

In practice, what are the most useful ways to visualize 2d fluid flow, to tell what is happening in the simulation? Esp for verification and debugging

My simulation creates a 2d grid of vectors and scalars (EDIT of velocity, depth etc), at 60 frames per second. Is it correct? It looks sort of right... but who knows? How can I tell what's happening - ...
1
vote
0answers
729 views

3D visualization of the results of a 2D simulation in COMSOL

Considering that COMSOL forum is dead and CFD-online is not responsive, I'm gonna try asking my question here: I have done a 2D simulation in COMSOL multiphysics. I have two independent variables x ...
10
votes
4answers
15k views

Visually appealing ways to plot singular vector fields with matplotlib or other foss tools

What is the best way to get a visual appealing plot of a singular vector field (if you want to visualize also the field strength). As an example I am playing with the electric fields of two point ...
22
votes
4answers
3k views

Algorithms for (adaptive?) function plotting

I am looking for algorithms to draw standard 2d-graphs for functions that may or may not have singularities. The purpose is to write a "Mini-CAS", so I have no a priori knowledge of the types of ...
42
votes
14answers
19k views

Which software and workflow is recommend for publication of scientific data and graphs?

Which software provides a good workflow from simple plotting of a few datapoints up to the creation of publication level graphics with detailed styles, mathematical typesetting and "professional ...
5
votes
3answers
374 views

Visualizing the solutions of the Differential equations by varying different parameters

Actually I am interested in analyzing the soution to the ODE given as $\frac{dy}{dx} = A + By + C\sin(y) , y(l) = m$ and check how the solution gets affected like whether they exist or not depending ...
1
vote
1answer
2k views

a circular plot from a vector which represents the temperature along the radius surface, which is the same for every radius

I have calculated the temperature of the section of a cylinder, which is subjected to a heat flow on its upper surface. Getting the temperature distribution in the 2D section. As shown in the ...
1
vote
1answer
2k views

Rescaling x-axis data in Paraview

I am working with VTK legacy files containing vector information. The files have incremental extension representing a file series as defined by this link. When applying the filter "Plot Selection ...