[cig-commits] [commit] devel, master: updated homogeneous_acoustic example, which has identical mesh to homogeneous_halfspace (426e001)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Wed Jun 18 16:54:15 PDT 2014
Repository : https://github.com/geodynamics/specfem3d
On branches: devel,master
Link : https://github.com/geodynamics/specfem3d/compare/6026e367984905ab133865f62fa6293b343759b9...47f703851338234f96397e7da9fbff63d8178b8a
>---------------------------------------------------------------
commit 426e001a0545c12c04a9ce0790e043d0cf6327b8
Author: Carl Tape <carltape at gi.alaska.edu>
Date: Fri Sep 27 06:27:57 2013 +0000
updated homogeneous_acoustic example, which has identical mesh to homogeneous_halfspace
>---------------------------------------------------------------
426e001a0545c12c04a9ce0790e043d0cf6327b8
.../MESH-default/absorbing_surface_file_bottom | 1 +
.../MESH-default/absorbing_surface_file_xmax | 1 +
.../MESH-default/absorbing_surface_file_xmin | 1 +
.../MESH-default/absorbing_surface_file_ymax | 1 +
.../MESH-default/absorbing_surface_file_ymin | 1 +
.../free_or_absorbing_surface_file_zmax | 1 +
homogeneous_acoustic/MESH-default/materials_file | 1 +
homogeneous_acoustic/MESH-default/mesh_file | 1 +
.../MESH-default/nodes_coords_file | 1 +
.../MESH-default/nummaterial_velocity_file | 1 +
homogeneous_acoustic/block_mesh.py | 49 ----------------------
homogeneous_acoustic/boundary_definition.py | 1 -
homogeneous_acoustic/cubit2specfem3d.py | 1 -
homogeneous_acoustic/make_mesh.sh | 1 +
14 files changed, 11 insertions(+), 51 deletions(-)
diff --git a/homogeneous_acoustic/MESH-default/absorbing_surface_file_bottom b/homogeneous_acoustic/MESH-default/absorbing_surface_file_bottom
new file mode 120000
index 0000000..a0f659b
--- /dev/null
+++ b/homogeneous_acoustic/MESH-default/absorbing_surface_file_bottom
@@ -0,0 +1 @@
+../../homogeneous_halfspace/MESH-default/absorbing_surface_file_bottom
\ No newline at end of file
diff --git a/homogeneous_acoustic/MESH-default/absorbing_surface_file_xmax b/homogeneous_acoustic/MESH-default/absorbing_surface_file_xmax
new file mode 120000
index 0000000..4433329
--- /dev/null
+++ b/homogeneous_acoustic/MESH-default/absorbing_surface_file_xmax
@@ -0,0 +1 @@
+../../homogeneous_halfspace/MESH-default/absorbing_surface_file_xmax
\ No newline at end of file
diff --git a/homogeneous_acoustic/MESH-default/absorbing_surface_file_xmin b/homogeneous_acoustic/MESH-default/absorbing_surface_file_xmin
new file mode 120000
index 0000000..6c4706a
--- /dev/null
+++ b/homogeneous_acoustic/MESH-default/absorbing_surface_file_xmin
@@ -0,0 +1 @@
+../../homogeneous_halfspace/MESH-default/absorbing_surface_file_xmin
\ No newline at end of file
diff --git a/homogeneous_acoustic/MESH-default/absorbing_surface_file_ymax b/homogeneous_acoustic/MESH-default/absorbing_surface_file_ymax
new file mode 120000
index 0000000..c3bfa71
--- /dev/null
+++ b/homogeneous_acoustic/MESH-default/absorbing_surface_file_ymax
@@ -0,0 +1 @@
+../../homogeneous_halfspace/MESH-default/absorbing_surface_file_ymax
\ No newline at end of file
diff --git a/homogeneous_acoustic/MESH-default/absorbing_surface_file_ymin b/homogeneous_acoustic/MESH-default/absorbing_surface_file_ymin
new file mode 120000
index 0000000..c28b3dd
--- /dev/null
+++ b/homogeneous_acoustic/MESH-default/absorbing_surface_file_ymin
@@ -0,0 +1 @@
+../../homogeneous_halfspace/MESH-default/absorbing_surface_file_ymin
\ No newline at end of file
diff --git a/homogeneous_acoustic/MESH-default/free_or_absorbing_surface_file_zmax b/homogeneous_acoustic/MESH-default/free_or_absorbing_surface_file_zmax
new file mode 120000
index 0000000..095c836
--- /dev/null
+++ b/homogeneous_acoustic/MESH-default/free_or_absorbing_surface_file_zmax
@@ -0,0 +1 @@
+../../homogeneous_halfspace/MESH-default/free_or_absorbing_surface_file_zmax
\ No newline at end of file
diff --git a/homogeneous_acoustic/MESH-default/materials_file b/homogeneous_acoustic/MESH-default/materials_file
new file mode 120000
index 0000000..fc80467
--- /dev/null
+++ b/homogeneous_acoustic/MESH-default/materials_file
@@ -0,0 +1 @@
+../../homogeneous_halfspace/MESH-default/materials_file
\ No newline at end of file
diff --git a/homogeneous_acoustic/MESH-default/mesh_file b/homogeneous_acoustic/MESH-default/mesh_file
new file mode 120000
index 0000000..a9eec6f
--- /dev/null
+++ b/homogeneous_acoustic/MESH-default/mesh_file
@@ -0,0 +1 @@
+../../homogeneous_halfspace/MESH-default/mesh_file
\ No newline at end of file
diff --git a/homogeneous_acoustic/MESH-default/nodes_coords_file b/homogeneous_acoustic/MESH-default/nodes_coords_file
new file mode 120000
index 0000000..1a32520
--- /dev/null
+++ b/homogeneous_acoustic/MESH-default/nodes_coords_file
@@ -0,0 +1 @@
+../../homogeneous_halfspace/MESH-default/nodes_coords_file
\ No newline at end of file
diff --git a/homogeneous_acoustic/MESH-default/nummaterial_velocity_file b/homogeneous_acoustic/MESH-default/nummaterial_velocity_file
new file mode 120000
index 0000000..6883fc6
--- /dev/null
+++ b/homogeneous_acoustic/MESH-default/nummaterial_velocity_file
@@ -0,0 +1 @@
+../../homogeneous_halfspace/MESH-default/nummaterial_velocity_file
\ No newline at end of file
diff --git a/homogeneous_acoustic/block_mesh.py b/homogeneous_acoustic/block_mesh.py
deleted file mode 100755
index 10c54c9..0000000
--- a/homogeneous_acoustic/block_mesh.py
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/usr/bin/env python
-
-import cubit
-import boundary_definition
-import cubit2specfem3d
-
-import os
-import sys
-
-cubit.cmd('reset')
-cubit.cmd('brick x 134000 y 134000 z 60000')
-cubit.cmd('volume 1 move x 67000 y 67000 z -30000')
-
-
-# Meshing the volumes
-elementsize = 3750.0
-
-cubit.cmd('volume 1 size '+str(elementsize))
-cubit.cmd('mesh volume 1')
-
-
-#### End of meshing
-
-###### This is boundary_definition.py of GEOCUBIT
-#..... which extracts the bounding faces and defines them into blocks
-boundary_definition.entities=['face']
-boundary_definition.define_bc(boundary_definition.entities,parallel=True)
-
-#### Define material properties for the 3 volumes ################
-cubit.cmd('#### DEFINE MATERIAL PROPERTIES #######################')
-
-
-cubit.cmd('block 1 name "acoustic 1" ') # acoustic material region
-cubit.cmd('block 1 attribute count 4')
-cubit.cmd('block 1 attribute index 1 1 ') # material 1
-cubit.cmd('block 1 attribute index 2 1480 ') # vp
-cubit.cmd('block 1 attribute index 3 0 ') # vs
-cubit.cmd('block 1 attribute index 4 1028 ') # rho (ocean salt water density:
-
-
-cubit.cmd('export mesh "top.e" dimension 3 overwrite')
-cubit.cmd('save as "meshing.cub" overwrite')
-
-#### Export to SPECFEM3D format using cubit2specfem3d.py of GEOCUBIT
-
-os.system('mkdir -p MESH')
-cubit2specfem3d.export2SPECFEM3D('MESH')
-
-# all files needed by SCOTCH are now in directory MESH
diff --git a/homogeneous_acoustic/boundary_definition.py b/homogeneous_acoustic/boundary_definition.py
deleted file mode 120000
index d4dcc5f..0000000
--- a/homogeneous_acoustic/boundary_definition.py
+++ /dev/null
@@ -1 +0,0 @@
-../../CUBIT_GEOCUBIT/geocubitlib/boundary_definition.py
\ No newline at end of file
diff --git a/homogeneous_acoustic/cubit2specfem3d.py b/homogeneous_acoustic/cubit2specfem3d.py
deleted file mode 120000
index f70980c..0000000
--- a/homogeneous_acoustic/cubit2specfem3d.py
+++ /dev/null
@@ -1 +0,0 @@
-../../CUBIT_GEOCUBIT/geocubitlib/cubit2specfem3d.py
\ No newline at end of file
diff --git a/homogeneous_acoustic/make_mesh.sh b/homogeneous_acoustic/make_mesh.sh
new file mode 120000
index 0000000..631ec4f
--- /dev/null
+++ b/homogeneous_acoustic/make_mesh.sh
@@ -0,0 +1 @@
+../homogeneous_halfspace/make_mesh.sh
\ No newline at end of file
More information about the CIG-COMMITS
mailing list