hello everyone and today what we're gonna look at is the rotational speed that a turbine will spin at given a particular inflow condition in this case we've got a turbine in a channel flow moving from right to left and we're going to determine winegar velocity that will spin out based on the flow conditions okay so what we're gonna do first of all is drag fluid flow CFX over by holding the left mouse button so make geometry right click and import a turbine geometry the app Nevada once that's successfully imported right click and edit geometry and
design modeler just give this a few seconds to load up once it's loaded you should see this import option here with a generate symbol and it should be asking you to add frozen so when you're happy that that's correct just being generated you'll notice frozen geometry first of all because it's a parent and second of all because when you look here it has that frozen symbol looks a little bit like an ice cube so just renaming that to be turbine that's why they get confused later on and the first thing I'm going to do is
create an internal domain which is going to sit around this geometry and it's going to rotate with this geometry so we're gonna be working on the XY plane I'm going to create a new sketch and it's going to be a circle that's slightly bigger than this turbine so we're going to Center it about the origin so if we just hover until we see a P rather than SC doesn't need to be much bigger I'm not icky interested in the site exact sizing at the moment that's just irrelevant and then when you're ready to select that
sketch click extrude and just make sure the sketch if there is here add material and I'm extrude in both directions so symmetrically Adebayo pointy meters if we just hold the middle mouse button down and rotate just ensure that that extrusion has happened correctly and when you're happy just regenerate so before we go any further I'm gonna name this in a domain rotating by right-clicking selecting rename I'm also going to freeze this geometry so it's the same type as the turbine and this is just to prevent any issues later when generating the station reader main so
just affecting tools freeze and that job which is now selected is frozen I'm going to go back to the XY plane and I'm going to create another sketch so select the plane select a new sketch and this time it's going to be the stationary domain I'm creating so it's got to be a bigger than the rotating one I'm selecting circle and again making sure we're specified as P rather than C make it slightly larger and now we have a sketch to created so when you're happy again just perform the extrusion will go in both directions
and this time I'm just gonna put it up one meter in both directions again using that middle mouse button just to check the preview just to make sure everything's okay and yet you can see that there's sufficient space between the upstream and the downstream of the turbine so just clicking generate when you're happy so what you'll notice now is we've got this stationary domain that's come as a solid just gonna rename it there we've got this frozen rotating domain and a frozen turbine so I'm going to do first of all is extract this rotating domain
from this stationary domain I'm gonna do that using a boolean operation you just seen this in a few videos already so just selecting boolean and rather than unite we want to be subtract our target body is going to be the larger domain and the tall one is the thing we're extracting from it so if you just select two bodies and then select rotating just hit apply do we want to preserve the tool body yes we want to make sure that domain system exists that rotating one but we just want it to be separated from the
stationary domain so when she happy that's okay just click generate what I'm going to do is slightly shrink this rotating domain so there's no interaction between the rotating and the stationary domains so just click create body transformation and scale and I want to scale this rotating domain about its centroid just make sure the right body has been selected and have as 0.1 percent smaller than the its original but just enough to give a separation between the two domains and finally we'll just go click rotating and I'm gonna freeze this geometry and hit generate so it
got two fluid regions and got this turbine here we're not interested in what's happening inside the turbine so what I'm gonna do now is I want to extract that turbine from the rotating domain so we don't have this body within a body cuz we're only really interested in the surface of the turbine because that's what's gonna be interacting with that airflow so just quickly look just click create boolean just like we did before so the target body is going to be the rotating domain and then the tool body is gonna be the turbines geometry that's
the thing we're extracting and the difference here to what we did before do want to preserve the tool body no because we don't really care what's happening to the turbine we just interested in the surfaces so once you're happy that your sayings look like that just click generate my computers at a little slow at the moment and what you belief with is two domains one rotating one stationary it's always good to check before you move any further so just hit new section plane and hold the left mouse button down drag all the way to the
right and then focus on and that exists to view so you should have something looks like this one domain here and this is since it's great that's my stationary domain and zooming in there should be some gap between the two domains however small and there should also be a hollow where the turbine used to be if you want to do that zooming in you're not sure how just hold your iDevice button down and drag and that will give you that nice zoom feature okay so that's all we want there so when you're ready save the
project and close down design model and open up meshing once everything's loaded in meshing just right-click on mesh select insert and select sizing just going to zoom in on the x-axis there select geometry and make sure that face is is selected I'm also going to change the selection mode to be a box select rather than a point select so I'm gonna do is zoom and try and find where my turbine is just releasing that the turbine here has been selected you might take some trial and error to find that but luckily mine came up first
time good job for this video and I'm going to create an element size constraint so I'm gonna make that a bag of two centimeter not going particularly accurate of this because this is just demonstration but once you're happy that it's done just click generate mesh you may also want to do things like prison liars and other videos I've got where that's discussed but for the moment just interested in some sort of sizing so like we did before in the previous section I'm just going to select a new section plane yeah I'm going to slice this
open here and view from another axis so what you can see is that towards the turbine towards the turbine what you see is that the smaller cells and away from the turbine then after again this isn't perfect but it's just something for demonstration so when you've got something like that and you're confident with it just clothes meshing and then open up CFX pre as a setup you may also be required here to right-click and select update the domains have loaded the turbine is visible and you can see some kind of interaction between the two domains
what we've currently got is one default domain and once they have interfaces and that's not correct to CFX the effect wants to treat these as two separate domains one stationary and one rotating so what we're gonna have to do is create a second domain so just selecting this option here and I'm going to call it stationary and this is the domain selection tool so you select all the fluids all the fluid models that are occurring in here just selecting the location and it's gonna be this outer one here yes it's a fluid domain it goes
about the global coordinate system I'm gonna leave that as air there it's gonna be continuous fluid non buoyant the domain motion is stationary I'm also going to select camera versus T just as a personal preference and leave these are the options alone for the moment so once you've done that select apply and so you'll have stationary domain here so this by default must be rotating it's just calling it rotating and if you check this surface here that happens to be our turbine surface the rest of the properties here are 4 ohm the fluid fluid interface
which will deal with in just a moment I'm just going to add some boundary conditions here so the first boundary condition is going to be an inlet condition and it's all the way around here and then negatives there they the negative is then end so I'm clicking in the other box making sure that is selected I'm selecting that surface I'm going to say we have a mass flow rate of 50 kilograms of a second normal to the boundary we're also going to have an actual wall so just call that wall selecting the box and select
on the outer surface and and finally this is gonna be the outlet miss instance I'm going to call it an opening will hold a numerical stability so just selecting that static pressure difference across there to be zero just check this that should be a wall fantastic what we need to do it's going to rotate in the main it's obviously selected the correct domain and then going back into rotating domain this is actually a rotating domain and it's about the Global's that access I'm just going to give it some value for the moment I'll come back
to this and I'll show you why so what I want to do now is create an expression I'm going to call it Omega set so angular velocity about the z axis and then give it some notional value for radians per second just being cautious to write the unit's in in the CL expression language if I just hit apply there and then if I right click on Omega Z I have this option to use it as a workbench input parameter so that basically means it's just something I can control in the parameter sweep the K so
once you've done that you'll notice that prompt to set appears here we're going to perform a simulation will go to results and will completely imply put loop for parameter set and setting up simulations double precision I'm just going to set that off to room and I'll come back one where in CFX post so now that simulations finish we're just going to open up CFX post and have a look at the results so we're going to first of all just do a small visualization so creating a plane by selecting location select it to be on the
Weiser direction and then color it with a variable such as velocity and just snapping on through axis so you can see that properly and the next thing we're gonna do is create another expression at this time in CFX post the select expression there and this is gonna be called talk and then capital Zed so if we go into the expression region here I'm going to right-click and we need to have a look at the available functions for us so in this case we have talks dead is very much available and because we've named the turbine
as a surface we can say talk in the z-direction about sorry at the turbine this is the torque generated on the turbine at its current angular velocity and reading that calculation you get minus four hundred thirteen joules and what I'm gonna do is right click and select as a workbench a parameter I'm going to shoot CFX post down and just double click on parameter set here so the purpose of everything we've done so far is to determine the angular velocity of turbines going to run out based on what the mp's and what we're looking for
here is actually a zero torque value so if the turbines spinning at some speed and some velocity of air hits it what we're looking to do is determine the speed that's required to get zero net torque from that it's y ended it was basically a parameter sweep so I'm going to choose some angular velocities in ranges of 50 so maybe I'll try minus 100 minus 50 plus 50 and then plus 100 and what this will do is it give me a collection of torque values and then from there what we can do is interpolate to
find the angular velocity at which net torque is zero and that will be the speed at which the turbine turns for a given mass flow rate so just to make this run I'm going to select update all design points here so it's going to run through all these angular velocities and these are the outputs that we're going to get from CFX post okay so my simulations finished and why I've done since you last saw it was just added a few more points so I did a few more potential omegas so what you'll notice here is
that we've got a positive at minus 300 and got a negative that minus 200 so what that tells me is that we've got some crossover between 200 and 300 and that means our zero value is somewhere there so I'm just going to plot these in Excel and then to actually give us an indication at which angular velocity the turbine would spin okay so what that's telling us is that at approximately 275 we have a zero net torque so what it's telling us is that for that mass flow this is the angular velocity that gives zero
net torque on the turbine so I hope that was helpful I hope it's clear if you have any comments or questions please just leave them below be grateful if you subscribe to the channel helps me know what videos to put out next and again if you want a request those you can either put them in the comment or you can put them put an email to climate cfd at gmail.com