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_pic_visu Module Reference

Description

This module provides some routines for plotting during PIC simulations.

Derived types and interfaces

interface  sll_o_particles_center_gnuplot
 plot particles centers with gnuplot More...
 
interface  sll_o_distribution_gnuplot
 plot particles distribution with gnuplot More...
 
interface  sll_o_plot_format_points3d
 write point3d file to plot particles characteristics More...
 

Functions/Subroutines

subroutine xv_particles_center_gnuplot (plot_name, x, v, xmin, xmax, vmin, vmax, iplot, time)
 To plot particles run : gnuplot -persitant plot_name.gnu. More...
 
subroutine compute_df (df, x, v, xmin, xmax, nx, vmin, vmax, nv)
 
subroutine distribution_xv_gnuplot (plot_name, x, v, xmin, xmax, nx, vmin, vmax, nv, iplot, time)
 
subroutine, public sll_s_particles_center_gnuplot_inline (x, v, xmin, xmax, ymin, ymax, time)
 Call this function inline with | gnuplot. More...
 
subroutine pq_plot_format_points3d (plot_name, x, v, iplot)
 point3D format http://www.visitusers.org/index.php?title=Reading_point_data This format is designed to plot x,y,z particles with one weight (only for characteristics) This format is readable by VisIt More...
 
subroutine pqr_plot_format_points3d (plot_name, x, y, z, iplot)
 point3D format http://www.visitusers.org/index.php?title=Reading_point_data This format is designed to plot x,y,z particles This format is readable by VisIt More...
 
subroutine pqrs_plot_format_points3d (plot_name, p, q, r, s, iplot)
 point3D format http://www.visitusers.org/index.php?title=Reading_point_data This format is designed to plot x,y,z particles with one weight (only four characteristics) This format is readable by VisIt More...
 
subroutine, public sll_s_plot_format_xmdv (plot_name, x, v, iplot, xmin, xmax, vmin, vmax)
 xmdv format http://davis.wpi.edu/xmdv/fileformats.html This format is designed for particles with a lot of characteristics. We have to give max and min values. This format is readable by VisIt More...
 
subroutine, public sll_s_distribution_xdmf (plot_name, x, v, w, xmin, xmax, nx, vmin, vmax, nv, iplot)
 VisIt readable output for particles density Data file format could be XML, HDF5 or Binary (not fully implemented yet) More...
 
subroutine compute_df_ngp (xp, yp, wp, xmin, xmax, nx, ymin, ymax, ny, df)
 Compute grid field from particles distribution with the NGP scheme (Nearest Grid Point) More...
 
