Commit c2e8cec6 authored by Alexander Nikolas Breuer's avatar Alexander Nikolas Breuer
Browse files

Added configs of 2D convergence tests for the advection equation.

parent be7e2a1f
Configs for the 2D Advection Convergence Setting
================================================
Used commands:
.. code-block:: bash
./gen_configs.js
<?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) 2021, Friedrich Schiller University Jena
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
Template for 2D advection convergence setting.
-->
<edge>
<cfr>
<mesh>
<in>
<base>{{i_meshBase}}</base>
<extension>{{i_meshExt}}</extension>
</in>
<boundary>
<periodic>106</periodic>
</boundary>
</mesh>
<setups>
<initial_values>
<![CDATA[
var k := 1;
var x_sca := 2 * PI * x / 10;
var y_sca := 2 * PI * y / 10;
x_sca := x_sca * k;
y_sca := y_sca * k;
q[0] := sin( x_sca ) * cos( y_sca)
]]>
<![CDATA[
var k := 2;
var x_sca := 2 * PI * x / 10;
var y_sca := 2 * PI * y / 10;
x_sca := x_sca * k;
y_sca := y_sca * k;
q[0] := sin( x_sca ) * cos( y_sca)
]]>
<![CDATA[
var k := 3;
var x_sca := 2 * PI * x / 10;
var y_sca := 2 * PI * y / 10;
x_sca := x_sca * k;
y_sca := y_sca * k;
q[0] := sin( x_sca ) * cos( y_sca)
]]>
<![CDATA[
var k := 4;
var x_sca := 2 * PI * x / 10;
var y_sca := 2 * PI * y / 10;
x_sca := x_sca * k;
y_sca := y_sca * k;
q[0] := sin( x_sca ) * cos( y_sca)
]]>
<![CDATA[
var k := 5;
var x_sca := 2 * PI * x / 10;
var y_sca := 2 * PI * y / 10;
x_sca := x_sca * k;
y_sca := y_sca * k;
q[0] := sin( x_sca ) * cos( y_sca)
]]>
<![CDATA[
var k := 6;
var x_sca := 2 * PI * x / 10;
var y_sca := 2 * PI * y / 10;
x_sca := x_sca * k;
y_sca := y_sca * k;
q[0] := sin( x_sca ) * cos( y_sca)
]]>
<![CDATA[
var k := 7;
var x_sca := 2 * PI * x / 10;
var y_sca := 2 * PI * y / 10;
x_sca := x_sca * k;
y_sca := y_sca * k;
q[0] := sin( x_sca ) * cos( y_sca)
]]>
<![CDATA[
var k := 8;
var x_sca := 2 * PI * x / 10;
var y_sca := 2 * PI * y / 10;
x_sca := x_sca * k;
y_sca := y_sca * k;
q[0] := sin( x_sca ) * cos( y_sca)
]]>
</initial_values>
<end_time>20</end_time>
</setups>
<output>
<error_norms>
<reference_values>
<![CDATA[
var k := 1;
var x_sca := 2 * PI * x / 10;
var y_sca := 2 * PI * y / 10;
x_sca := x_sca * k;
y_sca := y_sca * k;
q[0] := sin( x_sca ) * cos( y_sca)
]]>
<![CDATA[
var k := 2;
var x_sca := 2 * PI * x / 10;
var y_sca := 2 * PI * y / 10;
x_sca := x_sca * k;
y_sca := y_sca * k;
q[0] := sin( x_sca ) * cos( y_sca)
]]>
<![CDATA[
var k := 3;
var x_sca := 2 * PI * x / 10;
var y_sca := 2 * PI * y / 10;
x_sca := x_sca * k;
y_sca := y_sca * k;
q[0] := sin( x_sca ) * cos( y_sca)
]]>
<![CDATA[
var k := 4;
var x_sca := 2 * PI * x / 10;
var y_sca := 2 * PI * y / 10;
x_sca := x_sca * k;
y_sca := y_sca * k;
q[0] := sin( x_sca ) * cos( y_sca)
]]>
<![CDATA[
var k := 5;
var x_sca := 2 * PI * x / 10;
var y_sca := 2 * PI * y / 10;
x_sca := x_sca * k;
y_sca := y_sca * k;
q[0] := sin( x_sca ) * cos( y_sca)
]]>
<![CDATA[
var k := 6;
var x_sca := 2 * PI * x / 10;
var y_sca := 2 * PI * y / 10;
x_sca := x_sca * k;
y_sca := y_sca * k;
q[0] := sin( x_sca ) * cos( y_sca)
]]>
<![CDATA[
var k := 7;
var x_sca := 2 * PI * x / 10;
var y_sca := 2 * PI * y / 10;
x_sca := x_sca * k;
y_sca := y_sca * k;
q[0] := sin( x_sca ) * cos( y_sca)
]]>
<![CDATA[
var k := 8;
var x_sca := 2 * PI * x / 10;
var y_sca := 2 * PI * y / 10;
x_sca := x_sca * k;
y_sca := y_sca * k;
q[0] := sin( x_sca ) * cos( y_sca)
]]>
</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) 2021, Friedrich Schiller University Jena
* 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');
const { exit } = require('process');
for( var l_ty of ['quad4r', 'tria3'] ) {
for( var l_ts of ['lts', 'gts'] ) {
for( var l_cl of [2, 1.25, 1, 0.625, 0.5, 0.4, 0.3125, 0.25, 0.2, 0.1] ) {
if( l_ts == 'lts' && l_ty != 'tria3' ) {
continue;
}
for( var l_pa of ['1', '8'] ) {
for( var l_ro of ['0', '1' ] ) {
var l_id = l_ty + '_' + l_ts + '_cl_' + l_cl + '_pa_' + l_pa;
if( l_ro == 1 ) {
if( l_pa == '1' ) {
continue;
}
l_id = l_id + '_reorder_only';
}
console.log( 'generating EDGE config for char length / element_type / ts / #parts / reorder only:', l_cl, '/', l_ty, '/', l_ts, '/', l_pa, '/', l_ro )
var l_meshBase = 'meshes/gen/edge_v/' + l_id;
var l_meshExt = '.msh';
var l_config = 'gen/' + l_id + '.xml';
l_fs.outputFile(
l_config,
nunjucks.render(
'config.njk', {
i_meshBase: l_meshBase,
i_meshExt: l_meshExt,
i_waveField: 'wave_field/' + l_id + '/wf',
i_receivers: 'receivers/' + l_id,
i_errorXml: 'errors/' + l_id + '.xml'
}
),
function(l_err) {
if(l_err) return console.log( l_err );
}
)
}
}
}
}
}
console.log( 'done' )
Meshes for the 2D Advection Convergence Setting
===============================================
The "reorder_only" GTS-versions of the tria3-mmeshes went through the same reordering as the parallel versions but only have a single partition.
Used commands:
.. code-block:: bash
./generate.sh
<?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) 2021, Friedrich Schiller University Jena
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>
<reorder_only>{{i_reorderOnly}}</reorder_only>
{%- if i_nParts > 1 %}
<n_partitions>{{i_nParts}}</n_partitions>
{%- endif %}
<write_element_annotations>1</write_element_annotations>
<files>
<in>{{i_meshIn}}</in>
<out>
<base>{{i_meshOut}}</base>
<extension>.msh</extension>
</out>
</files>
</mesh>
<time>
<n_groups>{{i_nTimeGroups}}</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) 2021, Friedrich Schiller University Jena
* 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');
const { exit } = require('process');
for( var l_ty of ['quad4r', 'tria3'] ) {
for( var l_ts of ['lts', 'gts'] ) {
for( var l_cl of [2, 1.25, 1, 0.625, 0.5, 0.4, 0.3125, 0.25, 0.2, 0.1] ) {
if( l_ts == 'lts' && l_ty != 'tria3' ) {
continue;
}
console.log( 'generating gmsh config for char length / element_type / ts:', l_cl, '/', l_ty, '/', l_ts )
l_fs.outputFile(
'gen/configs/gmsh/' + l_ty + '_' + l_ts + '_' + l_cl + '.geo',
nunjucks.render(
l_ty+'.njk', {
i_cl: l_cl,
i_meshBase: '../../../' + l_ts + '_base.geo'
}
),
function(l_err) {
if(l_err) return console.log( l_err );
}
)
for( var l_pa of ['1', '8'] ) {
for( var l_ro of ['0', '1' ] ) {
var l_id = l_ty + '_' + l_ts + '_cl_' + l_cl + '_pa_' + l_pa;
if( l_ro == 1 ) {
if( l_pa == '1' ) {
continue;
}
l_id = l_id + '_reorder_only';
}
console.log( 'generating EDGE-V config for char length / element_type / ts / #parts / reorder only:', l_cl, '/', l_ty, '/', l_ts, '/', l_pa, '/', l_ro )
var l_configOut = 'gen/configs/edge_v/' + l_id + '.xml';
var l_nTimeGroups = 1;
if( l_ts == 'lts' ) {
l_nTimeGroups = 5;
}
var l_meshOut = 'gen/edge_v/' + l_id;
var l_statsOut = 'gen/stats/edge_v_' + l_id + '.csv';
l_fs.outputFile(
l_configOut,
nunjucks.render(
'edge_v.njk', {
i_meshIn: 'gen/gmsh/' + l_ty + '_' + l_ts + '_' + l_cl + '.msh',
i_nParts: l_pa,
i_nTimeGroups: l_nTimeGroups,
i_reorderOnly: l_ro,
i_meshOut: l_meshOut,
i_statsOut: l_statsOut,
}
),
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) 2021, Friedrich Schiller University Jena
# 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/gmsh gen/edge_v gen/logs
./gen_configs.js
for l_cl in 2 1.25 1 0.625 0.5 0.4 0.3125 0.25 0.2 0.1
do
for l_ty in tria3 quad4r
do
for l_ts in gts lts
do
if [[ ${l_ty} == 'quad4r' && ${l_ts} == 'lts' ]]
then
continue
fi
echo "$(date) running gmsh char length ${l_cl} for type ${l_ty}_${l_ts}"
gmsh -2 -format msh2 gen/configs/gmsh/${l_ty}_${l_ts}_${l_cl}.geo -o gen/gmsh/${l_ty}_${l_ts}_${l_cl}.msh 2>&1 > gen/logs/${l_ty}_${l_ts}_${l_cl}_gmsh.log
for l_pa in 1 8
do
echo "$(date) running EDGE-V for char length ${l_cl} for nParts ${l_pa}"
edge_v -x gen/configs/edge_v/${l_ty}_${l_ts}_cl_${l_cl}_pa_${l_pa}.xml > gen/logs/${l_ty}_${l_ts}_cl_${l_cl}_pa_${l_pa}_edge_v.log 2>&1
if [[ l_pa -gt 1 && ${l_ts} == 'gts' ]]
then
echo "$(date) running EDGE-V for char length ${l_cl} for nParts ${l_pa} (reorder only)"
edge_v -x gen/configs/edge_v/${l_ty}_${l_ts}_cl_${l_cl}_pa_${l_pa}_reorder_only.xml > gen/logs/${l_ty}_${l_ts}_cl_${l_cl}_pa_${l_pa}_reorder_only_edge_v.log 2>&1
fi
done
done
done
done
/**
* @file This file is part of EDGE.
*
* @author Alexander Breuer (anbreuer AT ucsd.edu)
*
* @section LICENSE
* Copyright (c) 2021, Friedrich Schiller University Jena
* 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
* Simple square domain with periodic boundaries.
**/
// define mesh size
size = 10;
//
// construct the square
//
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};
\ No newline at end of file
/**
* @file This file is part of EDGE.
*
* @author Alexander Breuer (breuer AT mytum.de)
*
* @section LICENSE
* Copyright (c) 2021, Friedrich Schiller University Jena
* 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
* LTS mesh.
**/
// define mesh size
size = 10;
//
// construct the square
//
Point(1) = { 0, 0, 0, cl };