PDE Methods in Flow Visualization

Tobias Preußer, Martin Rumpf

You can download the C source code of the implementation of nonlinear diffusion to visualize YOUR vector field data.

Steady Flow Visualization: Download C source code here

Time Dependent Flow Visualization: Download C++ Source Code here

horizontal rule

Description  

Vector field visualization is an important topic in scientific visualization. Its aim is to graphically represent field data in an intuitively understandable and precise way. Two novel methods are described which enable an easy perception of flow data. The texture transport method especially applies to time-dependent velocity fields. Lagrangian coordinates are computed solving the corresponding linear transport equations numerically. Choosing an appropriate texture on the reference frame the coordinate mapping ca n be applied as a suitable texture mapping.

Alternatively, the aligned diffusion methods serves as an appropriate scale space method for the visualization of complicated flow patterns. It is closely related to nonlinear diffusion methods in image analysis where images are smoothed while still retaining and enhancing edges. Here an initial noisy image is smoothed along streamlines, whereas the image is sharpened in the orthogonal direction. 

A generalization of the diffusion based multiscale approach allows for a multiscale visualization of long-time, complex transport problems. Instead of streamline type patterns generated by the original method now streakline patterns are generated and advected. This process obeys a nonlinear transport diffusion equation with typically dominant transport.  Again Starting from some noisy initial image, the diffusion actually generates and enhances patterns which are then transported in the direction of the flow field.  As before the image is simultaneously sharpened in the direction orthogonal to the flow field. A careful adjustment of the model's parameters is derived to balance diffusion and transport effects in a reasonable way. 

The methods have in common that they are based on a continuous model and discretized only in the final implementational step. Therefore, many important properties are naturally established already in the continuous model.

The steady-flow model.

For steady flow fields v on the domain, we consider the following boundary and initial value problem

that delivers a family of images 

with .

Thereby the diffusion tensor A acts smoothing in directions of the vector field and sharpening in orthogonal directions:

.

G(s) is the so called Perona-Malik function that steers the sharpening and clustering process in orthogonal directions:

The evolution is started with a white noise to avoid aliasing artefacts. 

Visualization of a Benard convection flow via the nonlinear anisotropic diffusion method. Four successive time steps of the evolution are depicted

 

The color coding of the images is arbitrary. In the above examples we chose a 2D color space with randomly distributed colors in that space. We can also colorize the images according to additional information (e.g. velocity, concentration).

The time-dependent-flow model.

The extension of the anisotropic diffusion method adds a transport of the resulting patterns. Thereby we work with the following PDE, where now v = v(t)

.

Since in this model the artificial scale and the time of the vector field data are not separated, we obtain the undesired behavior of moving patterns that grow coarser while the evolution runs. In the diagram below this would correspond to walking along the dashed red line. Our desired behavior would be representations that lie on a vertical line in this diagram. I.e. we would like to fix the scale and then let time run.

Furthermore to enable for a smooth animation of the images, we obtain for different times, we choose an approach that starts different processes of the visualization with coupled scale and time and the blends the results in an appropriate way. This corresponds to the yellow path in the above diagram. 

 

horizontal rule

Figures  

Figures Please click on the images to get zoomed pictures.

Convective patterns in a 2D flow field are displayed and emphasized by the method of field aligned anisotropic diffusion. The images show the velocity field of the flow at different time steps. Thereby the resulting alignment is with respect to streamlines of this timedependent flow.

Texture transport in the von Karman vortex street. Click here to load a movie.

The incompressible flow in a water basin with two interior walls, an inlet (on the left) and an outlet (on the right) is visualized by the anisotropic nonlinear diffusion method. Furthermore a color ramp blue--green--red indicates an increasing absolute value of the velocity. The diffusion is applied to initial data which is a relatively coarse grain random noise.

Porous media flow in a saltdome. Here color codes the salt concentration.

Circular Flow

Time dependent Benard convection flow in a 2D box with cooling from above and heating from below. The output was generated by the transport and diffusion method. Click on the image to load the animation. Color codes the velocity of the underlying flow.

Transport of a pollutant in a 2D box. Here the color coding shows the concentration of the pollutant. Click on the image to load the animation.

 

horizontal rule