All Classes Files Functions Variables Pages
mod_snapshot_surface Module Reference

This module contains subroutines to compute and write snapshots of the free surface (either in GMT or VTK xml formats).

Public Member Functions

subroutine, public init_snapshot_surface ()
 This subroutine generates a structured grid of receivers on the free surface. More...
 
subroutine, public write_snapshot_surface ()
 This subroutine computes and writes \(x,y,z\)-displacements, velocities and accelerations at receivers used for free surface snapshots. More...
 
subroutine, public write_collection_vtk_surf ()
 This subroutine selects which ParaView collection files should be written (displacement, velocity and/or acceleration collections) depending on value of variables mod_global_variables::lg_snapshot_displacement, mod_global_variables::lg_snapshot_velocity and mod_global_variables::lg_snapshot_acceleration.
 
subroutine, public write_peak_ground_motion ()
 This subroutine writes peak ground motions files in GMT or VTK formats.
 

Private Member Functions

subroutine, private write_snapshot_gmt_nat_fmt (fname, val)
 This subroutine writes structured grid snapshot in binary native GMT format. More...
 
subroutine, private write_header_gmt_nat_fmt (desc, nx, ny, x_min, x_max, y_min, y_max, z_min, z_max, x_inc, y_inc)
 This subroutine writes header of binary native GMT files. More...
 
subroutine, private write_snapshot_vtk (fname, varname, valx, valy, valz)
 This subroutine writes structured grid snapshot in binary VTK xml format. More...
 
subroutine, private collection_vtk_surface (varname)
 This subroutine write Paraview collection file *.pvd of VTK xml snapshot files *.vts. More...
 

Detailed Description

Definition at line 126 of file module_snapshot_surface.f90.

Member Function/Subroutine Documentation

subroutine, private mod_snapshot_surface::collection_vtk_surface ( character(len=*), intent(in)  varname)
private
Parameters
varname: variable name

Definition at line 1320 of file module_snapshot_surface.f90.

Referenced by write_collection_vtk_surf().

subroutine, public mod_snapshot_surface::init_snapshot_surface ( )
Returns
mod_global_variables::tg_receiver_snapshot_quad : information about receivers' used for snapshots in cpu myrank. See mod_global_variables::type_receiver_quad
mod_global_variables::rg_receiver_snapshot_z : \(z\)-coordinate of receivers' used for snapshots

Definition at line 150 of file module_snapshot_surface.f90.

References mod_receiver::compute_info_quad_receiver(), and mod_receiver::is_inside_quad().

Referenced by efispec3d().

Here is the call graph for this function:

subroutine, private mod_snapshot_surface::write_header_gmt_nat_fmt ( integer, intent(in)  desc,
integer, intent(in)  nx,
integer, intent(in)  ny,
real, intent(in)  x_min,
real, intent(in)  x_max,
real, intent(in)  y_min,
real, intent(in)  y_max,
real, intent(in)  z_min,
real, intent(in)  z_max,
real, intent(in)  x_inc,
real, intent(in)  y_inc 
)
private
Parameters
desc: mpi_unit of the file
nx: number of receivers along \(x\)-direction
ny: number of receivers along \(y\)-direction
x_min: minimum \(x\)-coordinate
x_max: maximum \(x\)-coordinate
y_min: minimum \(y\)-coordinate
y_max: maximum \(y\)-coordinate
z_min: minimum \(z\)-coordinate
z_max: maximum \(z\)-coordinate
x_inc: \(x\)-increment between receivers
y_inc: \(y\)-increment between receivers

Definition at line 905 of file module_snapshot_surface.f90.

Referenced by write_snapshot_gmt_nat_fmt().

subroutine, private mod_snapshot_surface::write_snapshot_gmt_nat_fmt ( character(len=255), intent(in)  fname,
real, dimension(ig_nreceiver_snapshot), intent(in)  val 
)
private
Parameters
fname: file name of the snapshot
val: values to be written

Definition at line 769 of file module_snapshot_surface.f90.

References write_header_gmt_nat_fmt().

Referenced by write_peak_ground_motion(), and write_snapshot_surface().

Here is the call graph for this function:

subroutine, public mod_snapshot_surface::write_snapshot_surface ( )
Returns
Snapshots are written in binary native GMT format and/or in binary VTK xml format.

Definition at line 579 of file module_snapshot_surface.f90.

References mod_gll_value::get_quad_gll_value(), mod_lagrange::quad_lagrange_interp(), write_snapshot_gmt_nat_fmt(), and write_snapshot_vtk().

Referenced by efispec3d().

Here is the call graph for this function:

subroutine, private mod_snapshot_surface::write_snapshot_vtk ( character(len=255), intent(in)  fname,
character(len= 4), intent(in)  varname,
real, dimension(ig_nreceiver_snapshot), intent(in)  valx,
real, dimension(ig_nreceiver_snapshot), intent(in)  valy,
real, dimension(ig_nreceiver_snapshot), intent(in)  valz 
)
private
Parameters
fname: file name of the snapshot
varname: variable name
valx: \(x\)-direction values
valy: \(y\)-direction values
valz: \(z\)-direction values

Definition at line 1024 of file module_snapshot_surface.f90.

References mod_vtk_io::vtk_dat_xml(), mod_vtk_io::vtk_end_xml(), and mod_vtk_io::vtk_ini_xml().

Referenced by write_peak_ground_motion(), and write_snapshot_surface().

Here is the call graph for this function:


The documentation for this module was generated from the following file: