ESyS-Particle  2.3.4
slip2vtk2d.h File Reference
#include <string>
Include dependency graph for slip2vtk2d.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void slip2vtk2d (const string &, const string &, const string &, int, int, int, double, double, double, int)
 
void slip2vtk2d_rate (const string &, const string &, const string &, int, int, int, double, double, double, int)
 
void slip2vtk2d_rate_rs (const string &, const string &, const string &, const string &, const string &, int, int, int, double, double, double, int)
 
void slip2raw2d_rs (const string &, const string &, const string &, const string &, const string &, int, int, int, double, double, int, int, int)
 
void slip2raw2d (const string &, const string &, const string &, int, int, int, double, double, int)
 
void slip2raw2d_rate_rs (const string &, const string &, const string &, const string &, const string &, int, int, int, double, double, int)
 
void slip_x2slip_t2d (const string &, const string &, const string &, int, int, int, double)
 
void slip2rf (const string &, const string &, const string &, int, int, int, double, double, int, double)
 
void slip2d_total_rs (const string &, const string &, const string &, const string &, const string &, int, int, double, double, int)
 
void vel2rf (const string &, const string &, const string &, int, int, int, int, double, double, int, double, double, int, double)
 
void slip2momrate_rs (const string &, const string &, const string &, const string &, const string &, int, int, int, double, double, int)
 

Function Documentation

◆ slip2d_total_rs()

void slip2d_total_rs ( const string &  infile_up,
const string &  infile_down,
const string &  posfile_up,
const string &  posfile_down,
const string &  outfilename,
int  t0,
int  te,
double  x0,
double  x1,
int  nx 
)

get total slip distribution at time t from posfiles & RAW_SERIES

Parameters
infile_upfile name for displacement data above the fault
infile_downbase file name for displacement data below the fault
posfile_upfile name for position data above the fault
posfile_downbase file name for position data below the fault
outfilenamefile name for the putput file
t0start time
teend time
x0minimum x-value
x1maximum x-value
nxnr. of grid points in x

References get_disp_from_map_linear(), and read_line_to_map().

Referenced by main().

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

◆ slip2momrate_rs()

void slip2momrate_rs ( const string &  infile_up,
const string &  infile_down,
const string &  posfile_up,
const string &  posfile_down,
const string &  outfilename,
int  t0,
int  nt,
int  dt,
double  x0,
double  x1,
int  nx 
)

calculate the moment rate function (actually the potency rate function) from a pair of files containing particle displacements above/below a 1D fault and a pair of files containing the initial particle positions

Parameters
infile_upfile name for displacement data above the fault
infile_downbase file name for displacement data below the fault
posfile_upfile name for position data above the fault
posfile_downbase file name for position data below the fault
outfilenamefile name for the putput file
t0
nt
dt
x0minimum x-value
x1maximum x-value
nxnr. of grid points in x

References get_disp_from_map_linear(), and read_line_to_map().

Referenced by main().

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

◆ slip2raw2d()

void slip2raw2d ( const string &  infilebase_up,
const string &  infilebase_down,
const string &  outfilename,
int  t0,
int  nt,
int  dt,
double  x0,
double  x1,
int  nx 
)

convert a number of file pairs containing particle displacements above/below a 1D fault in a 2D medium to a vtk-file (rect. grid) of the relative displacement

Parameters
infilebase_upbase file name for data above the fault
infilebase_downbase file name for data below the fault
outfilenamefile name for the putput file
t0
nt
dt
x0minimum x-value
x1maximum x-value
nxnr. of grid points in x

References get_disp_from_map_linear(), and read_file_to_map().

Referenced by main().

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

◆ slip2raw2d_rate_rs()

void slip2raw2d_rate_rs ( const string &  infile_up,
const string &  infile_down,
const string &  posfile_up,
const string &  posfile_down,
const string &  outfilename,
int  t0,
int  nt,
int  dt,
double  x0,
double  x1,
int  nx 
)

convert a pair of files containing particle displacements above/below a 1D fault and a pair of files containing the initial particle positions to a raw file (column per data point) of the relative velocity

Parameters
infile_upfile name for displacement data above the fault
infile_downbase file name for displacement data below the fault
posfile_upfile name for position data above the fault
posfile_downbase file name for position data below the fault
outfilenamefile name for the putput file
t0
nt
dt
x0minimum x-value
x1maximum x-value
nxnr. of grid points in x

References get_disp_from_map_linear(), and read_line_to_map().

Referenced by main().

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

◆ slip2raw2d_rs()

void slip2raw2d_rs ( const string &  infile_up,
const string &  infile_down,
const string &  posfile_up,
const string &  posfile_down,
const string &  outfilename,
int  t0,
int  nt,
int  dt,
double  x0,
double  x1,
int  nx,
int  shift,
int  mult 
)

