la_habra_refined_base.xml 3.95 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
<?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>