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

Cartesian to cylindrical velocity field conversion

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 147
Rep Power: 17
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: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
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: 147
Rep Power: 17
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: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
> 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: 147
Rep Power: 17
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
Posts: 60
Rep Power: 17
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: 147
Rep Power: 17
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: 147
Rep Power: 17
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: 17
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: 16
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, 84 views)
Marcus081 is offline   Reply With Quote

Old   September 29, 2017, 06:37
Question
  #11
Member
 
Tom
Join Date: Apr 2017
Posts: 50
Rep Power: 9
tom.opt is on a distinguished road
Has anyone managed to solve this problem?
I'm using openfoam 5 and I'm looking to calculate the tangential velocity in order to be able to compute the swirl number.

I have everything in cartesian, I'm not sure how to get the tangential velocity
tom.opt is offline   Reply With Quote

Old   November 30, 2017, 06:52
Default
  #12
Member
 
Chris Schäfer
Join Date: Apr 2017
Posts: 34
Rep Power: 9
Chris123 is on a distinguished road
Hi, I'am also interested to derive radial velocity. Supprisingly there exists no macro or plugin in paraview to do this job, or do anyone know about this automatically?
BR
Chris
Chris123 is offline   Reply With Quote

Reply


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 Off
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 11:52
cartesian vs cylindrical solver giles Main CFD Forum 0 August 26, 2008 20:00
change coordinate system cartesian to cylindrical tht FLUENT 0 September 6, 2007 06: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 17:19


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