Difference between revisions of "Visualizing the results"

From Serpent Wiki
Jump to: navigation, search
(Created page with "== Geometry plotter == == Track plots == == Mesh plots ==")
 
Line 1: Line 1:
 +
Serpent produces graphical output to visualize the geometry and the results of the simulation. The output is produced in the widely-supported [https://it.wikipedia.org/wiki/Portable_Network_Graphics png-format]. In order to produce graphical output, Serpent must be compiled with graphics options and linked with the [https://libgd.github.io/ GD Graphics Library] (see [[Installing and running Serpent#Compiling the source code|instructions on compiling the source code]]).
 +
 
== Geometry plotter ==
 
== Geometry plotter ==
 +
 +
The geometry plotter produces two-dimensional cross-sections of the geometry with respect to a give coordinate axis. The plotter is invoked by the [[Input syntax manual#plot (geometry plot definition)|plot input card]]. The card reads the orientation of the plane:
 +
{|
 +
| 1
 +
| : YZ-plane
 +
|-
 +
| 2
 +
| : YZ-plane
 +
|-
 +
| 3
 +
| : XY-plane
 +
|}
 +
and the size of the produced image in pixels. Additional input cards provide the position of the plot plane on the coordinate axis perpendicular to it and the width of the plot with respect to the geometry (in cm). The last four parameters can be used to zoom in the details of the geometry.
 +
 +
The geometry plotter plots materials in different colors, which by default are randomly selected. The colors can also be defined using the rgb-entry of the [[Input syntax manual#mat (material definition)|material card]].
 +
 +
Material boundaries are plotted with black lines. The plotter has also options to leave boundaries out, plot cell boundaries instead or plot both cell and material boundaries. These options are invoked by adding another number after the plot plane option:
 +
{|
 +
| 0
 +
| : no boundaries are plotted
 +
|-
 +
| 1
 +
| : material boundaries are plotted (default)
 +
|-
 +
| 2
 +
| : cell boundaries are plotted
 +
|-
 +
| 3
 +
| : both cell and material boundaries are plotted
 +
|}
  
 
== Track plots ==
 
== Track plots ==
  
 
== Mesh plots ==
 
== Mesh plots ==

Revision as of 12:16, 26 September 2016

Serpent produces graphical output to visualize the geometry and the results of the simulation. The output is produced in the widely-supported png-format. In order to produce graphical output, Serpent must be compiled with graphics options and linked with the GD Graphics Library (see instructions on compiling the source code).

Geometry plotter

The geometry plotter produces two-dimensional cross-sections of the geometry with respect to a give coordinate axis. The plotter is invoked by the plot input card. The card reads the orientation of the plane:

1  : YZ-plane
2  : YZ-plane
3  : XY-plane

and the size of the produced image in pixels. Additional input cards provide the position of the plot plane on the coordinate axis perpendicular to it and the width of the plot with respect to the geometry (in cm). The last four parameters can be used to zoom in the details of the geometry.

The geometry plotter plots materials in different colors, which by default are randomly selected. The colors can also be defined using the rgb-entry of the material card.

Material boundaries are plotted with black lines. The plotter has also options to leave boundaries out, plot cell boundaries instead or plot both cell and material boundaries. These options are invoked by adding another number after the plot plane option:

0  : no boundaries are plotted
1  : material boundaries are plotted (default)
2  : cell boundaries are plotted
3  : both cell and material boundaries are plotted

Track plots

Mesh plots