Adjusted EDGE-V's La Habra configurations.

parent fb39ff2b
......@@ -21,13 +21,13 @@
# @section DESCRIPTION
# Generates a vs-adapted mesh in a box without topography.
##
n_threads=2
n_threads=5
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)
for iter in $(seq 0 2)
do
echo "iteration #${iter}"
edge_v -x la_habra_refined_base.xml
......
......@@ -20,11 +20,11 @@
*
* @section DESCRIPTION
* Tet4 setup for High-F's small La Habra domain.
* This intial config generates a coarse mesh (300m characteristic length).
* This intial config generates a coarse mesh (500m characteristic length).
**/
Mesh.Optimize = 1;
cl = 300;
cl = 500;
size_xy = 50000;
size_z = 40000;
......
......@@ -69,11 +69,16 @@
vp := 500*sca;
};
// limit vp/vs ratio to 3
// limit maximum vp/vs ratio to 3
var sca := vp / vs;
if( sca > 3 ) {
vp := 3*vs;
};
// limit minimum vp/vs ratio to sqrt(2) (lower means negative lambda)
if( sca < 1.415 ) {
vp:= 1.415*vs;
};
]]>
</normalization_rule>
</ucvm>
......@@ -82,7 +87,7 @@
<refinement>
<expression>
<![CDATA[
frequency := 2.5;
frequency := 1.25;
// use five edges per wavelength in 25km radius
if( sqrt(x*x + y*y) < 25000 ) {
......@@ -97,6 +102,12 @@
else {
edges_per_wave_length := 1.25;
};
// double resolution in upper 1km
if( z > -1000 ) {
var ratio := (z + 1000) / 1000;
edges_per_wave_length *= 1 + ratio;
};
]]>
</expression>
<out>la_habra_bgm_base.msh</out>
......
......@@ -69,11 +69,16 @@
vp := 500*sca;
};
// limit vp/vs ratio to 3
// limit maximum vp/vs ratio to 3
var sca := vp / vs;
if( sca > 3 ) {
vp := 3*vs;
};
// limit minimum vp/vs ratio to sqrt(2) (lower means negative lambda)
if( sca < 1.415 ) {
vp:= 1.415*vs;
};
]]>
</normalization_rule>
</ucvm>
......@@ -82,7 +87,7 @@
<refinement>
<expression>
<![CDATA[
frequency := 2.5;
frequency := 1.25;
// use five edges per wavelength in 25km radius
if( sqrt(x*x + y*y) < 25000 ) {
......@@ -97,13 +102,19 @@
else {
edges_per_wave_length := 1.25;
};
// double resolution in upper 1km
if( z > -1000 ) {
var ratio := (z + 1000) / 1000;
edges_per_wave_length *= 1 + ratio;
};
if( sqrt(x*x + y*y) < 40000 ) {
// decrease target length by up to 5x to reach a maximum difference of 50%
// decrease target length by up to 1.5x to reach a maximum difference of 25%
// this assumes linear changes in velocity
var diff := maximum_wave_speed_ratio - 1;
if( diff > 0.5 ) {
var scale := min( diff / 0.5, 5 );
if( diff > 0.25 ) {
var scale := min( diff / 0.25, 1.5 );
edges_per_wave_length *= scale;
}
};
......
......@@ -74,11 +74,16 @@
vp := 500*sca;
};
// limit vp/vs ratio to 3
// limit maximum vp/vs ratio to 3
var sca := vp / vs;
if( sca > 3 ) {
vp := 3*vs;
};
// limit minimum vp/vs ratio to sqrt(2) (lower means negative lambda)
if( sca < 1.415 ) {
vp:= 1.415*vs;
};
]]>
</normalization_rule>
</ucvm>
......
#!/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.
#
# 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
# Runs the meshing script.
##
#PBS -l walltime=96:00:00,nodes=1:ppn=1
#PBS -N la_habra_flat
#PBS -o la_habra_flat.out
#PBS -j oe
#PBS -q skylake-gen2big
#PBS -v no_beeond=true
cd $PBS_O_WORKDIR
export PATH=~/edge/deps/bin/:$PATH
export PATH=~/software/gmsh-4.5.1/bin/:$PATH
date
bash generate_flat.sh 2>&1 | tee $PBS_O_WORKDIR/mesh_la_habra_flat.progress
date
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