Added scripts and templates for 3D elastic plane wave convergence settings.

parent a4430abd
Plane Waves (3D)
================
This directory contains input and output for three-dimensional elastic convergence benchmarks using plane waves.
The velocity model is homogeneous.
The wave propagate in diagonal direction.
After the given simulation time, the solution is supposed to match the initial conditions.
* Contact: Alex Breuer
<?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) 2019, Alexander Breuer
Copyright (c) 2016, 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
3D Convergence benchmarks for the elastic wave equations.
-->
<edge>
<cfr>
<mesh>
<files>
<in>{{i_meshIn}}</in>
</files>
<boundary>
<periodic>106</periodic>
</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>1</rho>
<lambda>2</lambda>
<mu>1</mu>
</domain>
</velocity_model>
<setups>
<end_time>173.205080756887729352744634150587236694280525381038</end_time>
<!-- Sets up plane waves as a combination of eigenvectors in diagonal direction n=(1,1,1).
The choice of r8 is non-unique, since cs has two eigenvalues.
We repeat the setups after every 4 fused simulations.
-->
<initial_values>
<!--
0 - 3
-->
<!-- k = 2pi/50 -->
<![CDATA[
var sqrtI := { 1.0/sqrt(3.0) };
var k := ( 2.0 * pi ) / 100.0;
var scale := sin( x*k + y*k + z*k );
var mu := 1.0;
var lambda := 2.0;
var rho := 1.0;
var cs := sqrt( mu / rho );
var cp := sqrt( (lambda + 2*mu) / rho );
var r1[9] := {};
var r8[9] := {};
r1[0] := 4.0 * sqrtI;
r1[1] := 4.0 * sqrtI;
r1[2] := 4.0 * sqrtI;
r1[3] := 1.0 * sqrtI;
r1[4] := 1.0 * sqrtI;
r1[5] := 1.0 * sqrtI;
r1[6] := 1.0;
r1[7] := 1.0;
r1[8] := 1.0;
r8[0] := 2.0 * sqrtI;
r8[1] := 0.0;
r8[2] := -2.0 * sqrtI;
r8[3] := 1.0 * sqrtI;
r8[4] := -1.0 * sqrtI;
r8[5] := 0.0;
r8[6] := -1.0;
r8[7] := 0.0;
r8[8] := 1.0;
q := (r1 + r8) * scale;
]]>
<!-- k = 4pi/50 -->
<![CDATA[
var sqrtI := { 1.0/sqrt(3.0) };
var k := ( 4.0 * pi ) / 50.0;
var scale := sin( x*k + y*k + z*k );
var mu := 1.0;
var lambda := 2.0;
var rho := 1.0;
var cs := sqrt( mu / rho );
var cp := sqrt( (lambda + 2*mu) / rho );
var r1[9] := {};
var r8[9] := {};
r1[0] := 4.0 * sqrtI;
r1[1] := 4.0 * sqrtI;
r1[2] := 4.0 * sqrtI;
r1[3] := 1.0 * sqrtI;
r1[4] := 1.0 * sqrtI;
r1[5] := 1.0 * sqrtI;
r1[6] := 1.0;
r1[7] := 1.0;
r1[8] := 1.0;
r8[0] := 2.0 * sqrtI;
r8[1] := 0.0;
r8[2] := -2.0 * sqrtI;
r8[3] := 1.0 * sqrtI;
r8[4] := -1.0 * sqrtI;
r8[5] := 0.0;
r8[6] := -1.0;
r8[7] := 0.0;
r8[8] := 1.0;
q := (r1 + r8) * scale;
]]>
<!-- k = 8pi/50 -->
<![CDATA[
var sqrtI := { 1.0/sqrt(3.0) };
var k := ( 8.0 * pi ) / 50.0;
var scale := sin( x*k + y*k + z*k );
var mu := 1.0;
var lambda := 2.0;
var rho := 1.0;
var cs := sqrt( mu / rho );
var cp := sqrt( (lambda + 2*mu) / rho );
var r1[9] := {};
var r8[9] := {};
r1[0] := 4.0 * sqrtI;
r1[1] := 4.0 * sqrtI;
r1[2] := 4.0 * sqrtI;
r1[3] := 1.0 * sqrtI;
r1[4] := 1.0 * sqrtI;
r1[5] := 1.0 * sqrtI;
r1[6] := 1.0;
r1[7] := 1.0;
r1[8] := 1.0;
r8[0] := 2.0 * sqrtI;
r8[1] := 0.0;
r8[2] := -2.0 * sqrtI;
r8[3] := 1.0 * sqrtI;
r8[4] := -1.0 * sqrtI;
r8[5] := 0.0;
r8[6] := -1.0;
r8[7] := 0.0;
r8[8] := 1.0;
q := (r1 + r8) * scale;
]]>
<!-- k = 16pi/50 -->
<![CDATA[
var sqrtI := { 1.0/sqrt(3.0) };
var k := ( 16.0 * pi ) / 50.0;
var scale := sin( x*k + y*k + z*k );
var mu := 1.0;
var lambda := 2.0;
var rho := 1.0;
var cs := sqrt( mu / rho );
var cp := sqrt( (lambda + 2*mu) / rho );
var r1[9] := {};
var r8[9] := {};
r1[0] := 4.0 * sqrtI;
r1[1] := 4.0 * sqrtI;
r1[2] := 4.0 * sqrtI;
r1[3] := 1.0 * sqrtI;
r1[4] := 1.0 * sqrtI;
r1[5] := 1.0 * sqrtI;
r1[6] := 1.0;
r1[7] := 1.0;
r1[8] := 1.0;
r8[0] := 2.0 * sqrtI;
r8[1] := 0.0;
r8[2] := -2.0 * sqrtI;
r8[3] := 1.0 * sqrtI;
r8[4] := -1.0 * sqrtI;
r8[5] := 0.0;
r8[6] := -1.0;
r8[7] := 0.0;
r8[8] := 1.0;
q := (r1 + r8) * scale;
]]>
<!--
4 - 7
-->
<!-- k = 2pi/50 -->
<![CDATA[
var sqrtI := { 1.0/sqrt(3.0) };
var k := ( 2.0 * pi ) / 50.0;
var scale := sin( x*k + y*k + z*k );
var mu := 1.0;
var lambda := 2.0;
var rho := 1.0;
var cs := sqrt( mu / rho );
var cp := sqrt( (lambda + 2*mu) / rho );
var r1[9] := {};
var r8[9] := {};
r1[0] := 4.0 * sqrtI;
r1[1] := 4.0 * sqrtI;
r1[2] := 4.0 * sqrtI;
r1[3] := 1.0 * sqrtI;
r1[4] := 1.0 * sqrtI;
r1[5] := 1.0 * sqrtI;
r1[6] := 1.0;
r1[7] := 1.0;
r1[8] := 1.0;
r8[0] := 2.0 * sqrtI;
r8[1] := 0.0;
r8[2] := -2.0 * sqrtI;
r8[3] := 1.0 * sqrtI;
r8[4] := -1.0 * sqrtI;
r8[5] := 0.0;
r8[6] := -1.0;
r8[7] := 0.0;
r8[8] := 1.0;
q := (r1 + r8) * scale;
]]>
<!-- k = 4pi/50 -->
<![CDATA[
var sqrtI := { 1.0/sqrt(3.0) };
var k := ( 4.0 * pi ) / 50.0;
var scale := sin( x*k + y*k + z*k );
var mu := 1.0;
var lambda := 2.0;
var rho := 1.0;
var cs := sqrt( mu / rho );
var cp := sqrt( (lambda + 2*mu) / rho );
var r1[9] := {};
var r8[9] := {};
r1[0] := 4.0 * sqrtI;
r1[1] := 4.0 * sqrtI;
r1[2] := 4.0 * sqrtI;
r1[3] := 1.0 * sqrtI;
r1[4] := 1.0 * sqrtI;
r1[5] := 1.0 * sqrtI;
r1[6] := 1.0;
r1[7] := 1.0;
r1[8] := 1.0;
r8[0] := 2.0 * sqrtI;
r8[1] := 0.0;
r8[2] := -2.0 * sqrtI;
r8[3] := 1.0 * sqrtI;
r8[4] := -1.0 * sqrtI;
r8[5] := 0.0;
r8[6] := -1.0;
r8[7] := 0.0;
r8[8] := 1.0;
q := (r1 + r8) * scale;
]]>
<!-- k = 8pi/50 -->
<![CDATA[
var sqrtI := { 1.0/sqrt(3.0) };
var k := ( 8.0 * pi ) / 50.0;
var scale := sin( x*k + y*k + z*k );
var mu := 1.0;
var lambda := 2.0;
var rho := 1.0;
var cs := sqrt( mu / rho );
var cp := sqrt( (lambda + 2*mu) / rho );
var r1[9] := {};
var r8[9] := {};
r1[0] := 4.0 * sqrtI;
r1[1] := 4.0 * sqrtI;
r1[2] := 4.0 * sqrtI;
r1[3] := 1.0 * sqrtI;
r1[4] := 1.0 * sqrtI;
r1[5] := 1.0 * sqrtI;
r1[6] := 1.0;
r1[7] := 1.0;
r1[8] := 1.0;
r8[0] := 2.0 * sqrtI;
r8[1] := 0.0;
r8[2] := -2.0 * sqrtI;
r8[3] := 1.0 * sqrtI;
r8[4] := -1.0 * sqrtI;
r8[5] := 0.0;
r8[6] := -1.0;
r8[7] := 0.0;
r8[8] := 1.0;
q := (r1 + r8) * scale;
]]>
<!-- k = 16pi/50 -->
<![CDATA[
var sqrtI := { 1.0/sqrt(3.0) };
var k := ( 16.0 * pi ) / 50.0;
var scale := sin( x*k + y*k + z*k );
var mu := 1.0;
var lambda := 2.0;
var rho := 1.0;
var cs := sqrt( mu / rho );
var cp := sqrt( (lambda + 2*mu) / rho );
var r1[9] := {};
var r8[9] := {};
r1[0] := 4.0 * sqrtI;
r1[1] := 4.0 * sqrtI;
r1[2] := 4.0 * sqrtI;
r1[3] := 1.0 * sqrtI;
r1[4] := 1.0 * sqrtI;
r1[5] := 1.0 * sqrtI;
r1[6] := 1.0;
r1[7] := 1.0;
r1[8] := 1.0;
r8[0] := 2.0 * sqrtI;
r8[1] := 0.0;
r8[2] := -2.0 * sqrtI;
r8[3] := 1.0 * sqrtI;
r8[4] := -1.0 * sqrtI;
r8[5] := 0.0;
r8[6] := -1.0;
r8[7] := 0.0;
r8[8] := 1.0;
q := (r1 + r8) * scale;
]]>
<!--
8 - 11
-->
<!-- k = 2pi/50 -->
<![CDATA[
var sqrtI := { 1.0/sqrt(3.0) };
var k := ( 2.0 * pi ) / 50.0;
var scale := sin( x*k + y*k + z*k );
var mu := 1.0;
var lambda := 2.0;
var rho := 1.0;
var cs := sqrt( mu / rho );
var cp := sqrt( (lambda + 2*mu) / rho );
var r1[9] := {};
var r8[9] := {};
r1[0] := 4.0 * sqrtI;
r1[1] := 4.0 * sqrtI;
r1[2] := 4.0 * sqrtI;
r1[3] := 1.0 * sqrtI;
r1[4] := 1.0 * sqrtI;
r1[5] := 1.0 * sqrtI;
r1[6] := 1.0;
r1[7] := 1.0;
r1[8] := 1.0;
r8[0] := 2.0 * sqrtI;
r8[1] := 0.0;
r8[2] := -2.0 * sqrtI;
r8[3] := 1.0 * sqrtI;
r8[4] := -1.0 * sqrtI;
r8[5] := 0.0;
r8[6] := -1.0;
r8[7] := 0.0;
r8[8] := 1.0;
q := (r1 + r8) * scale;
]]>
<!-- k = 4pi/50 -->
<![CDATA[
var sqrtI := { 1.0/sqrt(3.0) };
var k := ( 4.0 * pi ) / 50.0;
var scale := sin( x*k + y*k + z*k );
var mu := 1.0;
var lambda := 2.0;
var rho := 1.0;
var cs := sqrt( mu / rho );
var cp := sqrt( (lambda + 2*mu) / rho );
var r1[9] := {};
var r8[9] := {};
r1[0] := 4.0 * sqrtI;
r1[1] := 4.0 * sqrtI;
r1[2] := 4.0 * sqrtI;
r1[3] := 1.0 * sqrtI;
r1[4] := 1.0 * sqrtI;
r1[5] := 1.0 * sqrtI;
r1[6] := 1.0;
r1[7] := 1.0;
r1[8] := 1.0;
r8[0] := 2.0 * sqrtI;
r8[1] := 0.0;
r8[2] := -2.0 * sqrtI;
r8[3] := 1.0 * sqrtI;
r8[4] := -1.0 * sqrtI;
r8[5] := 0.0;
r8[6] := -1.0;
r8[7] := 0.0;
r8[8] := 1.0;
q := (r1 + r8) * scale;
]]>
<!-- k = 8pi/50 -->
<![CDATA[
var sqrtI := { 1.0/sqrt(3.0) };
var k := ( 8.0 * pi ) / 50.0;
var scale := sin( x*k + y*k + z*k );
var mu := 1.0;
var lambda := 2.0;
var rho := 1.0;
var cs := sqrt( mu / rho );
var cp := sqrt( (lambda + 2*mu) / rho );
var r1[9] := {};
var r8[9] := {};
r1[0] := 4.0 * sqrtI;
r1[1] := 4.0 * sqrtI;
r1[2] := 4.0 * sqrtI;
r1[3] := 1.0 * sqrtI;
r1[4] := 1.0 * sqrtI;
r1[5] := 1.0 * sqrtI;
r1[6] := 1.0;
r1[7] := 1.0;
r1[8] := 1.0;
r8[0] := 2.0 * sqrtI;
r8[1] := 0.0;
r8[2] := -2.0 * sqrtI;
r8[3] := 1.0 * sqrtI;
r8[4] := -1.0 * sqrtI;
r8[5] := 0.0;
r8[6] := -1.0;
r8[7] := 0.0;
r8[8] := 1.0;
q := (r1 + r8) * scale;
]]>
<!-- k = 16pi/50 -->
<![CDATA[
var sqrtI := { 1.0/sqrt(3.0) };
var k := ( 16.0 * pi ) / 50.0;
var scale := sin( x*k + y*k + z*k );
var mu := 1.0;
var lambda := 2.0;
var rho := 1.0;
var cs := sqrt( mu / rho );
var cp := sqrt( (lambda + 2*mu) / rho );
var r1[9] := {};
var r8[9] := {};
r1[0] := 4.0 * sqrtI;
r1[1] := 4.0 * sqrtI;
r1[2] := 4.0 * sqrtI;
r1[3] := 1.0 * sqrtI;
r1[4] := 1.0 * sqrtI;
r1[5] := 1.0 * sqrtI;
r1[6] := 1.0;
r1[7] := 1.0;
r1[8] := 1.0;
r8[0] := 2.0 * sqrtI;
r8[1] := 0.0;
r8[2] := -2.0 * sqrtI;
r8[3] := 1.0 * sqrtI;
r8[4] := -1.0 * sqrtI;
r8[5] := 0.0;
r8[6] := -1.0;
r8[7] := 0.0;
r8[8] := 1.0;
q := (r1 + r8) * scale;
]]>
<!--
12 - 15
-->
<!-- k = 2pi/50 -->
<![CDATA[
var sqrtI := { 1.0/sqrt(3.0) };
var k := ( 2.0 * pi ) / 50.0;
var scale := sin( x*k + y*k + z*k );
var mu := 1.0;
var lambda := 2.0;
var rho := 1.0;
var cs := sqrt( mu / rho );
var cp := sqrt( (lambda + 2*mu) / rho );
var r1[9] := {};
var r8[9] := {};
r1[0] := 4.0 * sqrtI;
r1[1] := 4.0 * sqrtI;
r1[2] := 4.0 * sqrtI;
r1[3] := 1.0 * sqrtI;
r1[4] := 1.0 * sqrtI;
r1[5] := 1.0 * sqrtI;
r1[6] := 1.0;
r1[7] := 1.0;
r1[8] := 1.0;
r8[0] := 2.0 * sqrtI;
r8[1] := 0.0;
r8[2] := -2.0 * sqrtI;
r8[3] := 1.0 * sqrtI;
r8[4] := -1.0 * sqrtI;
r8[5] := 0.0;
r8[6] := -1.0;
r8[7] := 0.0;
r8[8] := 1.0;
q := (r1 + r8) * scale;
]]>
<!-- k = 4pi/50 -->
<![CDATA[
var sqrtI := { 1.0/sqrt(3.0) };
var k := ( 4.0 * pi ) / 50.0;
var scale := sin( x*k + y*k + z*k );
var mu := 1.0;
var lambda := 2.0;
var rho := 1.0;
var cs := sqrt( mu / rho );
var cp := sqrt( (lambda + 2*mu) / rho );
var r1[9] := {};
var r8[9] := {};
r1[0] := 4.0 * sqrtI;
r1[1] := 4.0 * sqrtI;
r1[2] := 4.0 * sqrtI;
r1[3] := 1.0 * sqrtI;
r1[4] := 1.0 * sqrtI;
r1[5] := 1.0 * sqrtI;
r1[6] := 1.0;
r1[7] := 1.0;
r1[8] := 1.0;
r8[0] := 2.0 * sqrtI;
r8[1] := 0.0;
r8[2] := -2.0 * sqrtI;
r8[3] := 1.0 * sqrtI;
r8[4] := -1.0 * sqrtI;
r8[5] := 0.0;
r8[6] := -1.0;
r8[7] := 0.0;
r8[8] := 1.0;
q := (r1 + r8) * scale;
]]>
<!-- k = 8pi/50 -->
<![CDATA[
var sqrtI := { 1.0/sqrt(3.0) };
var k := ( 8.0 * pi ) / 50.0;
var scale := sin( x*k + y*k + z*k );
var mu := 1.0;
var lambda := 2.0;
var rho := 1.0;
var cs := sqrt( mu / rho );
var cp := sqrt( (lambda + 2*mu) / rho );