Commit 7df91b5d authored by Alexander Nikolas Breuer's avatar Alexander Nikolas Breuer
Browse files

Added circular dam break setting.

parent fdb537b2
Circular Dam Break
==================
This directory contain a circular dam-break setting.
Details are given in the respective directories.
* Contact: Alexander Breuer
<?xml version="1.0" encoding="UTF-8"?>
<!--
@file This file is part of EDGE.
@author Alexander Breuer (alex.breuer AT uni-jena.de)
@section LICENSE
Copyright (c) 2020, 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
Config for circular dam-break setting.
-->
<edge>
<cfr>
<mesh>
<in>
<base>meshes/gen/edge_v/square</base>
<extension>.msh</extension>
</in>
<boundary>
<outflow>105</outflow>
</boundary>
</mesh>
<setups>
<!-- set up circular dam-break problem with 10m radius -->
<initial_values>
<![CDATA[
// water height
if( sqrt(x*x + y*y) < 10 ) {
q[0] := 10;
}
else {
q[0] := 8;
};
// moementum
q[1] := 0;
]]>
</initial_values>
<end_time>40</end_time>
</setups>
<output>
<wave_field>
<type>vtk_binary</type>
<file>dam_break/wf</file>
<int>1</int>
</wave_field>
</output>
</cfr>
</edge>
Square Mesh
===========
Commands for the mesh generation and annotation:
.. code-block:: bash
mkdir -p gen/edge_v gen/gmsh gen/logs
gmsh -3 square.geo -o gen/gmsh/square.msh 2>&1 | tee gen/logs/gmsh.log
edge_v -x edge_v.xml 2>&1 | tee gen/logs/edge_v.log
<?xml version="1.0" encoding="UTF-8"?>
<!--
@file This file is part of EDGE.
@author Alexander Breuer (alex.breuer AT uni-jena.de)
@section LICENSE
Copyright (c) 2020, 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 configuration for the dam-break problem.
-->
<edge_v>
<mesh>
<periodic>no</periodic>
<write_element_annotations>true</write_element_annotations>
<n_partitions>1</n_partitions>
<files>
<in>gen/gmsh/square.msh</in>
<out>
<base>gen/edge_v/square</base>
<extension>.msh</extension>
</out>
</files>
</mesh>
<time>
<n_groups>1</n_groups>
</time>
</edge_v>
/**
* @file This file is part of EDGE.
*
* @author Alexander Breuer (alex.breuer AT uni-jena.de)
*
* @section LICENSE
* Copyright (c) 2020, 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
* Setup of a square domain [-100, 100]^2 with a factor-three refinement in the box [0, 75]x[-25, 50].
**/
cl = 2;
// define modeling geometry
Point(1) = {-100, -100, 0, cl };
Point(2) = { 100, -100, 0, cl };
Point(3) = { 100, 100, 0, cl };
Point(4) = {-100, 100, 0, cl };
Line(1) = { 1, 2 };
Line(2) = { 2, 3 };
Line(3) = { 3, 4 };
Line(4) = { 4, 1 };
Line Loop(1) = {1,2,3,4};
Plane Surface(1) = {1};
Physical Surface(1) = {1};
// set outflow boundaries
Physical Line(105) = {1,2,3,4};
// add refinement box
Field[1] = Box;
Field[1].VIn = cl / 3;
Field[1].VOut = cl;
Field[1].XMin = 0;
Field[1].XMax = 75;
Field[1].YMin = -25;
Field[1].YMax = 50;
Background Field = 1;
Circular Dam Break Problem
==========================
.. code-block:: bash
edge -x configs/dam_break.xml 2>&1 | tee dam_break.log
../configs
\ No newline at end of file
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
../meshes/
\ No newline at end of file
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