subroutine, public sll_s_compute_df_cic (xp, yp, wp, xmin, xmax, nx, ymin, ymax, ny, df)
 Compute grid field from particles distribution with the CIC scheme (Cloud In. More...
 
subroutine compute_df_m4 (xp, yp, wp, xmin, xmax, nx, ymin, ymax, ny, df)
 
real(kind=f64) function f_m4 (x)
 M4 function from Monhagan (SPH method) More...
 
subroutine, public sll_s_distribution_m4_gnuplot (plot_name, x, v, w, xmin, xmax, nx, vmin, vmax, nv, iplot)
 GNUplot readable output for particles density. More...
 
subroutine compute_df_tsc (xp, yp, wp, xmin, xmax, nx, ymin, ymax, ny, df)
 
subroutine, public sll_s_distribution_tsc_gnuplot (plot_name, x, v, w, xmin, xmax, nx, vmin, vmax, nv, iplot)
 GNUplot readable output for particles density. More...
 
subroutine, public sll_s_energies_electrostatic_gnuplot_inline (kinetic_energy, electrostatic_energy, impulse, timestepwidth)
 Call this function inline with | gnuplot Plots different energies for Electrostatic Particle-in-Cell Pseudo/Virtual file plot in gnuplot using plot "-". More...
 
subroutine, public sll_s_electricpotential_gnuplot_inline (values, eval_knots)
 Call this function inline with | gnuplot Plots different energies for Electrostatic Particle-in-Cell Pseudo/Virtual file plot in gnuplot using plot "-". More...
 

Function/Subroutine Documentation

◆ compute_df()

subroutine sll_m_pic_visu::compute_df ( real(kind=f64), dimension(nx, nv)  df,
real(kind=f64), dimension(:), intent(in)  x,
real(kind=f64), dimension(:), intent(in)  v,
real(kind=f64)  xmin,
real(kind=f64)  xmax,
integer(kind=i32), intent(in)  nx,
real(kind=f64)  vmin,
real(kind=f64)  vmax,
integer(kind=i32), intent(in)  nv 
)
private

Definition at line 122 of file sll_m_pic_visu.F90.

Here is the caller graph for this function:

◆ compute_df_m4()

subroutine sll_m_pic_visu::compute_df_m4 ( real(kind=f64), dimension(:), intent(in)  xp,
real(kind=f64), dimension(:), intent(in)  yp,
real(kind=f64), dimension(:), intent(in)  wp,
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(nx, ny), intent(out)  df 
)
private

Definition at line 434 of file sll_m_pic_visu.F90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compute_df_ngp()

subroutine sll_m_pic_visu::compute_df_ngp ( real(kind=f64), dimension(:), intent(in)  xp,
real(kind=f64), dimension(:), intent(in)  yp,
real(kind=f64), dimension(:), intent(in)  wp,
real(kind=f64), intent(in)  xmin,
real(kind=f64), intent(in)  xmax,
integer(kind=i32)  nx,
real(kind=f64), intent(in)  ymin,
real(kind=f64), intent(in)  ymax,
integer(kind=i32)  ny,
real(kind=f64), dimension(nx, ny), intent(out)  df 
)
private

Compute grid field from particles distribution with the NGP scheme (Nearest Grid Point)

Definition at line 351 of file sll_m_pic_visu.F90.

◆ compute_df_tsc()

subroutine sll_m_pic_visu::compute_df_tsc ( real(kind=f64), dimension(:), intent(in)  xp,
real(kind=f64), dimension(:), intent(in)  yp,
real(kind=f64), dimension(:), intent(in)  wp,
real(kind=f64), intent(in)  xmin,
real(kind=f64), intent(in)  xmax,
integer(kind=i32)  nx,
real(kind=f64), intent(in)  ymin,
real(kind=f64), intent(in)  ymax,
integer(kind=i32)  ny,
real(kind=f64), dimension(nx, ny), intent(out)  df 
)
private

Definition at line 567 of file sll_m_pic_visu.F90.

Here is the caller graph for this function:

◆ distribution_xv_gnuplot()

subroutine sll_m_pic_visu::distribution_xv_gnuplot ( character(len=*), intent(in)  plot_name,
real(kind=f64), dimension(:), intent(in)  x,
real(kind=f64), dimension(:), intent(in)  v,
real(kind=f64)  xmin,
real(kind=f64)  xmax,
integer(kind=i32), intent(in)  nx,
real(kind=f64)  vmin,
real(kind=f64)  vmax,
integer(kind=i32), intent(in)  nv,
integer(kind=i32)  iplot,
real(kind=f64)  time 
)
private

Definition at line 145 of file sll_m_pic_visu.F90.

◆ f_m4()

real(kind=f64) function sll_m_pic_visu::f_m4 ( real(kind=f64), intent(in)  x)
private

M4 function from Monhagan (SPH method)

Definition at line 514 of file sll_m_pic_visu.F90.

Here is the caller graph for this function:

◆ pq_plot_format_points3d()

subroutine sll_m_pic_visu::pq_plot_format_points3d ( character(len=*), intent(in)  plot_name,
real(kind=f64), dimension(:), intent(in)  x,
real(kind=f64), dimension(:), intent(in)  v,
integer(kind=i32), intent(in)  iplot 
)
private

point3D format http://www.visitusers.org/index.php?title=Reading_point_data This format is designed to plot x,y,z particles with one weight (only for characteristics) This format is readable by VisIt

Definition at line 210 of file sll_m_pic_visu.F90.

◆ pqr_plot_format_points3d()

subroutine sll_m_pic_visu::pqr_plot_format_points3d ( character(len=*), intent(in)  plot_name,
real(kind=f64), dimension(:), intent(in)  x,
real(kind=f64), dimension(:), intent(in)  y,
real(kind=f64), dimension(:), intent(in)  z,
integer(kind=i32), intent(in)  iplot 
)
private

point3D format http://www.visitusers.org/index.php?title=Reading_point_data This format is designed to plot x,y,z particles This format is readable by VisIt

Definition at line 235 of file sll_m_pic_visu.F90.

◆ pqrs_plot_format_points3d()

subroutine sll_m_pic_visu::pqrs_plot_format_points3d ( character(len=*), intent(in)  plot_name,
real(kind=f64), dimension(:), intent(in)  p,
real(kind=f64), dimension(:), intent(in)  q,
real(kind=f64), dimension(:), intent(in)  r,
real(kind=f64), dimension(:), intent(in)  s,
integer(kind=i32), intent(in)  iplot 
)
private

point3D format http://www.visitusers.org/index.php?title=Reading_point_data This format is designed to plot x,y,z particles with one weight (only four characteristics) This format is readable by VisIt

Definition at line 262 of file sll_m_pic_visu.F90.

◆ sll_s_compute_df_cic()

subroutine, public sll_m_pic_visu::sll_s_compute_df_cic ( real(kind=f64), dimension(:), intent(in)  xp,
real(kind=f64), dimension(:), intent(in)  yp,
real(kind=f64), dimension(:), intent(in)  wp,
real(kind=f64), intent(in)  xmin,
real(kind=f64), intent(in)  xmax,
integer(kind=i32)  nx,
real(kind=f64), intent(in)  ymin,
real(kind=f64), intent(in)  ymax,
integer(kind=i32)  ny,
real(kind=f64), dimension(nx, ny), intent(out)  df 
)

Compute grid field from particles distribution with the CIC scheme (Cloud In.

Definition at line 383 of file sll_m_pic_visu.F90.

Here is the caller graph for this function:

◆ sll_s_distribution_m4_gnuplot()

subroutine, public sll_m_pic_visu::sll_s_distribution_m4_gnuplot ( character(len=*), intent(in)  plot_name,
real(kind=f64), dimension(:), intent(in)  x,
real(kind=f64), dimension(:), intent(in)  v,
real(kind=f64), dimension(:), intent(in)  w,
real(kind=f64), intent(in)  xmin,
real(kind=f64), intent(in)  xmax,
integer(kind=i32), intent(in)  nx,
real(kind=f64), intent(in)  vmin,
real(kind=f64), intent(in)  vmax,
integer(kind=i32), intent(in)  nv,
integer(kind=i32), intent(in)  iplot 
)

GNUplot readable output for particles density.

Definition at line 528 of file sll_m_pic_visu.F90.

Here is the call graph for this function:

◆ sll_s_distribution_tsc_gnuplot()

subroutine, public sll_m_pic_visu::sll_s_distribution_tsc_gnuplot ( character(len=*), intent(in)  plot_name,
real(kind=f64), dimension(:), intent(in)  x,
real(kind=f64), dimension(:), intent(in)  v,
real(kind=f64), dimension(:), intent(in)  w,
real(kind=f64)  xmin,
real(kind=f64)  xmax,
integer(kind=i32), intent(in)  nx,
real(kind=f64)  vmin,
real(kind=f64)  vmax,
integer(kind=i32), intent(in)  nv,
integer(kind=i32)  iplot 
)

GNUplot readable output for particles density.

Definition at line 611 of file sll_m_pic_visu.F90.

Here is the call graph for this function:

◆ sll_s_distribution_xdmf()

subroutine, public sll_m_pic_visu::sll_s_distribution_xdmf ( character(len=*), intent(in)  plot_name,
real(kind=f64), dimension(:), intent(in)  x,
real(kind=f64), dimension(:), intent(in)  v,
real(kind=f64), dimension(:), intent(in)  w,
real(kind=f64)  xmin,
real(kind=f64)  xmax,
integer(kind=i32), intent(in)  nx,
real(kind=f64)  vmin,
real(kind=f64)  vmax,
integer(kind=i32), intent(in)  nv,
integer(kind=i32)  iplot 
)

VisIt readable output for particles density Data file format could be XML, HDF5 or Binary (not fully implemented yet)

Definition at line 326 of file sll_m_pic_visu.F90.

Here is the call graph for this function:

◆ sll_s_electricpotential_gnuplot_inline()

subroutine, public sll_m_pic_visu::sll_s_electricpotential_gnuplot_inline ( real(kind=f64), dimension(:), intent(in)  values,
real(kind=f64), dimension(:), intent(in)  eval_knots 
)

Call this function inline with | gnuplot Plots different energies for Electrostatic Particle-in-Cell Pseudo/Virtual file plot in gnuplot using plot "-".

Definition at line 723 of file sll_m_pic_visu.F90.

◆ sll_s_energies_electrostatic_gnuplot_inline()

subroutine, public sll_m_pic_visu::sll_s_energies_electrostatic_gnuplot_inline ( real(kind=f64), dimension(:), intent(in)  kinetic_energy,
real(kind=f64), dimension(:), intent(in)  electrostatic_energy,
real(kind=f64), dimension(:), intent(in)  impulse,
real(kind=f64), intent(in)  timestepwidth 
)

Call this function inline with | gnuplot Plots different energies for Electrostatic Particle-in-Cell Pseudo/Virtual file plot in gnuplot using plot "-".

Definition at line 638 of file sll_m_pic_visu.F90.

◆ sll_s_particles_center_gnuplot_inline()

subroutine, public sll_m_pic_visu::sll_s_particles_center_gnuplot_inline ( real(kind=f64), dimension(:), intent(in)  x,
real(kind=f64), dimension(:), intent(in)  v,
real(kind=f64)  xmin,
real(kind=f64)  xmax,
real(kind=f64)  ymin,
real(kind=f64)  ymax,
real(kind=f64), intent(in)  time 
)

Call this function inline with | gnuplot.

Definition at line 183 of file sll_m_pic_visu.F90.

◆ sll_s_plot_format_xmdv()

subroutine, public sll_m_pic_visu::sll_s_plot_format_xmdv ( character(len=*), intent(in)  plot_name,
real(kind=f64), dimension(:), intent(in)  x,
real(kind=f64), dimension(:), intent(in)  v,
integer(kind=i32), intent(in)  iplot,
real(kind=f64)  xmin,
real(kind=f64)  xmax,
real(kind=f64)  vmin,
real(kind=f64)  vmax 
)

xmdv format http://davis.wpi.edu/xmdv/fileformats.html This format is designed for particles with a lot of characteristics. We have to give max and min values. This format is readable by VisIt

Definition at line 292 of file sll_m_pic_visu.F90.

Here is the call graph for this function:

◆ xv_particles_center_gnuplot()

subroutine sll_m_pic_visu::xv_particles_center_gnuplot ( character(len=*), intent(in)  plot_name,
real(kind=f64), dimension(:), intent(in)  x,
real(kind=f64), dimension(:), intent(in)  v,
real(kind=f64), intent(in)  xmin,
real(kind=f64), intent(in)  xmax,
real(kind=f64), intent(in)  vmin,
real(kind=f64), intent(in)  vmax,
integer(kind=i32), intent(in)  iplot,
real(kind=f64), optional  time 
)
private

To plot particles run : gnuplot -persitant plot_name.gnu.

Definition at line 79 of file sll_m_pic_visu.F90.

    Report Typos and Errors