<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Vatslav,
<div class=""><br class="">
</div>
<div class="">what I do and it seems to work for my case is the following. Let assume you have two pipes (pipe 1 with periodic bc and pipe 2 with inlet/outlet), and that the flow is moving from pipe 1 to pipe 2. The solution from pipe 1 is interpolated to pipe
2 and used as inlet condition.</div>
<div class=""><br class="">
</div>
<div class="">In a separate subroutine, do the following:</div>
<div class="">
<ul class="MailOutline">
<li class="">in pipe 1, look for the boundary faces with P boundary condition that will be used for the interpolation and substitute P with inP. </li><li class="">in pipe 2, look for the boundary faces with v boundary condition and substitute v with inV.</li></ul>
<div class=""><br class="">
</div>
</div>
<div class="">In a subroutine analogous to set_inflag:</div>
<div class="">
<ul class="MailOutline">
<li class="">in pipe 1, collect boundary faces with flag inP, set intflag to 1 for this boundary face, and substitute back boundary condition to P.</li><li class="">in pip2, do the same: inV - > v</li></ul>
<div class=""><br class="">
</div>
</div>
<div class="">After, this step, you have marked all boundary faces that will be involved in the interpolation process in Nek5000. From this point, the steps are similar to what is done in the examples. All of this is done in my usr file.</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>
<blockquote type="cite" class="">
<div class="">On Mar 27, 2017, at 5:47 AM, <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 dir="ltr" class="">
<div class="">
<div class="">
<div class="">Thanks a lot for replying, your answer was very useful.<br class="">
<br class="">
</div>
I look on multimesh.f file.<br class="">
As i understood, i need set subroutine 'set_inflag' to look for 'P ' bc.<br class="">
After this i need to call 'get_values(field)' subroutine, which interpolate and put the value in valint(ix,iy,iz,ie,ifld) array.<br class="">
</div>
And then this array will be available in userbc in .usr file, to set it on inflow boundary.<br class="">
<br class="">
</div>
<div class="">c-----------------------------------------------------------------------------------------------<br class="">
</div>
<div class=""><br class="">
Vatslav,<br class="">
you will have to use the neknek script that allows you to exchange data between two Nek5000 sessions that are run simultaneously. You should have a look at the neknek examples to understand how to set up your usr file.<br class="">
Some of the subroutines that will be useful to you are located in the following link:
<a href="http://www.mcs.anl.gov/research/projects/nek5/docs/html/multimesh_8f_source.html" rel="noreferrer" target="_blank" class="">
http://www.mcs.anl.gov/<wbr class="">research/projects/nek5/docs/<wbr class="">html/multimesh_8f_source.html</a><br class="">
You will have to modify some of them to fit your needs since for example the subroutine ?set_inflag? is written to look for ?in? boundary conditions and replace them with ?v ?. You will need a subroutine that looks for ?in? and substitute it with either ?v
? or ?P ? depending on the which pipe you are at.<br class="">
Marco<br class="">
<br class="">
Hi, Neks!<br class="">
I have two pipes in my simulation. They are placed near each other on one axis with empty space between.<br class="">
One of them with periodic boundary conditions on z direction, another one - inflow -> outflow.<br class="">
How can I copy velocity slice from one of boundary on first pipe with periodic bc to the inflow boundary on second pipe?<br class="">
Regards, Vatslav<br class="">
<br class="">
</div>
<div class="">c-----------------------------------------------------------------------------------------------</div>
<div class=""><br class="">
</div>
Regards, Vatslav<br class="">
</div>
_______________________________________________<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>