Commit 437b024b authored by Alex Breuer's avatar Alex Breuer
Browse files

Added revised Gaussian hill benchmark using 1) an explosive source, 2)...

Added revised Gaussian hill benchmark using 1) an explosive source, 2) acoustics and elastics, 3) different mesh resolutions, and 4) different heights.
parent 3f536b2d
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
......@@ -5,7 +5,7 @@
@author Alexander Breuer (anbreuer AT ucsd.edu)
@section LICENSE
Copyright (c) 2017, Regents of the University of California
Copyright (c) 2017-2018, Regents of the University of California
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
......@@ -31,7 +31,7 @@
<cfr>
<mesh>
<files>
<in>ghill_2d.msh</in>
<in>ghill_2d_TEMPLATE_HEIGHT_TEMPLATE_CL.msh</in>
</files>
<boundary>
<free_surface>101</free_surface>
......@@ -44,7 +44,7 @@
<half_space>
<origin>
<x>0</x>
<y>2001</y>
<y>9999</y>
</origin>
<normal>
<x> 0</x>
......@@ -52,23 +52,15 @@
</normal>
</half_space>
<rho>1800</rho>
<lambda>11.016E9</lambda>
<mu>2.592E9</mu>
<rho>2800</rho>
<lambda>2.5200000000000000E10</lambda>
<mu>0.0</mu>
</domain>
</velocity_model>
<setups>
<kinematic_sources>
<file>ricker.nc</file>
<file>ricker.nc</file>
<file>ricker.nc</file>
<file>ricker.nc</file>
<file>ricker.nc</file>
<file>ricker.nc</file>
<file>ricker.nc</file>
<file>ricker.nc</file>
<file>ricker_acoustic.nc</file>
</kinematic_sources>
<end_time>20.0</end_time>
......@@ -76,40 +68,68 @@
<output>
<receivers>
<path_to_dir>ghill_2d_re</path_to_dir>
<path_to_dir>ghill_2d_acoustic_recvs_TEMPLATE_HEIGHT_TEMPLATE_CL</path_to_dir>
<freq>0.01</freq>
<!--
Wolfram Alpha: 2000 * exp( -(5000 - 10000)^2 / 3000^2 ) = 124.3530..
-->
<receiver>
<name>ghill_2d_1</name>
<name>ghill_2d_-05_00</name>
<coords>
<x>5000</x>
<x>-5000</x>
<y>124.0</y>
</coords>
</receiver>
<receiver>
<name>ghill_2d_2</name>
<name>ghill_2d_-10_02</name>
<coords>
<x>10000</x>
<x>-10000</x>
<y>1999</y>
</coords>
</receiver>
<receiver>
<name>ghill_2d_3</name>
<name>ghill_2d_-15_00</name>
<coords>
<x>15000</x>
<x>-15000</x>
<y>124.0</y>
</coords>
</receiver>
<receiver>
<name>ghill_2d_00_-05</name>
<coords>
<x>0</x>
<y>-5000</y>
</coords>
</receiver>
<receiver>
<name>ghill_2d_00_-10</name>
<coords>
<x>0</x>
<y>-10000</y>
</coords>
</receiver>
<receiver>
<name>ghill_2d_00_-15</name>
<coords>
<x>0</x>
<y>-15000</y>
</coords>
</receiver>
<receiver>
<name>ghill_2d_00_-20</name>
<coords>
<x>0</x>
<y>-20000</y>
</coords>
</receiver>
</receivers>
<wave_field>
<type>vtk_binary</type>
<file>ghill_2d_wf/wave_field</file>
<file>ghill_2d_acoustic_wf_TEMPLATE_HEIGHT_TEMPLATE_CL/wave_field</file>
<int>0.1</int>
</wave_field>
</output>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
@file This file is part of EDGE.
@author Alexander Breuer (anbreuer AT ucsd.edu)
@section LICENSE
Copyright (c) 2017-2018, Regents of the University of California
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@section DESCRIPTION
Configuration for the Gaussian hill model.
-->
<edge>
<build>
<element_type>tria3</element_type>
<equations>elastic</equations>
<moab>yes</moab>
</build>
<cfr>
<mesh>
<files>
<in>ghill_2d_TEMPLATE_HEIGHT_TEMPLATE_CL.msh</in>
</files>
<boundary>
<free_surface>101</free_surface>
<outflow>105</outflow>
</boundary>
</mesh>
<velocity_model>
<domain>
<half_space>
<origin>
<x>0</x>
<y>9999</y>
</origin>
<normal>
<x> 0</x>
<y>-1</y>
</normal>
</half_space>
<rho>2800</rho>
<lambda>1.7136000000000000E10</lambda>
<mu>4.0320000000000000E9</mu>
</domain>
</velocity_model>
<setups>
<kinematic_sources>
<file>ricker_elastic.nc</file>
</kinematic_sources>
<end_time>20.0</end_time>
</setups>
<output>
<receivers>
<path_to_dir>ghill_2d_elastic_recvs_TEMPLATE_HEIGHT_TEMPLATE_CL</path_to_dir>
<freq>0.01</freq>
<!--
Wolfram Alpha: 2000 * exp( -(5000 - 10000)^2 / 3000^2 ) = 124.3530..
-->
<receiver>
<name>ghill_2d_-05_00</name>
<coords>
<x>-5000</x>
<y>124.0</y>
</coords>
</receiver>
<receiver>
<name>ghill_2d_-10_02</name>
<coords>
<x>-10000</x>
<y>1999</y>
</coords>
</receiver>
<receiver>
<name>ghill_2d_-15_00</name>
<coords>
<x>-15000</x>
<y>124.0</y>
</coords>
</receiver>
<receiver>
<name>ghill_2d_00_-05</name>
<coords>
<x>0</x>
<y>-5000</y>
</coords>
</receiver>
<receiver>
<name>ghill_2d_00_-10</name>
<coords>
<x>0</x>
<y>-10000</y>
</coords>
</receiver>
<receiver>
<name>ghill_2d_00_-15</name>
<coords>
<x>0</x>
<y>-15000</y>
</coords>
</receiver>
<receiver>
<name>ghill_2d_00_-20</name>
<coords>
<x>0</x>
<y>-20000</y>
</coords>
</receiver>
</receivers>
<wave_field>
<type>vtk_binary</type>
<file>ghill_2d_elastic_wf_TEMPLATE_HEIGHT_TEMPLATE_CL/wave_field</file>
<int>0.1</int>
</wave_field>
</output>
</cfr>
</edge>
ghill_2d_*_*.geo filter=lfs diff=lfs merge=lfs -text
......@@ -2,9 +2,15 @@
To the extent possible under law, [Alexander Nikolas Breuer](http://dial3343.org) has waived all copyright and related or neighboring rights to the following work:
* `ghill_2d_100.msh`
* `ghill_2d_100.vtk`
* `ghill_2d_500.msh`
* `ghill_2d_500.vtk`
* `ghill_2d_2000_100.msh`
* `ghill_2d_2000_200.msh`
* `ghill_2d_2000_300.msh`
* `ghill_2d_2000_400.msh`
* `ghill_2d_2000_500.msh`
* `ghill_2d_5000_100.msh`
* `ghill_2d_5000_200.msh`
* `ghill_2d_5000_300.msh`
* `ghill_2d_5000_400.msh`
* `ghill_2d_5000_500.msh`
This work is published from: United States.
# Meshes for the Gaussian Hill Benchmark
This directory contains the high-level mesh descriptions, generated meshes and logs documenting the mesh generation.
```
bash generate.sh
```
#!/bin/bash
##
# @file This file is part of EDGE.
#
# @author Alexander Breuer (anbreuer AT ucsd.edu)
#
# @section LICENSE
# Copyright (c) 2018, Regents of the University of California
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# @section DESCRIPTION
# Generates the meshes for the Gaussian hill benchmark.
##
hostname
gmsh --version
for height in 2000 5000
do
for msh in 500 400 300 200 100
do
echo "$(date) generating cl_src ${msh}"
cp ghill_2d.tmpl ghill_2d_${height}_${msh}.geo
sed -i "s/TEMPLATE_HEIGHT/${height}/" ghill_2d_${height}_${msh}.geo
sed -i "s/TEMPLATE_HILL/${msh}/" ghill_2d_${height}_${msh}.geo
sed -i "s/TEMPLATE_SOURCE/${msh}/" ghill_2d_${height}_${msh}.geo
sed -i "s/TEMPLATE_VOLUME/${msh}*2/" ghill_2d_${height}_${msh}.geo
sed -i "s/TEMPLATE_SPONGE/${msh}*4/" ghill_2d_${height}_${msh}.geo
gmsh -2 ghill_2d_${height}_${msh}.geo > ghill_2d_${height}_${msh}.msh.log
echo "$(date) ${height} ${msh} done"
done
done
......@@ -4,7 +4,7 @@
* @author Alexander Breuer (anbreuer AT ucsd.edu)
*
* @section LICENSE
* Copyright (c) 2017, Regents of the University of California
* Copyright (c) 2017-2018, Regents of the University of California
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
......@@ -18,64 +18,22 @@
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* @section DESCRIPTION
* Template for the Gaussian hill model in:
* Zhang, Wei, and Xiaofei Chen.
* "Traction image method for irregular free surface boundaries in finite difference seismic wave simulation."
* Geophysical Journal International 167.1 (2006): 337-353.
* Fig. 5
* Template for the Gaussian hill benchmark.
**/
Mesh.Algorithm = 6; // frontal
// height of the hill
hill_height = TEMPLATE_HEIGHT;
// total size of the computational domain (+/- x, and +/-y)
l_dom = 45000;
// characteristic length for the hill topography
cl_hill = TEMPLATE_HILL;
// number of line segmets used for discretization of the Gaussian shape hill in [0, 20]
l_nSegHill = 20000 / cl_hill;
// characteristic length for the source
cl_source = TEMPLATE_SOURCE;
l_x0 = 10000;
l_h = 2000;
l_a = 3000;
// characteristic length for the volume
cl_volume = TEMPLATE_VOLUME;
// create points for the hill topography
For l_pt In {0:l_nSegHill}
l_x = cl_hill*l_pt;
Point(l_pt) = {l_x, l_h * Exp( -(l_x-l_x0)*(l_x-l_x0) / (l_a*l_a) ), 0};
EndFor
// characteristic length for the sponge zone
cl_sponge = TEMPLATE_SPONGE;
// create lines connecting the points of the hill topo
For l_li In {0:(l_nSegHill-1)}
Line(l_li) = {l_li, l_li+1};
EndFor
// add remaining points
Point(l_nSegHill+1) = { l_dom, 0, 0};
Point(l_nSegHill+2) = { l_dom, -l_dom, 0};
Point(l_nSegHill+3) = {-l_dom, -l_dom, 0};
Point(l_nSegHill+4) = {-l_dom, 0, 0};
// add remainig lines
For l_li In {l_nSegHill:(l_nSegHill+3)}
Line(l_li) = { l_li, (l_li+1) };
EndFor
Line(l_nSegHill+4) = {l_nSegHill+4, 0};
// set free-surface and outflow boundaries
Physical Line(101) = {0:l_nSegHill, l_nSegHill+4};
Physical Line(105) = {l_nSegHill+1:(l_nSegHill+3)};
// define volume
Line Loop(1) = { 0:l_nSegHill+4 };
Plane Surface(1) = {1};
Physical Surface(1) = {1};
// mesh refinement: high-res hill
Field[1] = Box;
Field[1].VIn = cl_hill;
Field[1].VOut = cl_vol;
Field[1].XMin = -10000;
Field[1].XMax = 25000;
Field[1].YMin = -15000;
Field[1].YMax = 2001;
Background Field = 1;
Include "ghill_2d_base.geo";
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment