This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
nnm:visualization [2019/09/23 14:31] carola.burkl [Moving plot-files to another device] |
nnm:visualization [2020/10/23 09:43] nextnanowikiadmin removed |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Output format ====== | + | ====== Tab: Output ====== |
+ | |||
+ | ===== Output format ===== | ||
nextnanomat can display the following output formats. | nextnanomat can display the following output formats. | ||
Line 23: | Line 25: | ||
</code> | </code> | ||
- | * ''.fld'' - 1D/2D/3D [[http://www.nextnano.com/nextnano3/input_parser/keywords/output-file-format.htm|AVS data format]] (rectilinear grid) - scalar field $f(x,y,z)$ or vector field $\mathbf{F}(x,y,z)$. | + | * ''.vtr'' - 2D/3D [[http://www.nextnano.com/nextnano3/input_parser/keywords/output-file-format.htm|VTK data format]] (rectilinear grid) - scalar field $f(x,y,z)$ or vector field $\mathbf{F}(x,y,z)$. ''.vtr'' files can be viewed using the [[nnm:visualization#d_visualizationparaview|Paraview]] software which is a full 3D visualization software while nextnanomat only displays 2D slices of 3D data files. |
- | * ''.vtr'' - 2D/3D [[http://www.nextnano.com/nextnano3/input_parser/keywords/output-file-format.htm|VTK data format]] (rectilinear grid) - scalar field $f(x,y,z)$ or vector field $\mathbf{F}(x,y,z)$. | + | * ''.fld'' - 1D/2D/3D [[http://www.nextnano.com/nextnano3/input_parser/keywords/output-file-format.htm|AVS data format]] (rectilinear grid) - scalar field $f(x,y,z)$ or vector field $\mathbf{F}(x,y,z)$. |
If a file extension is unknown it is treated as if it were a ''.txt'' file. | If a file extension is unknown it is treated as if it were a ''.txt'' file. | ||
Line 135: | Line 137: | ||
* ''set key on <nowiki>...</nowiki> nobox'' | * ''set key on <nowiki>...</nowiki> nobox'' | ||
- | === Increase fonz size in legend === | + | === Increase font size in legend === |
* ''set key on <nowiki>...</nowiki> font <nowiki>"</nowiki>sans - serif,14<nowiki>"</nowiki>'' | * ''set key on <nowiki>...</nowiki> font <nowiki>"</nowiki>sans - serif,14<nowiki>"</nowiki>'' | ||
* ''set key on <nowiki>...</nowiki> font <nowiki>"</nowiki>sans - serif,18<nowiki>"</nowiki>'' | * ''set key on <nowiki>...</nowiki> font <nowiki>"</nowiki>sans - serif,18<nowiki>"</nowiki>'' | ||
Line 165: | Line 167: | ||
* Open the saved ''.svg'' file with Inkscape ([[https://inkscape.org|www.inkscape.org]]) | * Open the saved ''.svg'' file with Inkscape ([[https://inkscape.org|www.inkscape.org]]) | ||
* ''File'' => ''Export .PNG Image...'' => Select ''Drawing'' => ''Export'' | * ''File'' => ''Export .PNG Image...'' => Select ''Drawing'' => ''Export'' | ||
+ | |||
+ | ====== 3D Visualization: Paraview ====== | ||
+ | - Install the free software [[https://www.paraview.org|Paraview]] on your computer | ||
+ | - Within nextnanomat: | ||
+ | - in 'Tools' >> 'Options' >> 'View', write the path of the Paraview executable in the user computer, e.g. ''C:\Program Files\ParaView 5.6.0-Windows-msvc2015-64bit\bin\paraview.exe'' | ||
+ | - Select a 3D ''.vtr'' file of the simulation output folder and click on the 'Export and open in specific format' button. Choose 'Open File with Paraview' ( Paraview will open automatically.) | ||
+ | - Withing Paraview: | ||
+ | - (The selected file should be automatically highlighted in Paraview.) Click on 'Apply'. | ||
+ | - Other settings: | ||
+ | - Representation: Surface | ||
+ | - Cell/Point Array Status: Choose the array to be displayed. For example, one can display the file ''bandedges.vtr'' and choose the array ''Gamma'' that corresponds to the \Gamma conduction band. Click on 'Apply'. | ||
+ | - Coloring: Choose the array to be displayed. (Gamma, in this example) | ||
+ | |||
+ | Now you can play with the tool rotating, changing opacity and adding filters. | ||
+ | Paraview is a very rich tool: It requires some time to explore all its capabilities. | ||
+ | We recommend investing some time to learn about its filters. First the file should be highlighted and then to click 'Filter' >> 'Alphabetical' | ||
+ | Some interesting ones are: | ||
+ | * Edit cells by region | ||
+ | * Calculator | ||
+ | * Contour | ||
+ | | ||
+ | Using 'File' >> 'Save State', the compute can store the value of all variables, to reproduce again the representation, if necessary (by loading the state). This is useful for generation of scripts. | ||
+ | |||
+ | Having more questions, we recommend a good tutorial from TACC, although there exist plenty of examples on the web: [[https://portal.tacc.utexas.edu/c/document_library/get_file?uuid=01dd202d-58c6-4b46-8310-b6d7087372ac&groupId=13601|https://portal.tacc.utexas.edu/c/document_library/get_file?uuid=01dd202d-58c6-4b46-8310-b6d7087372ac&groupId=13601]] | ||
+ |