convert a pair of files containing particle displacements above/below a 1D fault and a pair of files containing the initial particle positions to a raw file (column per data point) of the relative displacement

Parameters
infile_upfile name for displacement data above the fault
infile_downbase file name for displacement data below the fault
posfile_upfile name for position data above the fault
posfile_downbase file name for position data below the fault
outfilenamefile name for the putput file
t0
nt
dt
x0minimum x-value
x1maximum x-value
nxnr. of grid points in x
shiftshift output data by given abount (circular)
multinterpolation steps between data points

References get_disp_from_map_linear(), and read_line_to_map().

Referenced by main().

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

◆ slip2rf()

void slip2rf ( const string &  infilebase_up,
const string &  infilebase_down,
const string &  outfilename,
int  t0,
int  nt,
int  dt,
double  x0,
double  x1,
int  nx,
double  thr 
)

get the time for each trace when the displacement first exceeds a given threshold

References get_disp_from_map_linear(), and read_file_to_map().

Referenced by main().

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

◆ slip2vtk2d()

void slip2vtk2d ( const string &  infilebase_up,
const string &  infilebase_down,
const string &  outfilename,
int  t0,
int  nt,
int  dt,
double  tlen,
double  x0,
double  x1,
int  nx 
)

convert a number of file pairs containing particle displacements above/below a 1D fault in a 2D medium to a vtk-file (rect. grid) of the relative displacement

Parameters
infilebase_upbase file name for data above the fault
infilebase_downbase file name for data below the fault
outfilenamefile name for the putput file
t0
nt
dt
tlenlength of the output data in t-direction
x0minimum x-value
x1maximum x-value
nxnr. of grid points in x

References get_disp_from_map_linear(), read_file_to_map(), and write_vtk_header().

Referenced by main().

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

◆ slip2vtk2d_rate()

void slip2vtk2d_rate ( const string &  infilebase_up,
const string &  infilebase_down,
const string &  outfilename,
int  t0,
int  nt,
int  dt,
double  tlen,
double  x0,
double  x1,
int  nx 
)

convert a number of file pairs containing particle displacements above/below a 1D fault in a 2D medium to a vtk-file (rect. grid) of the relative displacement rate

Parameters
infilebase_upbase file name for data above the fault
infilebase_downbase file name for data below the fault
outfilenamefile name for the putput file
t0
nt
dt
tlenlength of the output data in t-direction
x0minimum x-value
x1maximum x-value
nxnr. of grid points in x

References get_disp_from_map_linear(), read_file_to_map(), and write_vtk_header().

Referenced by main().

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

◆ slip2vtk2d_rate_rs()

void slip2vtk2d_rate_rs ( const string &  infile_up,
const string &  infile_down,
const string &  posfile_up,
const string &  posfile_down,
const string &  outfilename,
int  t0,
int  nt,
int  dt,
double  tlen,
double  x0,
double  x1,
int  nx 
)

convert a pair of files containing particle displacements above/below a 1D fault and a pair of files containing the initial particle positions to a vtk-file (rect. grid) of the relative displacement rate

Parameters
infile_upfile name for displacement data above the fault
infile_downbase file name for displacement data below the fault
posfile_upfile name for position data above the fault
posfile_downbase file name for position data below the fault
outfilenamefile name for the putput file
t0
nt
dt
tlenlength of the output data in t-direction
x0minimum x-value
x1maximum x-value
nxnr. of grid points in x

References get_disp_from_map_linear(), read_line_to_map(), and write_vtk_header().

Referenced by main().

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

◆ slip_x2slip_t2d()

void slip_x2slip_t2d ( const string &  infilebase_up,
const string &  infilebase_down,
const string &  outfilename,
int  t0,
int  nt,
int  dt,
double  x0 
)

convert a number of file pairs containing particle displacements above/below a 1D fault in a 2D medium to a file which represents the time evolution of the displacement at a given point along the fault

Parameters
infilebase_upbase file name for data above the fault
infilebase_downbase file name for data below the fault
outfilenamefile name for the putput file
t0
nt
dt
x0location / sample point

References get_disp_from_map_linear(), and read_file_to_map().

Referenced by main().

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

◆ vel2rf()

void vel2rf ( const string &  infilename_up,
const string &  infilename_down,
const string &  outfilename,
int  t0,
int  nt,
int  dt,
int  ofs,
double  x0,
double  x1,
int  nx,
double  px0,
double  px1,
int  npx,
double  thr 
)

get the time for each trace when the displacement first exceeds a given threshold using velocity files as input

References get_disp_from_map_linear(), and read_line_to_map().

Referenced by main().

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