# Bc in cylindrical coordinates

 Register Blogs Members List Search Today's Posts Mark Forums Read

 July 12, 2007, 11:18 I'm trying to calculate a doub #1 Member   Matthias Kern Join Date: Mar 2009 Location: Karlsruhe, Germany Posts: 36 Rep Power: 17 I'm trying to calculate a double swirler airblast nozzle using OpenFOAM as a test case. To save on calculation time I would like to ignore the swirler vanes in my grid and simple impose the swirl in the bc by using cylindrical coordinates. My question is know is it possible (by for example using the setField tool) to calculate and define the velocities for a specific boundary patch. Thanks

 July 12, 2007, 11:34 hi matthias, I think you ca #2 Senior Member   Cedric DUPRAT Join Date: Mar 2009 Location: Nantes, France Posts: 195 Rep Power: 17 hi matthias, I think you can try first to look for : * rotationBC * uniformAxialRotation in the forum, they're piece of code written by Foamers you can try to start with. then, ...customise them for your case, it's the most funny part, you'll see Cedric

 July 13, 2007, 03:07 You might try the swirlMassFlo #3 Senior Member   Mark Olesen Join Date: Mar 2009 Location: https://olesenm.github.io/ Posts: 1,714 Rep Power: 40 You might try the swirlMassFlowRateInletVelocity boundary type: swirlbc.tar.gz Description Describes an massflow normal vector boundary condition by its magnitude as an integral over its area, with a swirl component. The current density is used to correct the velocity. Note: The value is positive for inward pointing vectors Swirl is defined in RPM about the patch centre-axis according to a right-hand rule (inwards axis). Only useful for planar patches. Example of the BC specification: inlet { type swirlMassFlowRateInletVelocity; massFlowRate 0.2; // [kg/s] rpm 5000; }

 July 13, 2007, 03:40 thanks to both of you for you #4 Member   Matthias Kern Join Date: Mar 2009 Location: Karlsruhe, Germany Posts: 36 Rep Power: 17 thanks to both of you for you quick reply, I'm going to try that over the weekend. Sounds like thats exactly what I was looking for. have a nice weekend

 July 20, 2007, 08:28 First of all Openfoam and this #5 Member   Matthias Kern Join Date: Mar 2009 Location: Karlsruhe, Germany Posts: 36 Rep Power: 17 First of all Openfoam and this communities is really great. I'm testing OpenFOAM now since a week and are really happy with it. I'm enjoying to have this kind of freedom in comparison to CFX. Its a great development environment. Thanks to above posts I managed to write a new boundary condition where I can define my input velocities by either velocity components or flux phi, related to a cylindrical axis of rotation defined by origin and vector. I attach this perhaps somebody else find it useful. Nevertheless it is not fully tested yet! cylindricalCoordinateBC.tar.gz Using this for fully 3d geometries seems to work see Now I try to calculate the same geometry as a Axi-symmetric geometry using wedge patch type boundaries. In this case my velocity profiles seems to be 2D and not related to my cylindrical axis. I also tried to use symmetryPlane type as patch type -> same. Seems I lose sight of something. Anybody any idea?

 April 6, 2008, 00:03 Hi, In my equation in a cyli #6 Member   Danielle PRL Join Date: Mar 2009 Posts: 42 Rep Power: 17 Hi, In my equation in a cylindrical coordinate I have laplacien(A), I will solve it in Open Foam. How can I write this term in OF ?

 March 19, 2009, 05:37 how to implement the files? #7 New Member   parham momeni Join Date: Mar 2009 Location: glasgow, uk Posts: 25 Rep Power: 16 Hi can anyone please tel me what should I do with this file in the following message? where should I copy it? what should I do if I want to use it? the original message has been reported by olesen a few lines above: You might try the swirlMassFlowRateInletVelocity boundary type: swirlbc.tar.gz Description Describes an massflow normal vector boundary condition by its magnitude as an integral over its area, with a swirl component. The current density is used to correct the velocity. Note: The value is positive for inward pointing vectors Swirl is defined in RPM about the patch centre-axis according to a right-hand rule (inwards axis). Only useful for planar patches. Example of the BC specification: inlet { type swirlMassFlowRateInletVelocity; massFlowRate 0.2; // [kg/s] rpm 5000; }

 April 29, 2009, 11:24 #8 New Member   Nat Trask Join Date: Mar 2009 Location: Providence, RI Posts: 18 Rep Power: 17 Does anyone have an alternative link to the swirlMassFlowRateInletVelocity inlet condition? The link appears to be dead. Thanks, Nat

 May 17, 2011, 11:44 Information in new boundary condition #9 New Member   bamba Join Date: Apr 2011 Posts: 4 Rep Power: 15 I'm trying to implement a new boundary cylindrical velocity following u(r) ,what the form is U(r)=Umax ( 1- (r/d)2 ) using OpenFOAM as a test case icoFoam . I don't know how to do!so I want someone help me to giving the indications. Thanks evrybody.

August 8, 2011, 06:51
#10
Senior Member

mauricio
Join Date: Jun 2011
Posts: 172
Rep Power: 18
Quote:
 Originally Posted by kbambas I'm trying to implement a new boundary cylindrical velocity following u(r) ,what the form is U(r)=Umax ( 1- (r/d)2 ) using OpenFOAM as a test case icoFoam . I don't know how to do!so I want someone help me to giving the indications. Thanks evrybody.
hi there!

i'm new to op and the post seemed to be dead but u brought it up :P so here's my feeling about your doubt.. i'm not rly sure u can set that in cylindrical CS,, u could try a cartesian but regardless i'm not so sure how you'd set a user specifield field like yours... i'd have to dig a big but im out of time to spare now sry ...but b4 u try anything..check ur problem... i guess you're trying to model a developed flow at your inlet right? cuz the solver should give you a flow with this profile like as an awnser.. plus idk if ur trying to model a transient or a SS flow...make sure you got a well posed problem b4 venturing into changing the code..

/calim

Last edited by calim_cfd; August 8, 2011 at 07:29.