The tasks of
verifying numerical methods and their modifications are an actual section of modern
computational mathematics. This is confirmed by the introduction in 2018 of the
Federal Standard for the numerical simulation of supersonic inviscid gas flows
and software verification [1]. Such standards will determine the direction of
research in this area over the next decade. Verification problems were solved
throughout the development of numerical methods.
However, now due
to the development of high-performance computing tools, new verification
opportunities are emerging. Earlier, the verification of the numerical method
was carried out for separate problems, and in the case of a positive result the
obtained computational properties of the considered numerical method extended
to similar problems by default.
At present,
parallel technologies make it possible to solve parametric problems in
multitasking mode and, thus, obtain a comparison of accuracy not only for a
single task, but for a whole class of problems determined by a variation of key
parameters.Such an approach corresponds to the concept of a generalized
computational experiment being developed in Keldysh Institute of Applied
Mathematics [2-4]. The construction of a generalized computational experiment
for comparative analysis of the accuracy of several numerical methods, where
the number of considered numerical methods is another key parameter, allows us
to develop approaches for assessing accuracy in the absence of a reference
solution (known exact solution or experimental data). Such an approach is the
estimation of accuracy on an ensemble of numerical solutions [5,6].
This work uses
as a basis for constructing stereo images the numerical results obtained using
the generalized computational experiment in [7,8]. In these papers, a class of
computational gas dynamics problems is considered that describe the incidence
of an inviscid supersonic gas flow onto a flat plate at an angle of attack.
With such a
fall, an oblique shock wave is formed. The Mach number and angle of attack are
used as key parameters. These values vary in certain ranges. This problem has
an exact solution. Numerical results are compared with this exact solution at
each point of the calculation domain. For each combination of key parameters,
an error is evaluated in the norm of L1 and L2. The obtained results make it
possible to construct an error surface as a function of two key parameters of
the problem.
Similar
calculations for several numerical methods implemented in the solvers of the
open software package OpenFOAM, make it possible to build several such surfaces
on one frame. This opens up the possibility of a deep and clear comparative
analysis of the accuracy for considered numerical methods.
The construction
of such a generalized computational experiment involves the creation of a
unified computing technology from solving a direct problem up to visual
analysis of the results.
One of the most
expressive and demonstrative forms of visualization is the construction of
stereo animations presenting the results of numerical studies. The works [916]
reflect a wide range of applications of modern stereo systems and the
development of practical algorithms for stereo representation of static and
animated images.
This topic also includes
a series of researches carried out in Keldysh Institute of Applied Mathematics [12,
17-19, 20-23]. These researches are based on the available stereo systems of
two types.
The first type
of device is a 3D projection stereo system for displaying stereo presentations,
graphics and stereo films. It is an example of a classic stereoscopic system
using two projectors, a screen and linear polarization glasses. The papers
[20-21] describe in detail studies on the presentation of textual information
on this type of stereo device using a linear stereo base. In these works, test
inscriptions were built with variations of the font, background, font
embossment, the whole angle of rotation of the inscription, and shift along the
linear stereo base. The parameters were found that provide the most bright stereo
effect. Basic requirements for the fonts used and a number of special conditions
were identified. The satisfaction of these conditions is necessary to achieve
the optimal result.
The second type
of device is the Dimenco DM654MAS autostereoscopic monitor. Autostereoscopic
monitors provide glasses-free stereo imaging. There are two ways to demonstrate
objects: either using a composite frame containing views of the visualization
object at different angles that form a certain viewing sector - this is called
a multi-view method, or using depth maps.
In previous works
devoted to stereo images of textual information [20-22], a series of
computational experiments were described for stereo systems of both types
classical stereo systems using special glasses and an autostereoscopic monitor.
During the experiments, when constructing the inscription, various parameters
varied: font size, rotation angle on each frame in multi-view, and also the
distance between frames for a linear stereo image.
After
solving the problem of creating stereo texts on their own, as separate frames
in a stereo presentation or stereo animation, another important sub-task was
identified: combining images and text information in one frame. This problem is
described in [23] in detail. The developed methods and approaches for
constructing stereo images made it possible to apply them to the construction
of error surfaces for the analysis of the comparative accuracy of OpenFOAM
solvers for the oblique shock wave problem with variation of the Mach number
and angle of attack. To build stereo images, a multi-view method was used on an
autostereoscopic monitor.
An autostereoscopic
monitor has the ability to demonstrate a visualization object using a composite
frame containing views of the visualization object at different angles, which
together form a certain viewing sector. Usually, these are nine views. These
nine views form eight stereopairs ([1 | 2], [2 | 3], [3 | 4], ..., [8 | 9]),
however, the viewer can observe only one of the stereopairs in one position,
depending on the location in defined angular sector of observation. When the
observer moves from sector to sector, he receives information about the object
using all nine views, that is, as if looking at the visualization object from
different angles.
When building a
multi-view stereo image, nine frames are combined into one image according to
the principle of a 3 × 3 matrix. In the first and last (ninth) frames,
the represented object is in its extreme positions. In the first frame, the
object is in its rightmost position, and in the last frame, in the leftmost
position. Then in the middle frames, respectively, from the second to the
eighth, with certain equal intervals, it moves to the left until it reaches the
extreme left position. In this case, in each frame, the object is progressively
rotated by the same angle and shifted by a predetermined interval. This allows
you to achieve the most effective result when creating a stereo image of the
object.
Figure 1 shows one of
the results of previous studies - a multi-view image of the simulation results
of a supersonic flow around a cone at an angle of attack with the corresponding
inscription [23]. The task was to combine in one stereo image the objects of
different depths and sizes and text information (in this case, the cone and the
inscription at the figure). Here the image of the simulated cone and separately
the inscriptions to it are combined. Each of them is rotated by its own
experimentally revealed angle and is shifted by a certain distance, also
different. As shown in the figure, a matrix of images is further compiled,
which in turn comprise a single stereo image. In the end, the inscription was
located on top of the cone, but behind its tip, which in turn was perceived by observers
as protruding from the screen by several centimeters.
Fig. 1.
Image of the simulation results of a supersonic flow around a cone with the
corresponding signature [23].
A similar
problem was posed for constructing stereo mappings of error surfaces with
corresponding inscriptions.
This section
presents the results of constructing error surfaces for four OpenFOAM solvers
with variations in the Mach number from 2 to 4 and variations in the angle of
attack from 6 to 20 degrees [8]. It should be noted that error surfaces for the
class of problems of the numerical methods accuracy comparative analysis were
constructed in [8] for the first time. The left part of Figure 2 shows four
error surfaces for fourOpenFOAM solvers - rhoCentralFoam (rCF), pisoCentralFoam
(pCF), sonicFoam (sF) and QGDFoam (QGDF) with the corresponding text labels and
notations. To construct a single stereo image, the same techniques were used as
in [23] for the image of the cone. The constructed multi-view image is
displayed on the right side of Figure 2.
Fig. 2.
Image of the surface deviation from the exact solution for four OpenFOAM
solvers with variation of the Mach number and angle of attack for the oblique shock
wave problem.
Figure 2 shows
that the best accuracy in the class of problems is provided by the rCF and pCF
solvers, for which the error surfaces almost coincide. The developed technology
allows one to create stereo images for these surfaces separately. The results
are presented in Figure 3.
Fig. 3.
Image of error surface comparison for pCF and rCF solvers.
Figure 3 shows
that the divergence of error surfaces is most pronounced for the smallest Mach
number and the largest angle of attack. In Figure 4, this area is presented in
close-up.
Fig. 4.
A
close-up image of the surface deviation from the exact solution when the Mach
number and cone angle are varied for two OpenFOAM solvers.
This
work continues a series of studies devoted to the implementation of the project
to create stereo presentations of mathematical modeling problems results. The
results of numerical experiments on construction of error surfaces for various
OpenFOAM solvers are presented. The error surfaces are constructed on an
autostereoscopic monitor using the multi-view representation. The experiments
were carried out for a comparative analysis of the numerical methods accuracy.
The accuracy was compared using the classical oblique shock wave problem, which
has an exact solution. The construction of stereo frames is carried out in the
previously developed mode of combining in one stereo frame the main object of
the visualization and the corresponding text labels and symbols. The
constructed stereo frames provide the researcher with the possibility of a deep
and thorough visual analysis of the results.
[1] Federal standard Š 57700.122018.
Numerical simulation of supersonic flows for an inviscid gas. Software verification
/ National standard of the Russian Federation for numerical modeling of
physical processes. 2018, 20 p.
[2] Bondarev A.E. On the Construction
of the Generalized Numerical Experiment in Fluid Dynamics // Mathematica
Montisnigri, Vol. XLII, 2018, p. 52-64.
[3] A.E. Bondarev . On visualization
problems in a generalized computational experiment (2019). Scientific
Visualization 11.2: 156 - 162, DOI: 10.26583/sv.11.2.12
[4] A.E. Bondarev, V.A. Galaktionov.
Generalized Computational Experiment and Visual Analysis of Multidimensional
Data (2019). Scientific Visualization 11.4: 102 - 114, DOI:
10.26583/sv.11.4.09 http://sv-journal.org/2019-4/09/
[5] A.K. Alekseev, A.E. Bondarev, A.E.
Kuvshinnikov. Verification on the Ensemble of Independent Numerical Solutions
// ICCS 2019, Lecture Notes in Computer Science (LNCS), Vol. 11540, pp.
315324, 2019. DOI: 10.1007/978-3-030-22750-0_25
[6] A.K. Alekseev, A.E. Bondarev, A.E.
Kuvshinnikov. On uncertainty quantification via the ensemble of independent numerical
solutions // Journal of Computational Science 42 (2020) 101114, DOI:
10.1016/j.jocs.2020.101114
[7] Alekseev A.K., Bondarev A.E.,
Kuvshinnikov A.E. Comparative analysis of the accuracy of OpenFOAM solvers for
the oblique shock wave problem // Matematica Montisnigri, 2019, vol. XLV, p.
95-105 DOI: 10.20948/mathmontis-2019-45-8
[8] Bondarev A., Kuvshinnikov A.
Parametric Study of the Accuracy of OpenFOAM Solvers for the Oblique Shock Wave
Problem // IEEE The Proceedings of the 2019 Ivannikov ISPRAS Open Conference
(ISPRAS-2019) 2019. P. 108-112, DOI:10.1109/ISPRAS47671.2019.00023
[9] Hardware-software complex of 3D
presentations based on a virtual studio and virtual environment / Vandanov V.G.
[et al] // Proceedings of the 1-st international conference «3D visualization
of scientific, technical and social reality. Cluster technologies of modeling»
Izhevsk. 2009. P.73-77. [in Russian].
[10] Mezhenin A.V., Tozik V.G. 3D
Visualization using the stereo image effect // Proceedings of the 2-nd
international conference «3D visualization of scientific, technical and social
reality. Cluster technologies of modeling» Izhevsk. 2010. [in Russian].
[11] Mikhaylyuk M.V., Huraskin I.A.
Synthesis of stereo images for virtual reality systems using an optical
tracking system / Software&Systems 2006. ¹ 3. p. 10-14. [in Russian].
[12] Andreev S.V. [et al] Modelling and
visualisation of blade assembly with complicated shape for power turbine /
Scientific Visualization. 2015. v.7. ¹ 4. p.1-12
[13] Torgashev M.A., P.Y. Timokhin. The
technology of stereo video files synthesis for the system of 3D real-time
visualization / Software Products and Systems, 2012, ¹ 3, pp. 74-80. [In
Russian]
[14] Torgashev M.A. Implementation of
stereo mode for various devices for real time displaying / Software Products
and Systems, 2010, ¹ 2, pp. 23-29. [In Russian]
[15] Mikhaylyuk M.V., Maltsev A.V.
Timokhin P.Yu. The methods of 3D stereo visualizationof data obtainedin
simulation of unstable oil displacement from porous media / Proceedings of
Scientific Research Institute for System Analysis RAS, 2018, v.8, N 2, p.
125-129. [in Russian].
[16] Visibility Experiment and
Evaluation of 3D Character Representation on Mobile Displays / Hiromu Ishio [et
al.] // C. Stephanidis (Ed.): Posters, Part II, HCII 2011, CCIS 174, pp.
4651, 2011.
[17] Generation of Stereo-Presentations
in Photorealistic Rendering and Scientific Visualization /Andreev S.V.[et al]
// Keldysh Institute preprints, 2010. ¹ 61. 16 p.
http://library.keldysh.ru/preprint.asp?id=2010-61[inRussian].
[18] Synthesis of photorealistic
three-dimensional images in modern presentation systems / Andreev S.V.[et al]
// Software&Systems 2007. ¹ 3. p. 37-40. [in Russian].
[19] Andreev S., Filina A. Using stereo
presentations for visualization of scientific calculations results / Scientific
Visualization. 2012. v.4. ¹ 1. p.12-21.
[20] Andreev S.V., Bondareva N.A.
Constructing a representation of textual information in stereo presentations //
Proceedings of the 28-th International Conference of Computer Graphics and
Vision GraphiCon-2018, Tomsk, Russia, 23-28 September 2018, p. 86-89. [in
Russian].
[21] S.V.Andreev, A.E.Bondarev,
V.A.Galaktionov, N.A.Bondareva (2018) The problems of stereo animations
construction on modern stereo devices. Scientific Visualization 10.4: 40 - 52,
DOI: 10.26583/sv.10.4.04
[22] S.V. Andreev,
N.A. Bondareva, E.Yu. Denisov. Stereo Presentations Problems of
Textual information on an Autostereoscopic Monitor (2019). Scientific
Visualization 11.4: 90 - 101, DOI: 10.26583/sv.11.4.08
[23] S.V. Andreev, A.E. Bondarev,
N.A. Bondareva. Stereoscopic construction of textual information in
presentations of research results on an autostereoscopic monitor (2020). Scientific
Visualization 12.1: 132 - 139,
DOI: 10.26583/sv.12.1.12