slices

Module

Description

$Id$

This module produces slices for animation purposes.

Quick access

Variables:

nvid, slice_r, slice_xy, slice_xy2, slice_xy3, slice_xy4, slice_xz, slice_xz2, slice_yz, tslice, tvid

Routines:

setup_slices(), wslice(), wvid(), wvid_prepare()

Needed modules

Variables

  • slices/nvid [integer,public]
  • slices/slice_r (*,*) [real,private/allocatable/target]
  • slices/slice_xy (*,*) [real,private/allocatable/target]
  • slices/slice_xy2 (*,*) [real,private/allocatable/target]
  • slices/slice_xy3 (*,*) [real,private/allocatable/target]
  • slices/slice_xy4 (*,*) [real,private/allocatable/target]
  • slices/slice_xz (*,*) [real,private/allocatable/target]
  • slices/slice_xz2 (*,*) [real,private/allocatable/target]
  • slices/slice_yz (*,*) [real,private/allocatable/target]
  • slices/tvid [real,public]

Subroutines and functions

subroutine  slices/wvid_prepare()

Prepare lvideo for writing slices into video file This is useful for visualization of scalar field (or one component of a vector field) on the periphery of a box. Can be visualized in idl using rvid_box.pro

20-oct-97/axel: coded 08-oct-02/tony: increased size of file to handle datadir//’/tvid.dat’ 13-nov-02/axel: added more fields 18-mar-03/axel: added dust velocity

Called from:

helper_loop(), reload(), gen_output(), timeloop(), start

Call to:

read_snaptime(), fatal_error(), update_snaptime(), mpiwtime(), get_slices_chemistry(), get_slices_chiral(), get_slices_cosmicray(), get_slices_density(), get_slices_pressure(), get_slices_dustdensity(), get_slices_dustvelocity(), get_slices_energy(), get_slices_eos(), get_slices_heatflux(), get_slices_hydro(), get_slices_interstellar(), get_slices_magnetic(), get_slices_particles(), get_slices_pscalar(), get_slices_radiation(), get_slices_shock(), get_slices_special(), get_slices_testfield(), get_slices_testflow(), get_slices_testscalar(), get_slices_training(), output_slice(), warning(), xlocation(), zlocation(), position(), not_implemented(), prep_rslice(), set_rslice_communicator(), output_slice_position()

subroutine  slices/wvid(f)

Write slices for animation of scalar field (or one component of a vector field) on the perifery of a box. Can be visualized in idl using rvid_box.pro.

13-nov-02/axel: added more fields 22-sep-07/axel: changed Xy to xy2, to be compatible with Mac 28-oct-18/PABourdin: moved output to IO modules ‘output_slice’

Parameters:

f (,,*,*) [real,in,contiguous]

Use :

general (itoa()), io (output_slice()), slices_methods (assign_slices_scal()), chemistry (get_slices_chemistry()), chiral (get_slices_chiral()), cosmicray (get_slices_cosmicray()), density (get_slices_density(), get_slices_pressure()), dustdensity (get_slices_dustdensity()), dustvelocity (get_slices_dustvelocity()), equationofstate (get_slices_eos()), energy (get_slices_energy()), heatflux (get_slices_heatflux()), hydro (get_slices_hydro()), interstellar (get_slices_interstellar()), magnetic (get_slices_magnetic()), particles_main (get_slices_particles()), pscalar (get_slices_pscalar()), radiation (get_slices_radiation()), shock (get_slices_shock()), special (get_slices_special()), testfield (get_slices_testfield()), testflow (get_slices_testflow()), testscalar (get_slices_testscalar()), training (get_slices_training()), mpicomm (mpiwtime())

Called from:

pde(), write_diagnostics(), start

Call to:

mpiwtime(), get_slices_chemistry(), get_slices_chiral(), get_slices_cosmicray(), get_slices_density(), get_slices_pressure(), get_slices_dustdensity(), get_slices_dustvelocity(), get_slices_energy(), get_slices_eos(), get_slices_heatflux(), get_slices_hydro(), get_slices_interstellar(), get_slices_magnetic(), get_slices_particles(), get_slices_pscalar(), get_slices_radiation(), get_slices_shock(), get_slices_special(), get_slices_testfield(), get_slices_testflow(), get_slices_testscalar(), get_slices_training(), output_slice(), warning(), xlocation(), zlocation(), fatal_error(), position(), not_implemented(), prep_rslice(), set_rslice_communicator(), output_slice_position()

subroutine  slices/setup_slices()

Determine slice positions and whether slices are to be written on this processor.

29-may-06/tobi: wrapped code from param_io.f90 into this subroutine 21-apr-15/MR: corrected i[xyz]_loc determination, see subroutine position

set slice position. The default for slice_position is ‘p’ for periphery, although setting ix, iy, iz, iz2 by hand will overwrite this. If slice_position is not ‘p’, then ix, iy, iz, iz2 are overwritten.

Use :

slices_methods (alloc_slice_buffers(), alloc_rslice(), prep_rslice()), general (itoa()), io (output_slice_position()), mpicomm (set_rslice_communicator())

Called from:

helper_loop(), reload(), gen_output(), timeloop(), check_tspec_crit_log_interval(), check_tsnap_crit_log_interval(), check_tvid_crit_log_interval(), setup_signal_files(), print_metrics(), run_start(), start

Call to:

warning(), xlocation(), zlocation(), fatal_error(), position(), not_implemented(), prep_rslice(), set_rslice_communicator(), output_slice_position()