CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Pre-Processing

Bc in cylindrical coordinates

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 12, 2007, 11:18
Default I'm trying to calculate a doub
  #1
Member
 
Matthias Kern
Join Date: Mar 2009
Location: Karlsruhe, Germany
Posts: 36
Rep Power: 8
make is on a distinguished road
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
make is offline   Reply With Quote

Old   July 12, 2007, 11:34
Default hi matthias, I think you ca
  #2
Senior Member
 
Cedric DUPRAT
Join Date: Mar 2009
Location: Belgium
Posts: 179
Rep Power: 8
cedric_duprat is on a distinguished road
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
cedric_duprat is offline   Reply With Quote

Old   July 13, 2007, 03:07
Default You might try the swirlMassFlo
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
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;
}
olesen is offline   Reply With Quote

Old   July 13, 2007, 03:40
Default thanks to both of you for you
  #4
Member
 
Matthias Kern
Join Date: Mar 2009
Location: Karlsruhe, Germany
Posts: 36
Rep Power: 8
make is on a distinguished road
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
make is offline   Reply With Quote

Old   July 20, 2007, 08:28
Default First of all Openfoam and this
  #5
Member
 
Matthias Kern
Join Date: Mar 2009
Location: Karlsruhe, Germany
Posts: 36
Rep Power: 8
make is on a distinguished road
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?
make is offline   Reply With Quote

Old   April 6, 2008, 00:03
Default Hi, In my equation in a cyli
  #6
Member
 
Danielle PRL
Join Date: Mar 2009
Posts: 42
Rep Power: 8
danielle is on a distinguished road
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 ?
danielle is offline   Reply With Quote

Old   March 19, 2009, 06:37
Question how to implement the files?
  #7
New Member
 
parham momeni
Join Date: Mar 2009
Location: glasgow, uk
Posts: 25
Rep Power: 7
mcjicpm2 is an unknown quantity at this point
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;
}
mcjicpm2 is offline   Reply With Quote

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

Thanks,
Nat
natrask is offline   Reply With Quote

Old   May 17, 2011, 11:44
Default Information in new boundary condition
  #9
New Member
 
bamba
Join Date: Apr 2011
Posts: 4
Rep Power: 6
kbambas is on a distinguished road
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
.
kbambas is offline   Reply With Quote

Old   August 8, 2011, 06:51
Red face
  #10
Senior Member
 
calim_cfd's Avatar
 
mauricio
Join Date: Jun 2011
Posts: 136
Rep Power: 8
calim_cfd is on a distinguished road
Quote:
Originally Posted by kbambas View Post
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.
calim_cfd is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
cylindrical coordinates shuo Main CFD Forum 2 November 20, 2007 07:44
FVM cylindrical coordinates vm Main CFD Forum 1 January 3, 2007 10:15
cylindrical coordinates Domi FLUENT 3 October 27, 2004 06:41
cylindrical coordinates A.Schulze CFX 2 November 7, 2000 20:49
Cylindrical coordinates Nish CFX 1 May 3, 2000 03:01


All times are GMT -4. The time now is 06:55.