Skip to content

Commit de16b76

Browse files
author
meihuisu
committed
update doc
1 parent 6b83991 commit de16b76

File tree

3 files changed

+74
-22
lines changed

3 files changed

+74
-22
lines changed

src/ucvm2mesh/NOTE

Lines changed: 68 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,94 @@
1-
2-
ucvm2mesh directory :
1+
ucvm2mesh and friends
2+
---------------------
33

44
grid4corners.c
5-
grid4corners ingrid nx ny
6-
--> takes a regular mesh (ucvm_point_t from ucvm2mesh)
7-
// first one
8-
// x-1
9-
// num_grid - x
10-
// num_grid - 1
5+
--> takes ucvm2mesh's grid (ucvm_point_t from ucvm2mesh)
6+
output coord of,
7+
first one
8+
x-1
9+
num_grid - x
10+
num_grid - 1
11+
USAGE: grid4corners ingrid nx ny
12+
( from here, we will know if mesh is iterating in fast-x/fast-y and
13+
also where is the origin )
1114

1215
latlon2utm.c
1316
"+proj=utm +ellps=clrk66 +zone=%d +datum=NAD27 +units=m +no_defs"
1417
zone is 10 or 11
1518
proj_create_crs_to_crs, EPSG:4326
16-
17-
latlon2utm zone < data_file
18-
data_file
19+
USAGE: latlon2utm zone < data_file
20+
data_file format,
1921
0 lon lat
2022
1 utm_e utm_n
2123

2224
mesh2csv.c
23-
24-
mesh2hdf5.c
25+
--> takes ucvm2mesh's output files
26+
USAGE: mesh2csv inmesh ingrid format spacing nx ny nz outfile
27+
input mesh file, local defined struct that holds vs/vp/rho and maybe more
28+
input grid file, ucvm_point_t containing coord[3]
29+
format of file, IJK-12, IJK-20, IJK-32, or SORD
30+
spacing, mesh spacing
31+
mesh dimensions, nx,ny,nz
32+
output csv file
33+
34+
mesh2hdf5.c
2535
mesh2hdf5.conf
26-
mesh2hdf5-save.c
36+
TO_DO
37+
--> takes ucvm2mesh's output files and create hdf5 output file
38+
USAGE: -f ucvm2mesh.conf -m mesh2hdf5.conf
2739

2840
mesh2netcdf.c
41+
--> takes ucvm2mesh's output files (like mesh2csv.c)
42+
generate a simple netcdf with 3 blocks of data
43+
USAGE: mesh2netcdf inmesh ingrid format spacing nx ny nz outfile
44+
45+
mesh_check.c (um_mesh.h)
46+
--> check mesh 'float' content (max node 10000)
47+
USAGE: mesh_check inmesh format
48+
format, IJK-12, IJK-20, IJK-32
2949

30-
mesh_check.c
3150
mesh_op.c
51+
--> perform 'OP' on 2 meshes and write out a new mesh
52+
USAGE: mesh_op op immesh1 inmesh2 format outmesh
53+
op, diff(subtract)
54+
format, IJK-12, IJK-20, IJK-32
3255

33-
mesh_strip_ijk.c
3456

35-
mesh_translate.c
57+
mesh_strip_ijk.c
58+
--> Strip fields from existing AWP-20, AWP-32 mesh (max node 10000)
59+
rewrite into a mesh file with IJK-12 format
60+
USAGE: mesh_strip_ijk inmesh format outmesh
61+
format, IJK-20, IJK-32
62+
63+
mesh_translate.c (ucvm/uvm_grid.c)
64+
--> Perform origin translate operation on a ucvm2mesh mesh (max node 10000)
65+
north-west corner to south-west corner with seek-type(fast-Y)
66+
inmesh and outmesh would have same seek-type
67+
USAGE: mesh_translate type seek-type nx ny n mesh
68+
type, 0(material properties), 1(double)
69+
seek-type, 0(fast-Y), 1(fast-X)
3670

37-
ucvm2mesh.c
3871
ucvm2mesh.conf
72+
ucvm2mesh.c
73+
--> Create a mesh making ucvm_query call. Origin is at north-west and fast-Y
74+
use ucvm/ucvm_grid_gen_file to create 'grid file'
75+
pickup grid points from the 'grid file' and extract the mesh data
76+
USAGE: ucvm2mesh -f configfile
3977

4078
ucvm2mesh_mpi.c
79+
USAGE: ucvm2mesh_mpi -f configfile
80+
4181
ucvm2mesh_mpi_layer.c
82+
--> in config file, px * py * pz = total rank process unit(mpi sense)
83+
px * py = set of ranks clustered as a layer
84+
pz = number of layers defined on the mesh
85+
USAGE: ucvm2mesh_mpi_layer -f configfile -l layer -c count
86+
layer, which layer to start processing
87+
count, how many rank layer to process
88+
89+
90+
utilities routines
91+
------------------
4292

4393
um_config.c
4494
um_config.h

src/ucvm2mesh/mesh_check.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
2-
* mesh_strip_ijk.c - Strip fields from existing mesh
2+
* mesh_check.c
3+
* based on mesh_strip_ijk.c - Strip fields from existing mesh
34
*
45
* Based on code written by Ricardo Taborda
56
* <[email protected]> and Tiankai Tu

src/ucvm2mesh/mesh_translate.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
2-
* mesh_translate.c - Perform origin tranlate operation on a mesh,
3-
* north-west to south-west
4-
* fast-Y
2+
* mesh_translate.c -
3+
* Perform origin translate operation on a mesh,
4+
* from north-west corner to south-west corner
5+
* fast-Y
56
*/
67

78
#include <stdio.h>

0 commit comments

Comments
 (0)