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

Cartesian to cylindrical velocity field conversion

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 13, 2009, 10:13
Default Hi all, I'm looking for a w
  #1
Senior Member
 
Francois Beaubert
Join Date: Mar 2009
Location: Lille, France
Posts: 133
Rep Power: 8
francois is on a distinguished road
Hi all,

I'm looking for a way to convert my cartesian velocity field U in a cylindrical velocity field where X is the axial direction.

Cartesian
UX
UY
UZ

to

Cylindrical
URadial
Utangential
Uaxial

I know that OpenFOAM has got some coordinate system classes and that for the cylindrical one - the class is called cylindricalCS, but don't know how to use this class in OF 1.5 to convert the velocity field for the whole domain.

I did not found an application like Ucomponents to do this kind of postprocessing.

Has someone some info on this ?

Have a nice day
Regards

Francois
francois is offline   Reply With Quote

Old   January 13, 2009, 11:18
Default Hi Francois, You'll probabl
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
Hi Francois,

You'll probably need to do some coding yourself. I didn't find the application Ucomponents at all, so at least there you are ahead of me!

All the classes derived from coordinateSystem also inherit the methods 'globalVector()' and 'localVector()' that you can use to generate a tmp vector field. This is probably what you want.
A few things to watch for though:
1) the cylindricalCS class uses r/theta/z, you'll need to watch for this if you want the axis to correspond to the global X direction.
2) cylindricalCS uses degrees for theta. If you want radians you'll either need a new class or need to adjust the class accordingly.
olesen is offline   Reply With Quote

Old   January 13, 2009, 11:37
Default Hi Mark, Thanks for your an
  #3
Senior Member
 
Francois Beaubert
Join Date: Mar 2009
Location: Lille, France
Posts: 133
Rep Power: 8
francois is on a distinguished road
Hi Mark,

Thanks for your answer.

Damned ! I hope such an application was lost somewhere in the path of OpenFOAM.

By the way Ucomponents is no more available in OF 1.5 don't know exactly why ... you have to copy the source from OF 1.4 at /OpenFOAM-1.4.1/applications/utilities/postProcessing/velocityField/Ucomponents/

It's quite surprising that nobody has already such an utility. You can find some more info on this post below but it looks like you can't do that for the whole domain but only for some patches.

http://www.cfd-online.com/OpenFOAM_D...es/1/2652.html

Did someone try to implement this for the velocity field conversion for the whole domain ?
francois is offline   Reply With Quote

Old   January 13, 2009, 11:49
Default > By the way Ucomponents is no
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
> By the way Ucomponents is no more available in OF 1.5 don't know exactly why

Oh, the same functionality is still there - see src/postProcessing/foamCalcFunctions/field/components + applications/utilities/postProcessing/foamCalc - just not as Ucomponents.

Unfortunately, it seems that the only way to list the utilities available is provoke a FatalError by supplying "foamCalc -help".

Presumable this mechanism should make it easier for you to extend with your utility.
olesen is offline   Reply With Quote

Old   January 13, 2009, 11:53
Default whaouu don't know this utility
  #5
Senior Member
 
Francois Beaubert
Join Date: Mar 2009
Location: Lille, France
Posts: 133
Rep Power: 8
francois is on a distinguished road
whaouu don't know this utility was there, thanks you very much !

will look at it to see if it can be extended to export the radial, tangential en axial components


Thanks again Mark
francois is offline   Reply With Quote

Old   January 16, 2009, 09:16
Default Hi Francois, I used the met
  #6
Member
 
Ville Tossavainen
Join Date: Mar 2009
Location: Helsinki, Finland
Posts: 60
Rep Power: 8
villet is on a distinguished road
Hi Francois,

I used the method explained in this thread by Osamu Nakamura:

http://www.cfd-online.com/OpenFOAM_D...es/1/2652.html

The radial component can be computed in the same way. I can send you the code if you want.
villet is offline   Reply With Quote

Old   January 16, 2009, 13:27
Default Thanks for the tip ! Well ind
  #7
Senior Member
 
Francois Beaubert
Join Date: Mar 2009
Location: Lille, France
Posts: 133
Rep Power: 8
francois is on a distinguished road
Thanks for the tip !
Well indeed I may be interested by your very kind proposition

You can find my email when you clik on my name in the header of this post

Thank you very much for your help
Have a nice day

Regards
Francois
francois is offline   Reply With Quote

Old   January 16, 2009, 13:30
Default Thanks for the tip ! Well ind
  #8
Senior Member
 
Francois Beaubert
Join Date: Mar 2009
Location: Lille, France
Posts: 133
Rep Power: 8
francois is on a distinguished road
Thanks for the tip !
Well indeed I may be interested by your very kind proposition

You can find my email when you clik on my name in the header of this post

Thank you very much for your help
Have a nice day

Regards
Francois
francois is offline   Reply With Quote

Old   January 19, 2009, 07:48
Default Hi Francois, I think you ca
  #9
Member
 
florian
Join Date: Mar 2009
Location: Mannheim - Vincennes - Valenciennes, Deutchland - France
Posts: 34
Rep Power: 8
floooo is on a distinguished road
Hi Francois,

I think you can use the paraview calculator (that you can find in filters/Common) which is able to make operations between field, U components and coordinate.

When "attribute mode" is on "point data", you have acces to vectors:
(coord, U)
and scalars:
coordx, U_0
coordy, U_1
coordz, U_2

and many operators (cos, sin ...)

Florian
floooo is offline   Reply With Quote

Old   February 12, 2010, 12:17
Unhappy Coordinate System Components (v, w, x) ?
  #10
New Member
 
Mdz
Join Date: Feb 2010
Posts: 6
Rep Power: 7
Marcus081 is on a distinguished road
Hi, I have been using the version of ansys 12.1, and the coordinate system appears with these component (v, w, x) , I have not found the form to change it a (x, y, z), since I can do it?
Attached Images
File Type: png coordinates system.png (2.9 KB, 43 views)
Marcus081 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
FLUENT bug in cartesian-cylind velocity conversion Knut FLUENT 0 September 3, 2008 10:52
cartesian vs cylindrical solver giles Main CFD Forum 0 August 26, 2008 19:00
change coordinate system cartesian to cylindrical tht FLUENT 0 September 6, 2007 05:46
cartesian to cylindrical coordinate UDF Manoj FLUENT 0 December 15, 2005 10:43
Transformation from cartesian to cylindrical P.Fonteijn Main CFD Forum 0 October 18, 2001 16:19


All times are GMT -4. The time now is 09:13.