<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p><br>
</p>
<p>Dear ZJ,</p>
<p><br>
</p>
<p>In order to parse the characters in the line, nek uses formatted reads for</p>
<p>curve sides and for BC info.</p>
<p><br>
</p>
<p>The format changes as the number of elements increases in order to accommodate the <span style="font-size: 12pt;">larger integers (i.e., the element number) in the same line,</span></p>
<p><span style="font-size: 12pt;">so you have to check either the reader source or prenek source or a valid</span></p>
<p><span style="font-size: 12pt;">.rea file to see what that formatting looks like.</span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><span style="font-size: 12pt;">I've fixed your pipe mesh here. Note that there is a 2D pipe mesh (but with a different base template) in NekExamples/</span><span style="font-family: Courier; font-size: 12px;">pipe/w2dcyl020a.rea</span></p>
<p><span style="font-family: Courier; font-size: 12px;"><br>
</span></p>
<p><span style="font-family: Courier; font-size: 12px;">Paul</span></p>
<p><br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Nek5000-users <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> Wednesday, October 18, 2017 4:48:38 AM<br>
<b>To:</b> nek5000-users@lists.mcs.anl.gov<br>
<b>Subject:</b> [Nek5000-users] pipe prenek</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi Nek,
<div><br>
</div>
<div>Is there anyone knows how to calculate the curvature in .rea file. Recently, I want to generate a pipe mesh but it doesn't seem like a pipe in which I guess there is something wrong in curvature part in .rea file. I have attached the mesh part below.</div>
<div><br>
</div>
<div> **MESH DATA** 1st line is X of corner 1,2,3,4. 2nd line is Y.</div>
<div> 12 2 12 NEL,NDIM,NELV</div>
<div> ELEMENT 1 [ 1A] GROUP 0</div>
<div> 0.000000 0.350000 0.250000 0.000000 </div>
<div> 0.000000 0.000000 0.250000 0.350000</div>
<div> ELEMENT 2 [ 1B] GROUP 0</div>
<div> 0.500000 0.353554 0.250000 0.350000 </div>
<div> 0.000000 0.353554 0.250000 0.000000 </div>
<div> ELEMENT 3 [ 1C] GROUP 0</div>
<div> 0.000000 0.000000 0.250000 0.353554 </div>
<div> 0.500000 0.350000 0.250000 0.353554</div>
<div> ELEMENT 4 [ 1A] GROUP 0</div>
<div> 0.000000 0.000000 0.250000 0.350000 </div>
<div> 0.000000 -0.350000 -0.250000 0.000000</div>
<div> ELEMENT 5 [ 1B] GROUP 0</div>
<div> 0.000000 0.353554 0.250000 0.000000 </div>
<div> -0.500000 -0.353554 -0.250000 -0.350000</div>
<div> ELEMENT 6 [ 1C] GROUP 0</div>
<div> 0.500000 0.350000 0.250000 0.353554 </div>
<div> 0.000000 0.000000 -0.250000 -0.353554</div>
<div> ELEMENT 7 [ 1A] GROUP 0</div>
<div> 0.000000 -0.350000 -0.250000 0.000000 </div>
<div> 0.000000 0.000000 -0.250000 -0.350000</div>
<div> ELEMENT 8 [ 1B] GROUP 0</div>
<div> -0.500000 -0.353554 -0.250000 -0.350000 </div>
<div> 0.000000 -0.353554 -0.250000 0.000000 </div>
<div> ELEMENT 9 [ 1C] GROUP 0</div>
<div> 0.000000 0.000000 -0.250000 -0.353554 </div>
<div> -0.500000 -0.350000 -0.250000 -0.353554</div>
<div> ELEMENT 10 [ 1A] GROUP 0</div>
<div> 0.000000 0.000000 -0.250000 -0.350000 </div>
<div> 0.000000 0.350000 0.250000 0.000000</div>
<div> ELEMENT 11 [ 1B] GROUP 0</div>
<div> 0.000000 -0.353554 -0.250000 0.000000 </div>
<div> 0.500000 0.353554 0.250000 0.350000</div>
<div> ELEMENT 12 [ 1C] GROUP 0</div>
<div> -0.500000 -0.350000 -0.250000 -0.353554 </div>
<div> 0.000000 0.000000 0.250000 0.353554</div>
<div> ***** CURVED SIDE DATA *****</div>
<div> 8 Curved sides follow IEDGE,IEL,CURVE(I),I=1,5, CCURVE</div>
<div> 1 2 0.50000 0.00000 0.00000 0.00000 0.00000 C</div>
<div> 4 3 0.50000 0.00000 0.00000 0.00000 0.00000 C</div>
<div> 1 5 0.50000 0.00000 0.00000 0.00000 0.00000 C</div>
<div> 4 6 0.50000 0.00000 0.00000 0.00000 0.00000 C</div>
<div> 1 8 0.50000 0.00000 0.00000 0.00000 0.00000 C</div>
<div> 4 9 0.50000 0.00000 0.00000 0.00000 0.00000 C</div>
<div> 1 11 0.50000 0.00000 0.00000 0.00000 0.00000 C</div>
<div> 4 12 0.50000 0.00000 0.00000 0.00000 0.00000 C</div>
<div><br>
</div>
<div><br>
</div>
<div>Kind regards,</div>
<div><br>
</div>
<div>ZJ</div>
</div>
</div>
</body>
</html>