Added initial set of La Habra files.

parent 334b83b6
La Habra
========
This directory contains the La Habra setting of SCEC's High-F project: https://scec.usc.edu/scecpedia/High-F_Project
The verification benchmark uses frequency-independent Q, a planar free surface, kinematic sources, and the velocity model CVM-S4.26.M01.
* Contact: Alexander Breuer
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<!--
@file This file is part of EDGE.
@author Alexander Breuer (breuer AT mytum.de)
@section LICENSE
Copyright (c) 2020, Alexander Breuer
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
EDGEcut config for the surface mesh.
-->
<edge_cut>
<mesh>
<files>
<out>
<left>la_habra_left.off</left>
<right>la_habra_right.off</right>
<front>la_habra_front.off</front>
<back>la_habra_back.off</back>
<bottom>la_habra_bottom.off</bottom>
<top>la_habra_top.off</top>
</out>
</files>
</mesh>
<extrude>
<in>out_pe/topo.xyz</in>
<target_z>-40000</target_z>
<n_levels>3</n_levels>
</extrude>
</edge_cut>
#!/bin/bash
##
# @file This file is part of EDGE.
#
# @author Alexander Breuer (anbreuer AT mytum.de)
#
# @section LICENSE
# Copyright (c) 2020, Alexander Breuer
# 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
# Downloads and unzips the grids.
##
date
mkdir grids
cd grids
for msh in n34w118 n34w119 n35w118 n35w119
do
wget -q https://prd-tnm.s3.amazonaws.com/StagedProducts/Elevation/13/ArcGrid/USGS_NED_13_${msh}_ArcGrid.zip
unzip USGS_NED_13_${msh}_ArcGrid.zip -d ${msh}
rm USGS_NED_13_${msh}_ArcGrid.zip
done
cd ..
date
#!/bin/bash
##
# @file This file is part of EDGE.
#
# @author Alexander Breuer (anbreuer AT ucsd.edu)
#
# @section LICENSE
# Copyright (c) 2020, Alexander Breuer
# 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
# Plots and projects the data.
##
# points of interest in lon/lat
poi_lonlat=../poi_lonlat.csv
# receivers in lon/lat
receivers_lonlat=../receivers_lonlat.csv
# create output directory
out_dir=out_pe
mkdir ${out_dir}
# points of interest in meters
poi=${out_dir}/poi.csv
# receivers in meters
receivers=${out_dir}/receivers.csv
# region of interest cut from the mesh
region_cut=-50012.5/50012.5/-50012.5/50012.5
# sampling of the topo mesh (25m)
region_sampling=25/25
# projection center is the epicenter of the 2004 Parfield earthquake
projection="tmerc/-117.916/33.933"
grids=(grids/n34w119/grdn34w119_13/w001001.adf grids/n34w118/grdn34w118_13/w001001.adf grids/n35w119/grdn35w119_13/w001001.adf grids/n35w118/grdn35w118_13/w001001.adf)
# blend region
blend_region=-119/-117/33/35
# create work directory
tmp_dir=$(mktemp -d)
# generate a color table
gmt makecpt -Cetopo1 > ${tmp_dir}/gmt_colors.cpt
# blend the two grids together
gmt grdblend ${grids[*]} -R${blend_region} -G${tmp_dir}/blend.nc -V2
# plot topography in lon/lat
gmt grdimage -J${projection}/8c ${tmp_dir}/blend.nc -Ba -E75 -C${tmp_dir}/gmt_colors.cpt > ${tmp_dir}/blend.ps
# convert receiver coordinates
#cat ${receivers_lonlat} | cs2cs +proj=latlong +datum=WGS84 +to +proj=tmerc +units=m +axis=end +no_defs +ellps=GRS80 +k=0.9996 +lon_0=-120.365 +lat_0=35.817 -f %.12f > ${receivers}
# add receivers (symbols only)
#gmt psxy ${receivers} -R${blend_region} -Z -J${projection}/8c -Sd.1 -Gblack -O -K -V2 >> ${tmp_dir}/blend.ps
# add points of interests
#gmt psxy ${poi_lonlat} -R${blend_region} -Z -J${projection}/8c -Sd.25 -Gblack -O -K -V2 >> ${tmp_dir}/blend.ps
# add captions
#gmt pstext ${poi_lonlat} -R${blend_region} -J${projection}/8c -F+f7+jL -D0.2/0c -O -V2 >> ${tmp_dir}/blend.ps
# convert to pdf
ps2pdf ${tmp_dir}/blend.ps ${out_dir}/blend.pdf
# project grid
gmt grdproject ${tmp_dir}/blend.nc -J${projection}/0.9996 -C -G${tmp_dir}/proj.nc -Fe -V2
# extract and resample mesh
gmt grdsample ${tmp_dir}/proj.nc -I${region_sampling} -R${region_cut} -G${tmp_dir}/topo.nc -r -V2
# convert to ascii
gmt grd2xyz ${tmp_dir}/topo.nc > ${tmp_dir}/topo.xyz
# replace all nans (under water) with zeroes, grdfill tends to segfault: manual sed
sed 's/NaN/0/g' ${tmp_dir}/topo.xyz > ${out_dir}/topo.xyz
# convert point of interests
#cat ${poi_lonlat} | cs2cs +proj=latlong +datum=WGS84 +to +proj=tmerc +units=m +axis=end +no_defs +ellps=GRS80 +k=0.9996 +lon_0=-120.365 +lat_0=35.817 -f %.12f > ${poi}
# plot topography
gmt grdimage -JX6.5i -C${tmp_dir}/colors.cpt ${tmp_dir}/topo.nc -Ba -C${tmp_dir}/gmt_colors.cpt -V2 > ${tmp_dir}/map.ps
# add receivers
#gmt psxy ${receivers} -Z -JX6.5i -R${region_cut} -Sd.1 -Gblack -O -K -V2 >> ${tmp_dir}/map.ps
#gmt pstext ${receivers} -Z -R${region_cut} -JX6.5i -F+f3+jL -D0.05/0c -O -K -V2 >> ${tmp_dir}/map.ps
# add points of interests
#gmt psxy ${poi} -Z -JX6.5i -R${region_cut} -Sd.25 -Gblack -O -K -V2 >> ${tmp_dir}/map.ps
#gmt pstext ${poi} -Z -R${region_cut} -JX6.5i -F+f7+jL -D0.2/0c -O -V2 >> ${tmp_dir}/map.ps
# convert to pdf
ps2pdf ${tmp_dir}/map.ps ${out_dir}/map.pdf
# remove work directory
rm -r ${tmp_dir}
#!/bin/bash
##
# @file This file is part of EDGE.
#
# @author Alexander Breuer (breuer AT mytum.de)
#
# @section LICENSE
# Copyright (c) 2020, Alexander Breuer
# 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 a vs-adapted mesh in a box without topography.
##
n_threads=2
gmsh -algo hxt -nt ${n_threads} -3 la_habra_flat.geo -o la_habra_refined_base.msh2
mv la_habra_refined_base.msh2 la_habra_refined_base.msh
# iterate over base mesh
for iter in $(seq 0 4)
do
echo "iteration #${iter}"
edge_v -x la_habra_refined_base.xml
gmsh -algo hxt -nt ${n_threads} -3 la_habra_flat.geo -bgm la_habra_bgm_base.msh -o la_habra_refined_base.msh2
mv la_habra_refined_base.msh2 la_habra_refined_base.msh
done
echo "refining for velocity gradient"
edge_v -x la_habra_refined_grad.xml
gmsh -algo hxt -nt ${n_threads} -3 la_habra_flat.geo -bgm la_habra_bgm_grad.msh -o la_habra_refined_grad.msh2
mv la_habra_refined_grad.msh2 la_habra_refined_grad.msh
echo "partitioning"
mkdir part
edge_v -x la_habra_refined_part.xml
/**
* @file This file is part of EDGE.
*
* @author Alexander Breuer (anbreuer AT ucsd.edu)
*
* @section LICENSE
* Copyright (c) 2020, Alexander Breuer
* 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
* Tet4 setup for High-F's small La Habra domain.
* This intial config generates a coarse mesh (300m characteristic length).
**/
Mesh.Optimize = 1;
cl = 300;
size_xy = 50000;
size_z = 40000;
// geometry
Point(1) = { -size_xy, -size_xy, 0, cl };
Point(2) = { size_xy, -size_xy, 0, cl };
Point(3) = { size_xy, size_xy, 0, cl };
Point(4) = { -size_xy, size_xy, 0, cl };
Line(1) = {1, 2};
Line(2) = {2, 3};
Line(3) = {3, 4};
Line(4) = {4, 1};
// free surface
Line Loop(101) = { 1, 2, 3, 4 };
Plane Surface(201) = { 101 };
// halfspace
extList[] = Extrude {0, 0, -size_z} { Surface{201}; };
// set free surface boundary
Physical Surface(101) = {201};
// set outflow boundary
Physical Surface(105) = {223,210,214,218,222};
// volume
Physical Volume(1) = {1};
<?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) 2019-2020, Alexander Breuer
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
EDGE-V configuration for mesh refinement of the La Habra benchmark.
-->
<edge_v>
<mesh>
<periodic>no</periodic>
<files>
<in>la_habra_refined_base.msh</in>
</files>
</mesh>
<velocity_model>
<ucvm>
<source_transformation>
<x_0>1.0</x_0>
<x_1>0.0</x_1>
<x_2>0.0</x_2>
<y_0>0.0</y_0>
<y_1>1.0</y_1>
<y_2>0.0</y_2>
<z_0>0.0</z_0>
<z_1>0.0</z_1>
<z_2>-1.0</z_2>
</source_transformation>
<projections>
<source>+proj=tmerc +units=m +axis=enu +no_defs +datum=WGS84 +k=0.9996 +lon_0=-117.916 +lat_0=33.933</source>
<destination>+proj=latlong +datum=WGS84</destination>
</projections>
<models>cvmsi</models>
<model_type>cmb</model_type>
<coordinate_mode>UCVM_COORD_GEO_DEPTH</coordinate_mode>
<normalization_rule>
<![CDATA[
// Decription, following https://scec.usc.edu/scecpedia/HighF_2018:
//
// 1. Set Min Vs=500 m/s
// 2. If Vs was lower than 500 m/s and adjusted, then adjust Vp with original Vp/Vs ratio (so that we don’t have the automatic Vs/Vp of 3). We may want to set a minimum value of Vp (Rob to check)
// 3. Then set Max Vp/Vs= 3, if lower Vp to maintain the max of 3 ratio
// limit vs to 500 m/s
if( vs < 500 ) {
// derive vp/vs ratio
var sca := vp / vs;
// adjust velocities
vs := 500;
vp := 500*sca;
};
// limit vp/vs ratio to 3
var sca := vp / vs;
if( sca > 3 ) {
vp := 3*vs;
};
]]>
</normalization_rule>
</ucvm>
</velocity_model>
<refinement>
<expression>
<![CDATA[
frequency := 2.5;
// use five edges per wavelength in 25km radius
if( sqrt(x*x + y*y) < 25000 ) {
edges_per_wave_length := 5;
}
// decrease linearly from 25km - 40km
else if( sqrt(x*x + y*y) < 40000 ) {
var ratio := (sqrt(x*x + y*y)-25000) / (40000 - 25000);
edges_per_wave_length := 5 - ratio*3.75;
}
// use 1.25 outside
else {
edges_per_wave_length := 1.25;
};
]]>
</expression>
<out>la_habra_bgm_base.msh</out>
</refinement>
</edge_v>
<?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) 2019-2020, Alexander Breuer
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
EDGE-V configuration for mesh refinement of the La Habra benchmark.
-->
<edge_v>
<mesh>
<periodic>no</periodic>
<files>
<in>la_habra_refined_base.msh</in>
</files>
</mesh>
<velocity_model>
<ucvm>
<source_transformation>
<x_0>1.0</x_0>
<x_1>0.0</x_1>
<x_2>0.0</x_2>
<y_0>0.0</y_0>
<y_1>1.0</y_1>
<y_2>0.0</y_2>
<z_0>0.0</z_0>
<z_1>0.0</z_1>
<z_2>-1.0</z_2>
</source_transformation>
<projections>
<source>+proj=tmerc +units=m +axis=enu +no_defs +datum=WGS84 +k=0.9996 +lon_0=-117.916 +lat_0=33.933</source>
<destination>+proj=latlong +datum=WGS84</destination>
</projections>
<models>cvmsi</models>
<model_type>cmb</model_type>
<coordinate_mode>UCVM_COORD_GEO_DEPTH</coordinate_mode>
<normalization_rule>
<![CDATA[
// Decription, following https://scec.usc.edu/scecpedia/HighF_2018:
//
// 1. Set Min Vs=500 m/s
// 2. If Vs was lower than 500 m/s and adjusted, then adjust Vp with original Vp/Vs ratio (so that we don’t have the automatic Vs/Vp of 3). We may want to set a minimum value of Vp (Rob to check)
// 3. Then set Max Vp/Vs= 3, if lower Vp to maintain the max of 3 ratio
// limit vs to 500 m/s
if( vs < 500 ) {
// derive vp/vs ratio
var sca := vp / vs;
// adjust velocities
vs := 500;
vp := 500*sca;
};
// limit vp/vs ratio to 3
var sca := vp / vs;
if( sca > 3 ) {
vp := 3*vs;
};
]]>
</normalization_rule>
</ucvm>
</velocity_model>
<refinement>
<expression>
<![CDATA[
frequency := 2.5;
// use five edges per wavelength in 25km radius
if( sqrt(x*x + y*y) < 25000 ) {
edges_per_wave_length := 5;
}
// decrease linearly from 25km - 40km
else if( sqrt(x*x + y*y) < 40000 ) {
var ratio := (sqrt(x*x + y*y)-25000) / (40000 - 25000);
edges_per_wave_length := 5 - ratio*3.75;
}
// use 1.25 outside
else {
edges_per_wave_length := 1.25;
};
if( sqrt(x*x + y*y) < 40000 ) {
// decrease target length by up to 5x to reach a maximum difference of 50%
// this assumes linear changes in velocity
var diff := maximum_wave_speed_ratio - 1;
if( diff > 0.5 ) {
var scale := min( diff / 0.5, 5 );
edges_per_wave_length *= scale;
}
};
]]>
</expression>
<out>la_habra_bgm_grad.msh</out>
</refinement>
</edge_v>
<?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) 2019-2020, Alexander Breuer
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
EDGE-V configuration for mesh refinement of the La Habra benchmark.
-->
<edge_v>
<mesh>
<periodic>no</periodic>
<n_partitions>256</n_partitions>
<files>
<in>la_habra_refined_grad.msh</in>
<out>
<base>part/la_habra_refined_grad</base>
<extension>.h5m</extension>
</out>
</files>
</mesh>
<velocity_model>
<ucvm>
<source_transformation>
<x_0>1.0</x_0>
<x_1>0.0</x_1>
<x_2>0.0</x_2>
<y_0>0.0</y_0>
<y_1>1.0</y_1>
<y_2>0.0</y_2>
<z_0>0.0</z_0>
<z_1>0.0</z_1>
<z_2>-1.0</z_2>
</source_transformation>
<projections>
<source>+proj=tmerc +units=m +axis=enu +no_defs +datum=WGS84 +k=0.9996 +lon_0=-117.916 +lat_0=33.933</source>
<destination>+proj=latlong +datum=WGS84</destination>
</projections>
<models>cvmsi</models>
<model_type>cmb</model_type>
<coordinate_mode>UCVM_COORD_GEO_DEPTH</coordinate_mode>
<normalization_rule>
<![CDATA[
// Decription, following https://scec.usc.edu/scecpedia/HighF_2018:
//
// 1. Set Min Vs=500 m/s
// 2. If Vs was lower than 500 m/s and adjusted, then adjust Vp with original Vp/Vs ratio (so that we don’t have the automatic Vs/Vp of 3). We may want to set a minimum value of Vp (Rob to check)
// 3. Then set Max Vp/Vs= 3, if lower Vp to maintain the max of 3 ratio
// limit vs to 500 m/s
if( vs < 500 ) {
// derive vp/vs ratio
var sca := vp / vs;
// adjust velocities
vs := 500;
vp := 500*sca;
};
// limit vp/vs ratio to 3
var sca := vp / vs;
if( sca > 3 ) {
vp := 3*vs;
};
]]>
</normalization_rule>
</ucvm>
</velocity_model>
<time>
<n_groups>5</n_groups>
</time>
</edge_v>
#!/bin/bash -l
##
# @file This file is part of EDGE.
#
# @author Alexander Breuer (breuer AT mytum.de)
#
# @section LICENSE
# Copyright (c) 2020, Alexander Breuer
# 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.
#