Semi-Lagrangian Library
Modular library for kinetic and gyrokinetic simulations of plasmas in fusion energy devices.
|
Implements the functions to write data file plotable by GNUplot.
This is an example of how use the sll_m_gnuplot module. More details about this example
Here a snapshot when you execute: $ gnuplot -persistent plot_2.gnu
Derived types and interfaces | |
interface | sll_o_gnuplot_1d |
write file plotable by gnuplot to visualize 2d field More... | |
interface | sll_o_gnuplot_2d |
Write file for gnuplot to display 2d field. More... | |
Functions/Subroutines | |
subroutine, public | sll_s_gnuplot_write (array, array_name, iplot) |
Write an array to display with gnuplot. More... | |
subroutine | sll_gnuplot_write_two_arrays_1d (array_name, array1, array2, iplot) |
Write two arrays to display with gnuplot. More... | |
subroutine | sll_gnuplot_write_1d (y_array, x_array, array_name, iplot) |
This subroutine write a data file to plot a 1d curve. More... | |
subroutine | sll_gnuplot_corect_2d (xmin, xmax, nx, ymin, ymax, ny, array, array_name, iplot, error) |
Write a data file plotable by gnuplot to visualize a 2d field. More... | |
subroutine | sll_gnuplot_rect_2d (nx, xvec, ny, yvec, array, array_name, iplot, error) |
Write a data file plotable by gnuplot to visualize a 2d field on structured rectangular mesh where spacing is not constant. More... | |
subroutine | sll_gnuplot_mesh_2d (nx, ny, xcoord, ycoord, array_name, error) |
Write a data file plotable by gnuplot to visualize a 2d curvilinear mesh. More... | |
subroutine | sll_gnuplot_curv_2d (nx, ny, x, y, array, array_name, iplot, error) |
write a data file plotable by gnuplot. More... | |
subroutine | write_unstructured_field (field_at_node, field_name, coord, nodes, plot_number) |
Write a field on unstructures mesh of triangles. More... | |
|
private |
Write a data file plotable by gnuplot to visualize a 2d field.
Axis are rectangular and spacing is constant
xmin | Box corners |
xmax | Box corners |
ymin | Box corners |
ymax | Box corners |
nx | x points number |
ny | y points number |
array(,:) | data |
array_name | field name |
iplot | plot counter |
error | error code |
Definition at line 280 of file sll_m_gnuplot.F90.
|
private |
write a data file plotable by gnuplot.
We visualize a 2d field on structured curvilinear mesh
ny | y points number |
x(nx,ny) | x coordinates |
y(nx,ny) | y coordiantes |
array(nx,ny) | data |
array_name | field name |
iplot | plot counter |
error | error code |
Definition at line 493 of file sll_m_gnuplot.F90.
|
private |
Write a data file plotable by gnuplot to visualize a 2d curvilinear mesh.
nx | x points number | |
ny | y points number | |
xcoord | x coordinates | |
ycoord | y coordiantes | |
array_name | field name | |
error | error code | |
[in] | nx | x points number |
[in] | ny | y points number |
[in] | xcoord | x coordinates |
[in] | ycoord | y coordiantes |
[in] | array_name | field name |
[out] | error | error code |
Definition at line 438 of file sll_m_gnuplot.F90.
|
private |
Write a data file plotable by gnuplot to visualize a 2d field on structured rectangular mesh where spacing is not constant.
nx | x points number |
ny | y points number |
xvec(nx) | x coordinates |
yvec(ny) | y coordiantes |
array(nx,ny) | data |
array_name | field name |
iplot | plot counter |
error | error code |
Definition at line 367 of file sll_m_gnuplot.F90.
|
private |
This subroutine write a data file to plot a 1d curve.
y_array | Y data | |
x_array | X data | |
array_name | field name | |
iplot | Plot index | |
[in] | y_array | Y data |
[in] | x_array | X data |
[in] | array_name | field name |
[in] | iplot | Plot index |
Definition at line 191 of file sll_m_gnuplot.F90.
|
private |
Write two arrays to display with gnuplot.
[in] | array_name | field name |
[in] | array1 | data |
[in] | array2 | data |
[in] | iplot | plot counter |
Definition at line 126 of file sll_m_gnuplot.F90.
subroutine, public sll_m_gnuplot::sll_s_gnuplot_write | ( | real(kind=f64), dimension(:), intent(in) | array, |
character(len=*), intent(in) | array_name, | ||
integer(kind=i32), intent(in) | iplot | ||
) |
Write an array to display with gnuplot.
[in] | array | data |
[in] | array_name | field name |
[in] | iplot | plot counter |
Definition at line 68 of file sll_m_gnuplot.F90.
|
private |
Write a field on unstructures mesh of triangles.
[in] | field_at_nodes | field value on nodes |
[in] | field_name | field name use as prefix for file name |
[in] | coord | coordinates of nodes |
[in] | nodes | mesh connections |
[in] | plot_number | plot counter used for file name |
Definition at line 563 of file sll_m_gnuplot.F90.