<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-CA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi Alessandro,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">If I am understanding you correctly, you can already accomplish this yourself as a user by calculating the number of nodes you need
 to specify for a given progression to get a desired first element size.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">From a CFD perspective, what would make the most sense intuitively would be to be able to specify the length of the first element and
 the growth rate / progression and let gmsh calculate the total number of nodes. Of course in an ideal world if you could choose from any of the options for a given geometry would be best, but development time is limited, and these are all algorithmically equivalent
 to each other and can currently be accomplished with only a few extra lines of code in the .geo file.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">In terms of actually adding functionality what would be the most useful would be the ability to specify the first element length at
 both ends of a line segment and the growth rate from each end and have gmsh distribute points along the line segment smoothly to obey these progressions. Currently there is a bit of added work for a user to have to construct 2 line segments to accomplish this
 and then also have to do some additional algebra to ensure that the grid spacing is relatively smooth where the unconstrained ends of the line segments meet.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Nathan J. Neeteson, M.Sc.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Flow Control Research Engineer<o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">RGL Reservoir Management Inc.<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Engineering & Design Group<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">P. 403.930.0371 (ext. 8371) | C. 613.929.6283
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><a href="mailto:nneeteson@rglinc.com"><span style="color:#0563C1">nneeteson@rglinc.com</span></a> | rglinc.com<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:105%"><span style="font-size:11.0pt;line-height:105%;font-family:"Calibri",sans-serif;color:#1F497D">API Q1™ and ISO 9001:2015 certified facilities.<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:105%"><span lang="EN-US" style="font-size:11.0pt;line-height:105%;font-family:"Calibri",sans-serif;color:#ED7D31">NOTE: Email and URL addresses have recently changed<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Alessandro Vicini [mailto:alessandro.vicini@sitael.com]
<br>
<b>Sent:</b> October 25, 2018 3:14 AM<br>
<b>To:</b> Ruth Vazquez Sabariego <ruth.sabariego@kuleuven.be>; Nathan J. Neeteson <nneeteson@rglinc.com><br>
<b>Cc:</b> gmsh@onelab.info<br>
<b>Subject:</b> R: [Gmsh] Question about Progression and Bump<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">It might be useful having the possibility to specify the number of intervals and the length of the first element, rather than the progression…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">A.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="IT" style="font-size:10.0pt;font-family:"Segoe UI",sans-serif">Da:</span></b><span lang="IT" style="font-size:10.0pt;font-family:"Segoe UI",sans-serif"> gmsh [<a href="mailto:gmsh-bounces@ace20.montefiore.ulg.ac.be">mailto:gmsh-bounces@ace20.montefiore.ulg.ac.be</a>]
<b>Per conto di </b>Ruth Vazquez Sabariego<br>
<b>Inviato:</b> mercoledì 24 ottobre 2018 16:28<br>
<b>A:</b> Nathan J. Neeteson<br>
<b>Cc:</b> <a href="mailto:gmsh@onelab.info">gmsh@onelab.info</a><br>
<b>Oggetto:</b> Re: [Gmsh] Question about Progression and Bump<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="IT"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="IT">Dear Nathan,  <o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="IT"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT">As you have noticed, the Bump does not do a double geometrical progression. <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT">The formula used is a bit more complicated, you can see what it actually does in the code (meshGEdge.cpp).<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT">A double progression is not (yet?) available.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT">Work around by dividing your second region in two?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT">Regards, <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT">Ruth<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT"><o:p> </o:p></span></p>
<div>
<div>
<div>
<p class="MsoNormal"><span lang="IT" style="color:black">—<br>
Prof. Ruth V. Sabariego<br>
KU Leuven  <br>
Dept. Electrical Engineering ESAT/Electa, EnergyVille<br>
<a href="https://urlsand.esvalabs.com/?u=http%3A%2F%2Fwww.esat.kuleuven.be%2Felecta&e=69b77ccd&h=6f8d0521&f=y&p=y">http://www.esat.kuleuven.be/electa</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT"><a href="https://urlsand.esvalabs.com/?u=http%3A%2F%2Fwww.energyville.be&e=69b77ccd&h=5cdb1935&f=y&p=y">http://www.energyville.be</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT" style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="IT" style="color:black">Free software: <a href="https://urlsand.esvalabs.com/?u=http%3A%2F%2Fgmsh.info&e=69b77ccd&h=ec49fb48&f=y&p=y">http://gmsh.info</a> | <a href="https://urlsand.esvalabs.com/?u=http%3A%2F%2Fgetdp.info&e=69b77ccd&h=0e857c64&f=y&p=y">http://getdp.info</a> | <a href="https://urlsand.esvalabs.com/?u=http%3A%2F%2Fonelab.info&e=69b77ccd&h=e3a8f919&f=y&p=y">http://onelab.info</a><br>
<br>
<br>
<br>
<br>
<o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="IT"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="IT">On 23 Oct 2018, at 22:07, Nathan J. Neeteson <<a href="mailto:nneeteson@rglinc.com">nneeteson@rglinc.com</a>> wrote:<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="IT"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Hello,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif">I have a question about using Progression and Bump in neighboring blocks in a block-structured mesh. What I want is for the two blocks to have cells of the same height
 where they meet. I know the thickness of the first cell from the wall (dx0), the length of each line (L), and the progression I want (r), so when I’m using Progression I can calculate the number of nodes to use as N = log(1+(L*(r-1))/(dx0)) / log(r) – 1. Then
 I can set the appropriate lines to Transfinite and assign them N Using Progression r and it works as expected.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif">However, in one of my blocks I want to refine towards both the top and bottom, so I need to use the Bump option. The problem is that I have no idea what “r” value
 to use after Bump (using the same r value as is used for Progression does not give me the results I want) and I also have no idea how to calculate the number of points to use along this line. MY first instinct was to calculate the number of points needed as
 double the number of points for a single progression with half of the length (two progressions end to end). I think this is right, but when I use r after Bump I get no refinement. What value am I supposed to use for number of points and the rate of growth
 when using the Bump function so that I get the equivalent of the product of two Progressions end to end?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Here is a zoomed in look at where I want the first cells to match heights:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif">The bottom block uses single progression and the upper block you are seeing the lower end of the double progression.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><image001.png><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Here is my .geo file:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif">-------------------------------------------------------------------------------------------<o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">// orifice properties</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">orificeLength = 0.03;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">orificeRadius = 0.002;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">// pipe properties</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">pipeRadius = 0.05;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">// distance from orifice to inlet</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">inletDist = 5*pipeRadius;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">// distance from orifice to outlet</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">outletDist = 5*pipeRadius;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">// grid size parameters</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">r = 1.1; // growth parameter</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">dx0 = 1*10^(-4); // first wall dist for y+=1</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">upstreamNx = (Log(1 + ((inletDist*(r-1))/(dx0))) / Log(r)) - 1; // number of elements in x direction upstream</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">downstreamNx = (Log(1 + ((outletDist*(r-1))/(dx0))) / Log(r)) - 1; // number of elements in x direction upstream</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">orificeNx = orificeLength/dx0; // number of elements in x direction inside orifice</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">upstreamOrificeNy = orificeRadius/dx0;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">upstreamPipeNy = 2*((Log(1 + ((((pipeRadius-orificeRadius)/2)*(r-1))/(dx0))) / Log(r)) - 1);</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">// element index</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">i = 1;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">// ~~-------------------------~~ POINTS ~~-------------------------~~</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">// order of point definition doesn't matter, just give descriptive names</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">inletCenterPoint = i;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Point(i) = {-orificeLength-inletDist,0,0,1};</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">i=i+1;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">inletPipeWallPoint = i;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Point(i) = {-orificeLength-inletDist,pipeRadius,0,1};</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">i=i+1;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">inletOrificeWallPoint = i;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Point(i) = {-orificeLength-inletDist,orificeRadius,0,1};</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">i=i+1;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">upOrificeCenterPoint = i;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Point(i) = {-orificeLength,0,0,1};</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">i=i+1;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">upOrificePipeWallPoint = i;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Point(i) = {-orificeLength,pipeRadius,0,1};</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">i=i+1;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">upOrificeOrificeWallPoint = i;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Point(i) = {-orificeLength,orificeRadius,0,1};</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">i=i+1;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">// ~~-------------------------~~ LINES ~~-------------------------~~</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">// all lines should be defined going up and/or to the right for consistency</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">inletOrificeLine = i;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Line(i) = {inletCenterPoint,inletOrificeWallPoint};</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">i=i+1;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">inletPipeLine = i;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Line(i) = {inletOrificeWallPoint,inletPipeWallPoint};</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">i=i+1;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">upstreamPipeWallLine = i;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Line(i) = {inletPipeWallPoint,upOrificePipeWallPoint};</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">i=i+1;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">upstreamCenterLine = i;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Line(i) = {inletCenterPoint,upOrificeCenterPoint};</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">i=i+1;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">upstreamOrificeLine = i;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Line(i) = {inletOrificeWallPoint,upOrificeOrificeWallPoint};</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">i=i+1;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">upstreamOrificePlateLine = i;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Line(i) = {upOrificeOrificeWallPoint,upOrificePipeWallPoint};</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">i=i+1;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">upstreamOrificeEntryLine = i;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Line(i) = {upOrificeCenterPoint,upOrificeOrificeWallPoint};</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">i=i+1;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">// ~~-------------------------~~ LINE LOOPS ~~-------------------------~~</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">// all line loops should be oriented clockwise</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">upstreamPipeLoop = i;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Line Loop(i) = {inletPipeLine,upstreamPipeWallLine,-upstreamOrificePlateLine,-upstreamOrificeLine};</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">i=i+1;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">upstreamOrificeLoop = i;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Line Loop(i) = {inletOrificeLine,upstreamOrificeLine,-upstreamOrificeEntryLine,-upstreamCenterLine};</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">i=i+1;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">// ~~-------------------------~~ PLANE SURFACES ~~-------------------------~~</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">upstreamPipePlane = i;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Plane Surface(i) = upstreamPipeLoop;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">i=i+1;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">upstreamOrificePlane = i;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Plane Surface(i) = upstreamOrificeLoop;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">i=i+1;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">// ~~-------------------------~~ MAKE STRUCTURED ~~-------------------------~~</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">// the x-oriented lines upstream of the orifice</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Transfinite Line{-upstreamCenterLine,-upstreamOrificeLine,-upstreamPipeWallLine} = upstreamNx Using Progression r;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">// the x-oriented lines in the orifice</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">// the x-oriented lines downstream of the orifice</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">// the y-oriented lines from the centerline to the orifice radius</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Transfinite Line{inletOrificeLine,upstreamOrificeEntryLine} = upstreamOrificeNy;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">// the y-oriented lines from the orifice radius to the pipe radius</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Transfinite Line{inletPipeLine,upstreamOrificePlateLine} = upstreamPipeNy Using Bump 0.05;</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Transfinite Surface{upstreamOrificePlane};</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Recombine Surface{upstreamOrificePlane};</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Transfinite Surface{upstreamPipePlane};</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Arial",sans-serif">Recombine Surface{upstreamPipePlane};</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif">-------------------------------------------------------------------------------------------<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Nathan J. Neeteson, M.Sc.</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Flow Control Research Engineer</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">RGL Reservoir Management Inc.</span></b><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Engineering & Design Group</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">P.<span class="apple-converted-space"> </span><a href="tel:403.930.0371;8371"><span style="color:#954F72">403.930.0371 (ext. 8371)</span></a><span class="apple-converted-space"> </span>|
 C.<span class="apple-converted-space"> </span><a href="tel:613.929.6283"><span style="color:#954F72">613.929.6283</span></a></span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><a href="mailto:nneeteson@rglinc.com"><span style="color:#0563C1">nneeteson@rglinc.com</span></a><span class="apple-converted-space"> </span>|<span class="apple-converted-space"> </span><a href="https://urlsand.esvalabs.com/?u=http%3A%2F%2Frglinc.com%2F&e=69b77ccd&h=eaebd207&f=y&p=y"><span style="color:#954F72">rglinc.com</span></a></span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:11.55pt"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif">API Q1™ and ISO 9001:2015 certified facilities.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:11.55pt"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#ED7D31">NOTE: Email and URL addresses have recently changed</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="IT" style="font-size:9.0pt;font-family:"Helvetica",sans-serif">Email disclaimer located at<span class="apple-converted-space"> </span></span><span lang="IT"><a href="https://urlsand.esvalabs.com/?u=http%3A%2F%2Frglinc.com%2Fdisclaimer&e=69b77ccd&h=36c78614&f=y&p=y"><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif;color:#954F72">http://rglinc.com/disclaimer</span></a></span><span class="apple-converted-space"><span lang="IT" style="font-size:9.0pt;font-family:"Helvetica",sans-serif"> </span></span><span lang="IT" style="font-size:9.0pt;font-family:"Helvetica",sans-serif">_______________________________________________<br>
gmsh mailing list<br>
</span><span lang="IT"><a href="mailto:gmsh@onelab.info"><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif;color:#954F72">gmsh@onelab.info</span></a></span><span lang="IT" style="font-size:9.0pt;font-family:"Helvetica",sans-serif"><br>
</span><span lang="IT"><a href="https://urlsand.esvalabs.com/?u=http%3A%2F%2Fonelab.info%2Fmailman%2Flistinfo%2Fgmsh&e=69b77ccd&h=f5c42a45&f=y&p=y"><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif;color:#954F72">http://onelab.info/mailman/listinfo/gmsh</span></a><o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="IT"><o:p> </o:p></span></p>
</div>
</div>
Email disclaimer located at http://rglinc.com/disclaimer
</body>
</html>