Commit 9c78c08c authored by Alex Breuer's avatar Alex Breuer
Browse files

Added initial values to SWE continuity config.

Fixed order in SWE continuity config.
parent c6ab425f
......@@ -5,7 +5,7 @@
@author Alexander Breuer (anbreuer AT ucsd.edu)
@section LICENSE
Copyright (c) 2016-2017, Regents of the University of California
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:
......@@ -24,6 +24,7 @@
<edge>
<build>
<element_type>line</element_type>
<order>1</order>
<equations>swe</equations>
<moab>no</moab>
</build>
......@@ -39,7 +40,194 @@
</mesh>
<setups>
<type_default>dam_break</type_default>
<initial_values>
<!-- dam break #1 -->
<![CDATA[
if( x > 40 and x < 60 ) {
q[0] := 15;
}
else {
q[0] := 10;
};
q[1] := 0;
]]>
<!-- dam break #2 -->
<![CDATA[
if( x > 45 and x < 55 ) {
q[0] := 15;
}
else {
q[0] := 10;
};
q[1] := 0;
]]>
<!-- dam break #3 -->
<![CDATA[
if( x > 35 and x < 65 ) {
q[0] := 15;
}
else {
q[0] := 10;
};
q[1] := 0;
]]>
<!-- dam break #4 -->
<![CDATA[
if( x > 40 and x < 60 ) {
q[0] := 14;
}
else {
q[0] := 10;
};
q[1] := 0;
]]>
<!-- dam break #5 -->
<![CDATA[
if( x > 40 and x < 60 ) {
q[0] := 13;
}
else {
q[0] := 10;
};
q[1] := 0;
]]>
<!-- dam break #6 -->
<![CDATA[
if( x > 40 and x < 60 ) {
q[0] := 12;
}
else {
q[0] := 10;
};
q[1] := 0;
]]>
<!-- dam break #7 -->
<![CDATA[
if( x > 40 and x < 60 ) {
q[0] := 11;
}
else {
q[0] := 10;
};
q[1] := 0;
]]>
<!-- flat #8 -->
<![CDATA[
q[0] := 10;
q[1] := 0;
]]>
<!-- two shock (center), two rare (periodic boundary) #9 -->
<![CDATA[
if( x < 50 ) {
q[1] := 30;
}
else {
q[1] := -30;
};
q[0] := 10;
]]>
<!-- two shock (center), two rare (periodic boundary) #10 -->
<![CDATA[
if( x < 50 ) {
q[1] := 30;
}
else {
q[1] := -30;
};
q[0] := 11;
]]>
<!-- two shock (center), two rare (periodic boundary) #11 -->
<![CDATA[
if( x < 50 ) {
q[1] := 30;
}
else {
q[1] := -30;
};
q[0] := 12;
]]>
<!-- two shock (center), two rare (periodic boundary) #12 -->
<![CDATA[
if( x < 50 ) {
q[1] := 30;
}
else {
q[1] := -30;
};
q[0] := 13;
]]>
<!-- two shock (center), two rare (periodic boundary) #13 -->
<![CDATA[
if( x < 50 ) {
q[1] := 30;
}
else {
q[1] := -30;
};
q[0] := 14;
]]>
<!-- two shock (center), two rare (periodic boundary) #14 -->
<![CDATA[
if( x < 50 ) {
q[1] := 10;
}
else {
q[1] := -10;
};
q[0] := 10;
]]>
<!-- two shock (center), two rare (periodic boundary) #15 -->
<![CDATA[
if( x < 50 ) {
q[1] := 20;
}
else {
q[1] := -20;
};
q[0] := 10;
]]>
<!-- two shock (center), two rare (periodic boundary) #16 -->
<![CDATA[
if( x < 50 ) {
q[1] := 25;
}
else {
q[1] := -25;
};
q[0] := 10;
]]>
</initial_values>
<end_time>5</end_time>
</setups>
......
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