Added scripts and templates for 2D plane wave convergence settings.

parent 6c5e7174
Plane Waves (2D)
================
This directory contains input and output for two-dimensional 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 (anbreuer AT ucsd.edu)
@section LICENSE
Copyright (c) 2019, Alexander Breuer
Copyright (c) 2016-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
Convergence setting two-dimensional simulations.
-->
<edge>
<cfr>
<mesh>
<in>
<base>{{i_meshBase}}</base>
<extension>{{i_meshExt}}</extension>
</in>
<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>
<initial_values>
<![CDATA[
var n[2] := { 1.0/sqrt(2.0), 1.0/sqrt(2.0) };
var k := ( 2.0 * pi ) / 50.0;
var scale := sin( x*k + y*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 r2[5] := {};
var r5[5] := {};
r2[0] := -2.0 * mu * n[0] * n[1];
r2[1] := 2.0 * mu * n[0] * n[1];
r2[2] := mu * ( n[0]*n[0] - n[1]*n[1]);
r2[3] := -n[1] * cs;
r2[4] := n[0] * cs;
r5[0] := lambda + 2.0 * mu * n[0] * n[0];
r5[1] := lambda + 2.0 * mu * n[1] * n[1];
r5[2] := 2.0 * mu * n[0] * n[1];
r5[3] := -n[0] * cp;
r5[4] := -n[1] * cp;
q := (r2 + r5) * scale;
]]>
</initial_values>
<!-- length of the diagonal, cp is 2 -->
<end_time>141.4213562373</end_time>
</setups>
<output>
<error_norms>
<reference_values>
<![CDATA[
var n[2] := { 1.0/sqrt(2.0), 1.0/sqrt(2.0) };
var k := ( 2.0 * pi ) / 50.0;
var scale := sin( x*k + y*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 r2[5] := {};
var r5[5] := {};
r2[0] := -2.0 * mu * n[0] * n[1];
r2[1] := 2.0 * mu * n[0] * n[1];
r2[2] := mu * ( n[0]*n[0] - n[1]*n[1]);
r2[3] := -n[1] * cs;
r2[4] := n[0] * cs;
r5[0] := lambda + 2.0 * mu * n[0] * n[0];
r5[1] := lambda + 2.0 * mu * n[1] * n[1];
r5[2] := 2.0 * mu * n[0] * n[1];
r5[3] := -n[0] * cp;
r5[4] := -n[1] * cp;
q := (r2 + r5) * scale;
]]>
</reference_values>
<type>sout_file</type>
<file>{{i_errorXml}}</file>
</error_norms>
</output>
</cfr>
</edge>
#!/usr/bin/env node
/**
* @file This file is part of EDGE.
*
* @author Alexander Breuer (breuer AT mytum.de)
*
* @section LICENSE
* Copyright (c) 2019, 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 the EDGE configs.
**/
'use strict';
var nunjucks = require('nunjucks');
var l_fs = require('fs-extra');
// minimum edge lengths
var l_cls = [25, 20, 15, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1];
var l_base = ['lts', 'gts_on_lts', 'gts'];
var l_parts = [1, 13];
for( var l_cl = 0; l_cl < l_cls.length; l_cl++ ) {
for( var l_ty = 0; l_ty < l_base.length; l_ty++ ) {
for( var l_pa = 0; l_pa < l_parts.length; l_pa++ ) {
console.log( 'generating config for char length / type / part:', l_cls[l_cl], '/', l_base[l_ty], '/', l_parts[l_pa] );
var l_meshBase = 'meshes/gen/ascii/' + l_base[l_ty] + '_' + l_cls[l_cl];
var l_meshExt = '.msh';
var l_config = 'gen/' + l_base[l_ty] + '_cl_' + l_cls[l_cl] + '_pa_1.xml';
if( l_base[l_ty] == 'lts' ) {
l_meshBase = 'meshes/gen/hdf5/' + l_base[l_ty] + '_cl_' + l_cls[l_cl] + '_pa_' + l_parts[l_pa];
l_meshExt = '.h5m';
l_config = 'gen/' + l_base[l_ty] + '_cl_' + l_cls[l_cl] + '_pa_' + l_parts[l_pa] + '.xml';
}
else if( l_base[l_ty] == 'gts_on_lts' ) {
l_meshBase = 'meshes/gen/ascii/lts_' + l_cls[l_cl];
if( l_parts[l_pa] != 1 ) continue;
}
else {
if( l_parts[l_pa] != 1 ) continue;
}
l_fs.outputFile(
l_config,
nunjucks.render(
'config.njk', {
i_meshBase: l_meshBase,
i_meshExt: l_meshExt,
i_errorXml: 'errors/' + l_base[l_ty] + '_cl_' + l_cls[l_cl] + '_pa_' + l_parts[l_pa] + '.xml'
}
),
function(l_err) {
if(l_err) return console.log( l_err );
}
)
}
}
}
console.log( 'done' )
<?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
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 config.
-->
<edge_v>
<mesh>
<periodic>106</periodic>
{%- if i_nParts > 1 %}
<n_partitions>{{i_nParts}}</n_partitions>
{%- endif %}
<files>
<in>{{i_meshIn}}</in>
<out>{{i_meshOut}}.h5m</out>
{%- if i_nParts > 1 %}
<out_by_partition>
<base>{{i_meshOut}}</base>
<extension>.h5m</extension>
</out_by_partition>
{%- endif %}
</files>
</mesh>
<time>
<n_groups>6</n_groups>
{%- if i_nParts == 1 %}
<files>
<out_time_steps>{{i_statsOut}}</out_time_steps>
</files>
{%- endif %}
</time>
</edge_v>
#!/usr/bin/env node
/**
* @file This file is part of EDGE.
*
* @author Alexander Breuer (breuer AT mytum.de)
*
* @section LICENSE
* Copyright (c) 2019, 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 the gmsh- and EDGE-V configs.
**/
'use strict';
var nunjucks = require('nunjucks');
var l_fs = require('fs-extra');
// minimum edge lengths
var l_cls = [25, 20, 15, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1];
var l_base = ['lts', 'gts'];
var l_parts = [1, 13];
for( var l_cl = 0; l_cl < l_cls.length; l_cl++ ) {
for( var l_ty = 0; l_ty < l_base.length; l_ty++ ) {
console.log( 'generating gmsh config for char length / type:', l_cls[l_cl], '/', l_base[l_ty] )
l_fs.outputFile(
'gen/configs/gmsh/' + l_base[l_ty] + '_' + l_cls[l_cl] + '.geo',
nunjucks.render(
'mesh.njk', {
i_cl: l_cls[l_cl],
i_meshBase: '../../../' + l_base[l_ty] + '_base.geo',
}
),
function(l_err) {
if(l_err) return console.log( l_err );
}
)
}
for( var l_pa = 0; l_pa < l_parts.length; l_pa++ ) {
console.log( 'generating EDGE-V config for char length / nParts:', l_cls[l_cl], '/', l_parts[l_pa] )
l_fs.outputFile(
'gen/configs/edge_v/lts_cl_' + l_cls[l_cl] + '_pa_' + l_parts[l_pa] + '.xml',
nunjucks.render(
'edge_v.njk', {
i_meshIn: 'gen/ascii/lts_' + l_cls[l_cl] + '.msh',
i_nParts: l_parts[l_pa],
i_meshOut: 'gen/hdf5/lts_cl_' + l_cls[l_cl] + '_pa_' + l_parts[l_pa],
i_statsOut: 'gen/stats/edge_v_' + l_cls[l_cl] + '.csv',
}
),
function(l_err) {
if(l_err) return console.log( l_err );
}
)
}
}
console.log( 'done' )
#!/bin/bash
##
# @file This file is part of EDGE.
#
# @author Alexander Breuer (breuer AT mytum.de)
#
# @section LICENSE
# Copyright (c) 2019, 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 the meshes.
##
echo "hostname: $(hostname)"
echo "gmsh-version:"
gmsh --version
rm -r gen 2> /dev/null
mkdir -p gen/ascii gen/hdf5 gen/logs
./gen_configs.js
for l_cl in 25 20 15 10 9 8 7 6 5 4 3 2 1
do
for l_ty in gts lts
do
echo "$(date) running gmsh char length ${l_cl} for type ${l_ty}"
gmsh -2 -format msh2 gen/configs/gmsh/${l_ty}_${l_cl}.geo -o gen/ascii/${l_ty}_${l_cl}.msh 2>&1 > gen/logs/${l_ty}_${l_cl}.msh.log
done
for l_pa in 1 13
do
echo "$(date) running EDGE-V for char length ${l_cl} for nParts ${l_pa}"
edge_v -x gen/configs/edge_v/lts_cl_${l_cl}_pa_${l_pa}.xml 2>&1 > gen/logs/lts_cl_${l_cl}_pa_${pa}.h5m.log
done
done
/**
* @file This file is part of EDGE.
*
* @author Alexander Breuer (breuer AT mytum.de)
*
* @section LICENSE
* Copyright (c) 2019, 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
* Tria3 mesh for GTS convergence settings solving the elastic wave equations.
**/
// define mesh size
size = 100;
// domain
Point(1) = { 0, 0, 0, cl };
Point(2) = { size, 0, 0, cl };
Point(3) = { size, size, 0, cl };
Point(4) = { 0, size, 0, cl };
Line(1) = {1, 2};
Line(2) = {2, 3};
Line(3) = {3, 4};
Line(4) = {4, 1};
Line Loop(101) = { 1, 2, 3, 4};
Plane Surface(201) = {101};
// volume
Physical Surface("region_0") = {201};
// periodic boundaries
Periodic Line {1} = {-3};
Periodic Line {2} = {-4};
// here's the boundary tag.
Physical Line(106) = {1, 2, 3, 4};
/**
* @file This file is part of EDGE.
*
* @author Alexander Breuer (breuer AT mytum.de)
*
* @section LICENSE
* Copyright (c) 2019, 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
* Tria3 mesh for LTS convergence settings solving the elastic wave equations.
**/
// domain
Point(1) = { 0, 0, 0, cl };
Point(2) = { 100, 0, 0, cl };
Point(3) = { 100, 100, 0, cl };
Point(4) = { 0, 100, 0, cl };
Line(1) = {1, 2};
Line(2) = {2, 3};
Line(3) = {3, 4};
Line(4) = {4, 1};
Line Loop(101) = { 1, 2, 3, 4};
Plane Surface(201) = {101};
// volume
Physical Surface("region_0") = {201};
// add mesh refinement to trigger LTS
Field[1] = Box;
Field[1].VIn = cl/6;
Field[1].VOut = cl;
Field[1].XMin = 60;
Field[1].XMax = 70;
Field[1].YMin = 65;
Field[1].YMax = 80;
Field[1].ZMin = 0;
Field[1].ZMax = 0;
Point(101) = {40, 10, 0};
Field[2] = Attractor;
Field[2].NodesList = {101};
Field[3] = Threshold;
Field[3].IField = 2;
Field[3].LcMin = cl/8;
Field[3].LcMax = cl;
Field[3].DistMin = 2;
Field[3].DistMax = 10;
Field[4] = Box;
Field[4].VIn = cl/3;
Field[4].VOut = cl;
Field[4].XMin = 0;
Field[4].XMax = 20;
Field[4].YMin = 80;
Field[4].YMax = 90;
Field[4].ZMin = 0;
Field[4].ZMax = 0;
Field[5] = Min;
Field[5].FieldsList = {1,3,4};
Background Field = 5;
// periodic boundaries
Periodic Line {1} = {-3};
Periodic Line {2} = {-4};
// here's the boundary tag.
Physical Line(106) = {1, 2, 3, 4};
/**
* @file This file is part of EDGE.
*
* @author Alexander Breuer (breuer AT mytum.de)
*
* @section LICENSE
* Copyright (c) 2019, 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
* Template for the mesh specs.
**/
cl={{i_cl}};
Include "{{i_meshBase}}";
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