CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

OpenFOAM_ tangential and radial velocity components in a pipe cross section

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

Like Tree1Likes
  • 1 Post By AtoHM

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 17, 2023, 02:12
Default OpenFOAM_ tangential and radial velocity components in a pipe cross section
  #1
Member
 
Join Date: May 2016
Posts: 40
Rep Power: 11
esma is on a distinguished road
Hi,
I'm using OpenFOAM to analyze the flow in the suction of a submersible pump.

I've been searching the forums to see if there is a way the velocity components in cartesian coordinates can be transferred to a polar (cylindrical) system.
most of the posts in CFD-online are from older days and I found in one people talk about compiling a code. I'm not familiar with compiling process and I thought these days there may be another way to get this component either in ParaView or as a function in system/controlDict. I couldn't find any clue.
Does anyone know a more straight forward solution than compiling code exercises?

As you can see attached, the velocity components extracted from the slice I need has Ux,Uy and Uz components and I'm looking for Ux, Uy to in radial and tangential Ur & Ut.

Appreciate any help.
Attached Images
File Type: jpg pump_suction1.JPG (17.1 KB, 16 views)
File Type: jpg pump_suction2.jpg (76.8 KB, 19 views)
esma is offline   Reply With Quote

Old   January 17, 2023, 02:55
Default
  #2
Senior Member
 
M
Join Date: Dec 2017
Posts: 727
Rep Power: 14
AtoHM is on a distinguished road
If you need it only on this cross-section which seems to be perpendicular to a mayor coordinate axis, you can readily calculate that in PV itself. Grab a piece of paper, draw some triangles and derive the transformation needed.
AtoHM is offline   Reply With Quote

Old   January 17, 2023, 03:24
Default
  #3
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,843
Rep Power: 68
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
I recommend, using the calculator in paraview and putting in the formula for the transformation. Or saving it to a .csv and doing the same in excel.

There is indeed a fieldFunctionObjects library which contains a fieldCoordinateSystemTransform tool among many others that would let you output in a cylindrical system. Although it is a simple modification of the controlDict... because it is a functionObject, there is a compiling involved. All forms of compiling have apparently been outlawed even though the compiling is done automatically at runtime.
LuckyTran is offline   Reply With Quote

Old   January 17, 2023, 04:05
Default
  #4
Member
 
Join Date: May 2016
Posts: 40
Rep Power: 11
esma is on a distinguished road
Quote:
Originally Posted by AtoHM View Post
If you need it only on this cross-section which seems to be perpendicular to a mayor coordinate axis, you can readily calculate that in PV itself. Grab a piece of paper, draw some triangles and derive the transformation needed.
Thanks, but I thought about it before. please see the sketch attached. The problem is the location of the velocity vector at the cell center against the X and Y axis is not given. if I knew theta angle that was easy.
Attached Images
File Type: jpg velocity_components.JPG (113.1 KB, 20 views)
esma is offline   Reply With Quote

Old   January 17, 2023, 04:20
Default
  #5
Member
 
Join Date: May 2016
Posts: 40
Rep Power: 11
esma is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
I recommend, using the calculator in paraview and putting in the formula for the transformation. Or saving it to a .csv and doing the same in excel.

There is indeed a fieldFunctionObjects library which contains a fieldCoordinateSystemTransform tool among many others that would let you output in a cylindrical system. Although it is a simple modification of the controlDict... because it is a functionObject, there is a compiling involved. All forms of compiling have apparently been outlawed even though the compiling is done automatically at runtime.
great, thanks for the keyword. I'll try to see if I can implement "fieldCoordinateSystemTransform" in controlDict.
esma is offline   Reply With Quote

Old   January 17, 2023, 06:29
Default
  #6
Senior Member
 
M
Join Date: Dec 2017
Posts: 727
Rep Power: 14
AtoHM is on a distinguished road
Quote:
Originally Posted by esma View Post
Thanks, but I thought about it before. please see the sketch attached. The problem is the location of the velocity vector at the cell center against the X and Y axis is not given. if I knew theta angle that was easy.

Ok, it is probably not readily available. Two options: I think OF has a function object to export the cell center coordinates. Once you have this, the calculation is possible directly.
Without that, you can use the PointToCellData or CellToPointData filters of PV to either interpolate the coords or the velocity to the points or cell centers and then you can calculate theta.
esma likes this.
AtoHM is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Plotting Radial Velocity and Tangential Velocity in CFD Post ashtonJ CFX 5 July 13, 2015 03:49
Draw the tangential, axial and radial velocity for flow section Al-Hashimi FLUENT 3 August 12, 2013 02:16
Radial velocity and tangential velocity on centrifugal fan, johnnyp FLUENT 2 May 24, 2013 08:10
Velocity cylindrical components from OpenFOAM aerospain OpenFOAM 2 October 17, 2012 08:09
Radial and tangential velocity Antonio Mileo FLUENT 2 February 16, 2001 02:41


All times are GMT -4. The time now is 07:03.