<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Dear Horan,
<div class=""><br class="">
</div>
<div class="">the best approach I know to import a mesh in Nek5000, is to export your mesh in a exodus format with HEX27 elements (Cubit has this capabilities) and use the exo2nek script to create a binary file .re2. The exo2nek script can be found in the tools
directory and has to be installed. Please read the associated README file for installation instruction.</div>
<div class=""><br class="">
</div>
<div class="">Once it is installed, I suggest you start with a simple geometry (cube or pipe) to run the script, and make sure you have all of the steps right. Note that boundary conditions will have to be set in usrdat2 subroutine of the .usr file:</div>
<div class=""><br class="">
</div>
<div class=""><span style="font-family: monospace, monospace;" class="">do iel=1,nelt</span><br style="font-family: monospace, monospace;" class="">
<span style="font-family: monospace, monospace;" class=""> do ifc=1,2*ndim</span><br style="font-family: monospace, monospace;" class="">
<span style="font-family: monospace, monospace;" class=""> idss = bc(5,ifc,iel,1)</span><br style="font-family: monospace, monospace;" class="">
<span style="font-family: monospace, monospace;" class=""> if (idss.eq.1) cbc(ifc,iel,1)='v </span><font face="monospace, monospace" class="">‘</font></div>
<div class=""><font face="monospace, monospace" class=""> if (idss.eq.2) cbc(ifc,iel,1)=‘O ‘</font></div>
<div class=""><span style="font-family: monospace, monospace;" class=""> if (idss.eq.3) cbc(ifc,iel,1)=‘W '</span><br style="font-family: monospace, monospace;" class="">
<span style="font-family: monospace, monospace;" class=""> enddo</span><br style="font-family: monospace, monospace;" class="">
<span style="font-family: monospace, monospace;" class="">enddo</span></div>
<div class=""><span style="font-family: monospace, monospace;" class=""><br class="">
</span></div>
<div class="">assuming that you have side set ids 1, 2 and 3 in your mesh. exo2nek stores the side set id in the variable ‘bc(5,inc,iel,1)’ for the velocity field.</div>
<div class=""><br class="">
</div>
<div class="">If you really need the rea file, a rea file can be generated with the function call gen_rea(2) in usrdat2() but after setting the boundary conditions.</div>
<div class=""><br class="">
</div>
<div class="">Hope this help,</div>
<div class=""><br class="">
</div>
<div class="">Marco</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Dec 7, 2017, at 9:28 PM, <a href="mailto:nek5000-users@lists.mcs.anl.gov" class="">
nek5000-users@lists.mcs.anl.gov</a> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="line-height: 1.7; font-size: 14px; font-family: Arial;" class="">
<div class="">Dear experts in Nek5000 :</div>
<div class=""> Thank you for reading my email. I am a freshman in using Nek5000 and I am willing to simulate unsteady flow phenomenon in bottom head of PWR with LES method through parallel processes. And Nek5000 is the best solver for resolving my problem
and I hope to reach my goal with the outstanding SEM-CFD tools. But it is really a matter for me to generate a mesh file for that structure. So could you please show me a proper way to reach the .rea mesh file for the bottom head for the geometry there is
really complex and I am afraid I can not achieve the goal with editing .rea file directly.</div>
<div class=""> Thank you for your supporting me and I am waiting for your earlier reply eagerly.</div>
<div class=""><br class="">
</div>
<div class="">Best regards</div>
<div class=""><br class="">
</div>
<div class="">
Haoran JU</div>
<div class=""><br class="">
</div>
<br class="">
<br class="">
<br class="">
<div style="position:relative;zoom:1" class="">
<div style="clear:both" class=""></div>
<br class="">
</div>
</div>
<br class="">
<br class="">
<span title="neteasefooter" class="">
<div class=""> <br class="webkit-block-placeholder">
</div>
</span>_______________________________________________<br class="">
Nek5000-users mailing list<br class="">
<a href="mailto:Nek5000-users@lists.mcs.anl.gov" class="">Nek5000-users@lists.mcs.anl.gov</a><br class="">
https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>