Report Typos and Errors    
Semi-Lagrangian Library
Modular library for kinetic and gyrokinetic simulations of plasmas in fusion energy devices.
Derived types and interfaces | Functions/Subroutines
sll_m_gnuplot Module Reference

Description

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...
 

Function/Subroutine Documentation

◆ sll_gnuplot_corect_2d()

subroutine sll_m_gnuplot::sll_gnuplot_corect_2d ( real(kind=f64), intent(in)  xmin,
real(kind=f64), intent(in)  xmax,
integer(kind=i32), intent(in)  nx,
real(kind=f64), intent(in)  ymin,
real(kind=f64), intent(in)  ymax,
integer(kind=i32), intent(in)  ny,
real(kind=f64), dimension(:, :), intent(in)  array,
character(len=*), intent(in)  array_name,
integer(kind=i32), intent(in)  iplot,
integer(kind=i32), intent(out)  error 
)
private

Write a data file plotable by gnuplot to visualize a 2d field.

Axis are rectangular and spacing is constant

Parameters
xminBox corners
xmaxBox corners
yminBox corners
ymaxBox corners
nxx points number
nyy points number
array(,:)data
array_namefield name
iplotplot counter
errorerror code

Definition at line 280 of file sll_m_gnuplot.F90.

◆ sll_gnuplot_curv_2d()

subroutine sll_m_gnuplot::sll_gnuplot_curv_2d ( integer(kind=i32), intent(in)  nx,
integer(kind=i32), intent(in)  ny,
real(kind=f64), dimension(nx, ny), intent(in)  x,
real(kind=f64), dimension(nx, ny), intent(in)  y,
real(kind=f64), dimension(nx, ny), intent(in)  array,
character(len=*), intent(in)  array_name,
integer(kind=i32), intent(in)  iplot,
integer(kind=i32), intent(out)  error 
)
private

write a data file plotable by gnuplot.

We visualize a 2d field on structured curvilinear mesh

Parameters
nyy points number
x(nx,ny)x coordinates
y(nx,ny)y coordiantes
array(nx,ny)data
array_namefield name
iplotplot counter
errorerror code

Definition at line 493 of file sll_m_gnuplot.F90.

◆ sll_gnuplot_mesh_2d()

subroutine sll_m_gnuplot::sll_gnuplot_mesh_2d ( integer(kind=i32), intent(in)  nx,
integer(kind=i32), intent(in)  ny,
real(kind=f64), dimension(nx, ny), intent(in)  xcoord,
real(kind=f64), dimension(nx, ny), intent(in)  ycoord,
character(len=*), intent(in)  array_name,
integer(kind=i32), intent(out)  error 
)
private

Write a data file plotable by gnuplot to visualize a 2d curvilinear mesh.

Parameters
nxx points number
nyy points number
xcoordx coordinates
ycoordy coordiantes
array_namefield name
errorerror code
[in]nxx points number
[in]nyy points number
[in]xcoordx coordinates
[in]ycoordy coordiantes
[in]array_namefield name
[out]errorerror code

Definition at line 438 of file sll_m_gnuplot.F90.

◆ sll_gnuplot_rect_2d()

subroutine sll_m_gnuplot::sll_gnuplot_rect_2d ( integer(kind=i32), intent(in)  nx,
real(kind=f64), dimension(nx), intent(in)  xvec,
integer(kind=i32), intent(in)  ny,
real(kind=f64), dimension(ny), intent(in)  yvec,
real(kind=f64), dimension(nx, ny), intent(in)  array,
character(len=*), intent(in)  array_name,
integer(kind=i32), intent(in)  iplot,
integer(kind=i32), intent(out)  error 
)
private

Write a data file plotable by gnuplot to visualize a 2d field on structured rectangular mesh where spacing is not constant.

Parameters
nxx points number
nyy points number
xvec(nx)x coordinates
yvec(ny)y coordiantes
array(nx,ny)data
array_namefield name
iplotplot counter
errorerror code

Definition at line 367 of file sll_m_gnuplot.F90.

◆ sll_gnuplot_write_1d()

subroutine sll_m_gnuplot::sll_gnuplot_write_1d ( real(kind=f64), dimension(:), intent(in)  y_array,
real(kind=f64), dimension(:), intent(in)  x_array,
character(len=*), intent(in)  array_name,
integer(kind=i32), intent(in), optional  iplot 
)
private

This subroutine write a data file to plot a 1d curve.

Parameters
y_arrayY data
x_arrayX data
array_namefield name
iplotPlot index
[in]y_arrayY data
[in]x_arrayX data
[in]array_namefield name
[in]iplotPlot index

Definition at line 191 of file sll_m_gnuplot.F90.

◆ sll_gnuplot_write_two_arrays_1d()

subroutine sll_m_gnuplot::sll_gnuplot_write_two_arrays_1d ( character(len=*), intent(in)  array_name,
real(kind=f64), dimension(:), intent(in)  array1,
real(kind=f64), dimension(:), intent(in)  array2,
integer(kind=i32), intent(in)  iplot 
)
private

Write two arrays to display with gnuplot.

Parameters
[in]array_namefield name
[in]array1data
[in]array2data
[in]iplotplot counter

Definition at line 126 of file sll_m_gnuplot.F90.

◆ sll_s_gnuplot_write()

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.

Parameters
[in]arraydata
[in]array_namefield name
[in]iplotplot counter

Definition at line 68 of file sll_m_gnuplot.F90.

Here is the caller graph for this function:

◆ write_unstructured_field()

subroutine sll_m_gnuplot::write_unstructured_field ( real(kind=f64), dimension(:), intent(in)  field_at_node,
character(len=*), intent(in)  field_name,
real(kind=f64), dimension(:, :), intent(in)  coord,
integer(kind=i32), dimension(:, :), intent(in)  nodes,
integer(kind=i32), intent(in)  plot_number 
)
private

Write a field on unstructures mesh of triangles.

Parameters
[in]field_at_nodesfield value on nodes
[in]field_namefield name use as prefix for file name
[in]coordcoordinates of nodes
[in]nodesmesh connections
[in]plot_numberplot counter used for file name

Definition at line 563 of file sll_m_gnuplot.F90.

    Report Typos and Errors