|
[Sponsors] | |||||
OpenFOAM_ tangential and radial velocity components in a pipe cross section |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Member
Join Date: May 2016
Posts: 40
Rep Power: 11 ![]() |
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. |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
M
Join Date: Dec 2017
Posts: 727
Rep Power: 14 ![]() |
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.
|
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,843
Rep Power: 68 ![]() ![]() ![]() |
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. |
|
|
|
|
|
|
|
|
#4 |
|
Member
Join Date: May 2016
Posts: 40
Rep Power: 11 ![]() |
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.
|
|
|
|
|
|
|
|
|
#5 | |
|
Member
Join Date: May 2016
Posts: 40
Rep Power: 11 ![]() |
Quote:
|
||
|
|
|
||
|
|
|
#6 | |
|
Senior Member
M
Join Date: Dec 2017
Posts: 727
Rep Power: 14 ![]() |
Quote:
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. |
||
|
|
|
||
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |