The three-dimensional visualization is indispensable in order to understand three-dimensional simulation results such as the earth's magnetosphere better. By the appearance of the VRML (Virtual Reality Modeling Language) which is the international and standard language for the internet's three-dimensional visualization, it would be possible to watch the three-dimensional image as VRML file by the VRML viewer, even if people does not have three-dimensional image processing machinery and three-dimensional image processing software. It is shown the method of how to make VRML file by fortran and example and interface subroutine package of making for the VRML contents preparation.
1. Fundamental example (1)
In this chapter, the fundamental example which makes the image file of the VRML2.0 type using the Fortran program is shown. Concretely, the image file of the VRML2.0 type is made by compiling, linking and executing each main program and subroutine package. Usage: 1. f77 -c -O pk1subrtn.f The object module (pk1subrtn.o) is made by the compilation of subroutine package (pk1subrtn.f). 2. f77 -O box1.f pk1subrtn.o The execution file (a.out) is made by the link of the main program (box1.f etc.) with the object module (pk1subrtn.o). 3. a.out The VRML 2.0 (fort.10) file is made by the execution of the execution file (a.out). 4. mv fort.10 box1.wrl The file name of made VRML is changed at "***.wrl".
2. Fundamental example (2)
In this chapter, the example that it is fundamental for making the image file of the VRML 2.0 type using the Fortran program and can utilize as it is for analysis application of simulation data is shown. Concretely, the image file of the VRML2.0 type is made by compiling, linking and executing each main program and subroutine package (zvrsuba.f). The usage: 1. f77 -c -O zvrsuba.f The object module (zvrsuba.f) is made by the compilation of subroutine package (zvrsuba.o). 2. f77 -O msymbol.f zvrsuba.o The execution file (a.out) is made by the link of the main program (msymbol.f etc.) with the object module (zvrsuba.o). 3. a.out The VRML 2.0 (fort.10) file is made by the execution of the execution file (a.out). 4. mv fort.10 box1.wrl The file name of made VRML is changed at "***.wrl".
No. | Contents | Fortran Program | VRML file | gif file | jpg file | rgb file |
Subroutine package | zvrsuba.f |
|||||
1 | Character | msymbol.f | msymbol.wrl | msymbol.gif | ||
2 | Point | mpoint.f | mpoint.wrl | mpoint.gif | ||
3 | Line | mline.f | mline.wrl | mline.gif | ||
4 | Triangular mesh | mtriangm.f | mtriangm.wrl | mtriangm.gif | mtriangm.jpg | mtriangm.rgb |
5 | Pixel image | mzpt03.f | mzpt03.wrl | mzpt03.gif | mzpt03.jpg | mzpt03.rgb |
6 | Frame and pixel image and character | mpixe015.f | mpixe015.wrl | mpixe015.gif | mpixe015.jpg | mpixe015.rgb |
7 | Equivalence plane | mcube301.f | mcube301.wrl | mcube301.gif | mcube301.jpg | mcube301.rgb |
3. Application to the MHD simulation
In this chapter, the concrete application which makes the VRML file by using the asymmetrical three-dimensional magnetosphere data of the three-dimensional global MHD simulation of interaction between the solar wind and the earth's magnetosphere with dawn-dusk asymmetry, is shown. The usage: 1. f77 -c -O zvrsuba.f The object module (zvrsuba.f) is made by the compilation of subroutine package (zvrsuba.o). 2. f77 -O zvrcroa.f zvrsuba.o The execution file (a.out) is made by the link of the main program (zvrcroa.f or zvrmaga.f) with the object module (zvrsuba.o). 3. a.out The VRML 2.0 (fort.10) file is made by the execution of the execution file (a.out). 4. mv fort.10 box1.wrl The file name of made VRML is changed at "***.wrl". 5. cat zvrcroa.wrl zvrmaga.wrl > zvr1.wrl The file of two VRML is synthesized.
No. | Contents | Fortran Program | VRML file | gif file |
Subroutine package | zvrsuba.f | |||
1 | Sectional views such as plasma temperature of the earth's magnetosphere are drew by the pixel image | zvrcroa.f | zvrcroa.wrl | zvrcroa.gif |
2 | Three-dimensional structure of the earth's magnetosphere | zvrmaga.f | zvrmaga.wrl | zvrmaga.gif |
3 | The synthesis of the three-dimensional image of pixel image and line of magnetic force | zvr01.wrl | zvr01.gif | |
Subroutine package | zvrsuba.f | |||
4 | Three dimensional distribution of the plasma temperature in the whole earth's magnetosphere drawn by the multiple pixel image planes | zvrmpxa.f | fa410zx.wrl fa410yz.wrl fa410xy.wrl fa410xyz.wrl |
fa410zx.gif fa410yz.gif fa410xy.gif fa410xyz.gif |
4.3-Dimensional MHD Simulation of Earth's Magnetosphere
(Example to execute the MHD Code and Graphic programs)
No. | Contents | Fortran Main Program | Subroutine Package | PostScript file | VRML fileˇ¦or gif file |
3D MHD simulation of 1/4 earth's magnetosphere | earthb10.f | ||||
Graphics program to make PostScript files | |||||
1 | noon-midnight meridian and equatorial plots (black and white) | gm150b.f | gsub150.f | gm150b.ps | gm150b.gif |
2 | energy distribution of cross section | gm220b.f | gsub220.f | gm220b.ps | gm220b.gif |
3 | 3-dimensional magnetic field lines | gm480b.f | gsub480b.f | gm480b.ps | gm480b.gif |
3-dimensional graphics program by VRML files (Virtual Reality Modeling Language) | |||||
1 | 3-dimensional magnetic field lines | zvrmagb.f | zvrsuba.f | zvrml1b.wrl zvrml1b.jpg |
|
2 | cross sectional pattern by pixel image | zvrcrob.f | zvrsubb.f |
5.Visualization to Various 3-dimensional MHD Models of Earth's Magnetosphere
5-a. Half volume model of earth's magnetosphere with IMF By and Bz components
No. | Contents | Fortran Main Program | VRML file | gif file |
Subroutine Package | zvrsuba.f | |||
1 | 3-dimensional magnetic field lines | zvrmaga.f | fa410w.wrl | fa410w.gif fa410s.gif |
2 | cross sectional pattern by pixel image | zvrcroa.f | ||
3 | cross sectional pattern by velocity vectors | zvrvela.f | ||
4 | 3-dimensional pixel image with multi-planes | zvrmpxa.f | fa410xyz.wrl fa410yz.wrl |
fa410xyz.gif fa410yz.gif |
5-b. Quarter volume model of earth's magnetosphere
No. | Contents | Fortran Main Program | VRML file | gif file |
Subroutine Package | zvrsubb.f | |||
1 | 3-dimensional magnetic field lines | zvrmagb.f | fb240w.wrl fbq240w.wrl |
fb240w.gif fb240s.gif fbq240w.gif fbq240s.gif |
2 | cross sectional pattern by pixel image | zvrcrob.f zvrcrobq.f |
||
3 | cross sectional pattern by velocity vectors | zvrvelb.f zvrvelbq.f |
||
4 | 3-dimensional pixel image with multi-planes | zvrmpxb.f | fb240xyz.wrl fb240yz.wrl |
fb240xyz.gif fb240yz.gif |
5-c. Half volume model of earth's magnetosphere with dipole tilt
No. | Contents | Fortran Main Program | VRML file | gif file |
Subroutine Package | zvrsubc.f | |||
1 | 3-dimensional magnetic field lines | zvrmagc.f | fc360w.wrl | fc360w.gif fc360s.gif |
2 | cross sectional pattern by pixel image | zvrcroc.f | ||
3 | cross sectional pattern by velocity vectors | zvrvelc.f | ||
4 | 3-dimensional pixel image with multi-planes | zvrmpxc.f | fc360xyz.wrl fc360yz.wrl |
fc360xyz.gif fc360yz.gif |
5-d. Whole volume model of earth's magnetosphere
No. | Contents | Fortran Main Program | VRML file | gif file |
Subroutine Package | zvrsubd.f | |||
1 | 3-dimensional magnetic field lines | zvrmagd.f | fde180w.wrl | fde180w.gif fde180s.gif |
2 | cross sectional pattern by pixel image | zvrcrod.f | ||
3 | cross sectional pattern by velocity vectors | zvrveld.f | ||
4 | 3-dimensional pixel image with multi-planes | zvrmpxd.f | fde180xyz.wrl fde180yz.wrl |
fde180xyz.gif fde180yz.gif |