<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style><style type="text/css" id="owaParaStyle"></style>
</head>
<body dir="ltr" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div><br>
</div>
Hi Johan,
<div><br>
</div>
<div>I found that I could merge these with pretex (the text-based version of prenek), which</div>
<div>is what I normally use.</div>
<div><br>
</div>
<div>Here is a little script that also seems to work, given the outputs of genbox on your</div>
<div>two files.</div>
<div><br>
</div>
<div>I call the script "merge2d" and invoke it as:</div>
<div><br>
</div>
<div>merge2d casea caseb casec to merge casea.rea with caseb.rea and yield casec.rea</div>
<div><br>
</div>
<div>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
ln $1.rea tmp_mg1.rea;</p>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
ln $2.rea tmp_mg2.rea;</p>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
pretex << EOF</p>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
tmp_mg3</p>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
1 READ PREVIOUS PARAMETERS</p>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
tmp_mg1</p>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
1 BUILD FROM FILE</p>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
tmp_mg1</p>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
10 IMPORT MESH</p>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
tmp_mg2</p>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
n</p>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
1 END ELEMENTS</p>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
1 ACCEPT MATL,QVOL</p>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
1 ACCEPT B.C.'s</p>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
1 ACCEPT B.C.'s</p>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
1 EXIT</p>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
EOF</p>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
mv tmp_mg3.rea $3.rea</p>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
rm -f *.dra tmp*</p>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
<br>
</p>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
Paul</p>
<p style="margin-right: 0px; margin-left: 0px; line-height: normal; font-family: Courier;">
<br>
</p>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF924960" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> nek5000-users-bounces@lists.mcs.anl.gov [nek5000-users-bounces@lists.mcs.anl.gov] on behalf of nek5000-users@lists.mcs.anl.gov [nek5000-users@lists.mcs.anl.gov]<br>
<b>Sent:</b> Tuesday, October 25, 2016 3:18 AM<br>
<b>To:</b> nek5000-users@lists.mcs.anl.gov<br>
<b>Subject:</b> [Nek5000-users] Mesh consistency check failed for merged 2D meshes<br>
</font><br>
</div>
<div></div>
<div>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p><br>
</p>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<br>
<br>
<p><font face="Calibri,Arial,Helvetica,sans-serif" size="3" color="black"><span style="font-size:12pt; background-color:white"></span></font></p>
<font face="Calibri,Arial,Helvetica,sans-serif" size="3" color="black">
<div style="margin-top:0; margin-bottom:0">Hi,<br>
<br>
I have problems with merging two 2D meshes.<br>
I want to merge two meshes generated with genbox:<br>
<br>
1. walls.box<br>
This mesh is an "Y"-type mesh. It goes from beeing a square of side 10 into a square of side 0.5 via two circles (of radii 1.1 and 1.0).<br>
<br>
2. center.box<br>
This is an "Box"-type mesh. It is a square of size<br>
<br>
%%%%%%%%%%%%%%%%%%%%%%%%<br>
<br>
This is walls.box:<br>
<br>
</div>
<div style="margin-top:0; margin-bottom:0">reafile.rea<br>
2<br>
1<br>
#<br>
Y<br>
4 -8<br>
0. 0.<br>
bbccb<br>
0.5 0.6 1. 1.1 10.<br>
0 1 1<br>
W ,W ,E ,E ,<br>
</div>
<div style="margin-top:0; margin-bottom:0"><br>
%%%%%%%%%%%%%%%%%<br>
<br>
</div>
<div style="margin-top:0; margin-bottom:0">And this is center.box:</div>
<div style="margin-top:0; margin-bottom:0"><br>
</div>
<div style="margin-top:0; margin-bottom:0">reafile.rea<br>
2<br>
1<br>
#<br>
Box<br>
-2 -2<br>
-0.5 0.5 1.<br>
-0.5 0.5 1.<br>
W ,W ,W ,W ,<br>
<br>
%%%%%%%<br>
<br>
<font face="Calibri,Arial,Helvetica,sans-serif" size="3" color="black">I can plot the two meshes on top of each other, and the elements seem to align perfectly.</font><br>
<br>
I use nekmerge2 (from the example case "expansion") to generate a merged .rea file:<br>
nekmerge2 center walls bottom<br>
<br>
I now obtain a bottom.rea file. I generate bottom.map using genmap (tolerance 0.2).<br>
I compile (using a bottom.usr file and a SIZE file) using makenek.<br>
I run serially using "nek".<br>
<br>
Now I get several warnings of the type:<br>
<br>
WARNING2 Element mesh mismatch at:<br>
I,J,K,IE: 1 2 1 1<br>
Near Y = -0.50000000 -0.41269471 0.0000000 , d: 0.0000000 -0.36629354E-01 2.0000000<br>
<br>
And then "Mesh consistency check failed. EXITING in VRDSMSH."<br>
<br>
No output is generated. What is the problem here? Have I missed some critical aspect of merging meshes?<br>
<br>
Best,<br>
<br>
Johan<br>
</div>
</font>
<p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>