<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Hi Elizabeth,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Correct - there is no guarantee that the elements are generated</p>
<p style="margin-top:0;margin-bottom:0">with any particular orientation (except if you use genbox).</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">You have access to all the variables in the code. Typically, usrdat2() or</p>
<p style="margin-top:0;margin-bottom:0">userchk() are good places to query.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Use usrdat2() if you want to set things up prior to the start of the computation. Use userchk() if you want to set things up during or just at the very start of the computation.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">A common usage mode:</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">subroutine userchk()</p>
<p style="margin-top:0;margin-bottom:0">...</p>
<p style="margin-top:0;margin-bottom:0">if (istep.eq.0) then</p>
<p style="margin-top:0;margin-bottom:0"> check whatever...</p>
<p style="margin-top:0;margin-bottom:0">endif</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">The advantage of checking in userchk() on step 0 is that all of the preliminary variables (including initial conditions) are set and ready to go.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">The advantage of using usrdat2() is that the geometry is ready (i.e., xm1, ym1, zm1), but the geometric factors are recomputed after usrdat2 is called, so that you can _morph_ the geometry (i.e., make a smooth and _continuous_
transformation). You cannot, say, rotate individual elements in usrdat2() because that would result in a topological change in the mesh connectivity and at present Nek5000 does not have a mechanism to discover that change. (Connectivity is established by
genmap.)</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">hth,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Paul</p>
<p style="margin-top:0;margin-bottom:0"><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> Tuesday, November 21, 2017 9:11:48 PM<br>
<b>To:</b> nek5000-users<br>
<b>Subject:</b> [Nek5000-users] óollocation of i,j,k in each spectral element</font>
<div> </div>
</div>
<div><br>
<br>
<span style="font-family:Arial,Tahoma,Verdana,sans-serif">Hi, Neks!</span><br style="font-family:Arial,Tahoma,Verdana,sans-serif">
<br style="font-family:Arial,Tahoma,Verdana,sans-serif">
<span style=""><font face="Arial, Tahoma, Verdana, sans-serif">I am working with a complex geometry witch was built in gambit.</font><span style="font-family:Arial,Tahoma,Verdana,sans-serif">And I want to change positions of some points in spectral elements.
I've read in documentation that i,j,k,e in xm1(i,j,k,e), for example, are changed from 1 to nx1,ny1,nz1 and nelv respectively. But during my tests it's seemed that in different elements x,y,z axis not always correspond to the global coordinate system. Am I
right?</span><br style="font-family:Arial,Tahoma,Verdana,sans-serif">
<br style="font-family:Arial,Tahoma,Verdana,sans-serif">
<span style="font-family:Arial,Tahoma,Verdana,sans-serif">And how could I find out the principle of collocation of i,j,k in each spectral element?</span><span style="font-size:13px; white-space:nowrap"><font face="arial, sans-serif"> </font></span><span style=""><br>
</span></span><br style="font-family:Arial,Tahoma,Verdana,sans-serif">
<span style="font-family:Arial,Tahoma,Verdana,sans-serif">Best regards,</span><br style="font-family:Arial,Tahoma,Verdana,sans-serif">
<span style="font-family:Arial,Tahoma,Verdana,sans-serif">Elizabeth</span><br>
</div>
</body>
</html>