<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<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 Marco,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">The way I normally do this is as follows:</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<ol style="margin-bottom: 0px; margin-top: 0px;">
<li><span style="font-size: 12pt;"></span><span style="font-size: 12pt;"></span>build a valid fluid mesh ( "f.rea" )</li><li>build a valid solid mesh ("s.rea")</li><li>run pretex and pick option "3"</li><li>Enter session name (say, "c" for "combined")</li><li>Enter fluid session name, f</li><li>Enter solid session name, s</li></ol>
<br>
<p></p>
<p style="margin-top:0;margin-bottom:0">Hopefully, it produces a valid "c.rea" file ready for conjugate heat transfer.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Let me know if that doesn't work for you.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Best,</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> Friday, June 1, 2018 2:10:04 PM<br>
<b>To:</b> nek5000-users@lists.mcs.anl.gov<br>
<b>Subject:</b> Re: [Nek5000-users] Mesh with two blocks</font>
<div> </div>
</div>
<meta content="text/html; charset=us-ascii">
<div class="" style="word-wrap:break-word; line-break:after-white-space">Paul,
<div class=""><br class="">
</div>
<div class="">thank you again for your reply.</div>
<div class=""><br class="">
</div>
<div class="">When I generated a mesh in Cubit that has two blocks and then run it with Nek5000 I get nelv = nelt. How does Nek5000 know that block 1 is the fluid mesh and block 2 is the solid mesh?</div>
<div class=""><br class="">
</div>
<div class="">I think I missing a step in the setup of my problem. I wonder how the mesh used in conj_ht was generated?</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class=""><br class="">
</div>
<div class="">Marco<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Jun 1, 2018, at 3:04 PM, <a href="mailto:nek5000-users@lists.mcs.anl.gov" class="">
nek5000-users@lists.mcs.anl.gov</a> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div id="x_divtagdefaultwrapper" dir="ltr" class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; font-size:12pt; font-family:Calibri,Helvetica,sans-serif">
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="x_Apple-interchange-newline">
Depends on which routine. Suppose userbc:</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px"> if (ifield.eq.1) then ! fluid field</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px"> else ! thermal field</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px"> endif</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">Or... if in userchk:</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px"> integer e</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px"> do e=1,nelt</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px"> if (e.le.nelv) then ! fluid + temperature</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px"> else ! solid==temperature only</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px"> endif</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px"> enddo </div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">Local elements are sorted: 1...nelv is fluid</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">1...nelt is thermal</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">nelv is <= nelt</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">Paul</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
</div>
<hr tabindex="-1" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; display:inline-block; width:1077.015625px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; float:none; display:inline!important"></span>
<div id="x_divRplyFwdMsg" dir="ltr" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<font face="Calibri, sans-serif" class="" style="font-size:11pt"><b class="">From:</b><span class="x_Apple-converted-space"> </span>Nek5000-users <<a href="mailto:nek5000-users-bounces@lists.mcs.anl.gov" class="">nek5000-users-bounces@lists.mcs.anl.gov</a>>
on behalf of <a href="mailto:nek5000-users@lists.mcs.anl.gov" class="">nek5000-users@lists.mcs.anl.gov</a> <<a href="mailto:nek5000-users@lists.mcs.anl.gov" class="">nek5000-users@lists.mcs.anl.gov</a>><br class="">
<b class="">Sent:</b><span class="x_Apple-converted-space"> </span>Friday, June 1, 2018 1:53:03 PM<br class="">
<b class="">To:</b><span class="x_Apple-converted-space"> </span><a href="mailto:nek5000-users@lists.mcs.anl.gov" class="">nek5000-users@lists.mcs.anl.gov</a><br class="">
<b class="">Subject:</b><span class="x_Apple-converted-space"> </span>Re: [Nek5000-users] Mesh with two blocks</font>
<div class=""> </div>
</div>
<div class="x_BodyFragment" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<font size="2" class=""><span class="" style="font-size:11pt">
<div class="x_PlainText">Thank you for your replies.<br class="">
<br class="">
I am actually interested in generating a mesh for a conjugate gradient solve. In the conj_ht example, the solid block is differentiated from the liquid block by testing the element index, i.e., ieg > nelgt. Assuming that I generate a mesh with two blocks that
represent the fluid and solid regions, respectively, how do I access these blocks in the usr file?<br class="">
<br class="">
Marco<br class="">
<br class="">
> On Jun 1, 2018, at 2:35 PM, <a href="mailto:nek5000-users@lists.mcs.anl.gov" class="">
nek5000-users@lists.mcs.anl.gov</a> wrote:<br class="">
><span class="x_Apple-converted-space"> </span><br class="">
> Why don't you use the sidesets to set your BC?<br class="">
><span class="x_Apple-converted-space"> </span><br class="">
> -----Original message-----<br class="">
>> From:<a href="mailto:nek5000-users@lists.mcs.anl.gov" class="">nek5000-users@lists.mcs.anl.gov</a> <<a href="mailto:nek5000-users@lists.mcs.anl.gov" class="">nek5000-users@lists.mcs.anl.gov</a>><br class="">
>> Sent: Friday 1st June 2018 20:06<br class="">
>> To: <a href="mailto:nek5000-users@lists.mcs.anl.gov" class="">nek5000-users@lists.mcs.anl.gov</a><br class="">
>> Subject: [Nek5000-users] Mesh with two blocks<br class="">
>><span class="x_Apple-converted-space"> </span><br class="">
>> Hi,<br class="">
>><span class="x_Apple-converted-space"> </span><br class="">
>> I would like to get some insights on how Nek5000 deals with meshes that contains more than one block. I generated a 2-D mesh with Cubit and was able to convert it to a re2 format with exo2nek but I do not know how to differentiate each block in the usr file
to set boundary conditions for instance.<br class="">
>><span class="x_Apple-converted-space"> </span><br class="">
>> I went through the examples and did not find anything relevant to my question. Does anybody have experience with multi-block mesh? What is the proper approach when dealing with multi-block meshes in Nek5000?<br class="">
>><span class="x_Apple-converted-space"> </span><br class="">
>> Thanks,<br class="">
>><span class="x_Apple-converted-space"> </span><br class="">
>> Marco<br class="">
>> _______________________________________________<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="">
>><span class="x_Apple-converted-space"> </span><a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users" class="">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a><br class="">
>><span class="x_Apple-converted-space"> </span><br class="">
> _______________________________________________<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="">
><span class="x_Apple-converted-space"> </span><a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users" class="">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a><br class="">
><span class="x_Apple-converted-space"> </span><br class="">
<br class="">
_______________________________________________<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="">
<a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users" class="">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a><br class="">
</div>
</span></font></div>
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; float:none; display:inline!important">_______________________________________________</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; float:none; display:inline!important">Nek5000-users
mailing list</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<a href="mailto:Nek5000-users@lists.mcs.anl.gov" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">Nek5000-users@lists.mcs.anl.gov</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>