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

how to get relative velocities in a rotating frame of reference?

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

Like Tree9Likes
  • 1 Post By renyun0511
  • 3 Post By linnemann
  • 2 Post By linnemann
  • 1 Post By akidess
  • 2 Post By MIZOR

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 7, 2011, 13:24
Question how to get relative velocities in a rotating frame of reference?
  #1
New Member
 
Alexey Kochevsky
Join Date: Nov 2010
Location: Munich, Germany
Posts: 16
Rep Power: 15
alkochevsky is on a distinguished road
Hi dear OpenFOAMers,
I am simulating the fluid flow in some centrifugal pump consisting of the rotor and the stator, using the OSIG TurboMachinery libraries with OpenFOAM-1.5-dev. In the results I am getting all the velocities (at least, by default) are in the absolute frame of reference. My questions are:
1. How to get the field of relative velocities, i.e., velocities in the rotating frame of reference? My idea is to extend the utility foamCalc to enable this transformation. But maybe some solution is already available?
2. How to get the circumferential and radial components of the velocity? Is some solution in OpenFOAM already available?

Best regards,
Alexey Kochevsky
alkochevsky is offline   Reply With Quote

Old   May 16, 2011, 22:35
Default
  #2
Member
 
任芸
Join Date: Jun 2009
Posts: 75
Rep Power: 16
renyun0511 is on a distinguished road
use "Urel" function after wmake the following code.


Attachment 7740
alkochevsky likes this.

Last edited by renyun0511; April 20, 2013 at 05:11.
renyun0511 is offline   Reply With Quote

Old   August 9, 2011, 07:21
Default
  #3
New Member
 
Join Date: Jun 2011
Posts: 6
Rep Power: 14
ChristianE46 is on a distinguished road
Hi!
I've compiled it with wmake successfull. But if I want to use it I get:

--> FOAM FATAL ERROR:
cannot find MRF faceZone ROTOR

From function Foam::MRFZone::MRFZone(const fvMesh& , const dictionary&)
in file MRFZone.C at line 71.

FOAM exiting

What is my mistake?
Regards, Chris
ChristianE46 is offline   Reply With Quote

Old   August 9, 2011, 10:27
Default
  #4
Member
 
任芸
Join Date: Jun 2009
Posts: 75
Rep Power: 16
renyun0511 is on a distinguished road
hi,Chris,
the error you encountered means that your model hasn't rotor part, and the Urel function i uploaded is for the rotating machinery, you can also see it from the Urel file.
renyun0511 is offline   Reply With Quote

Old   August 9, 2011, 12:06
Default
  #5
New Member
 
Join Date: Jun 2011
Posts: 6
Rep Power: 14
ChristianE46 is on a distinguished road
Well, I got a 2D turbomachine, with a rotating impeller and a diffusor. maybe the problem is, that I gave the rotor the name "Impeller" and not "ROTOR"?
I use OF 1.6 ext.
ChristianE46 is offline   Reply With Quote

Old   September 30, 2011, 13:40
Default
  #6
New Member
 
Alexey Kochevsky
Join Date: Nov 2010
Location: Munich, Germany
Posts: 16
Rep Power: 15
alkochevsky is on a distinguished road
Hi Renyun,
sorry for long silence, I have made some pause in my OpenFOAM activities.
Thank you very much for your function, I have compiled it successfully.
However, trying to apply it to my case, I get a similar error message as Christian.

To Christian: as far as I understand, the faceZone name is taken from the constant\MRFZones file. It should be the same in the polyMesh\faceZones file, should be consistent with the data in the polyMesh\boundary file and with the corresponding file name in the polyMesh\sets directory. You may put the correct name everywhere manually.

In my case, however, the interface consists of 2 independent patches that are separately specified also in the boundary file: one patch is disk-shaped and the other is cylinder-shaped (an impeller is inserted in a casing with a large gap between them). Thus, both patches cannot have the same name (like "rotor"). The same difficulty may be expected if simulating the flow in several stages of a multi-stage pump: each faceZone of the next impeller will have different name. How would you suggest to apply Urel function in this situation?

Regards,
Alexey Kochevskyy
alkochevsky is offline   Reply With Quote

Old   December 16, 2011, 08:59
Default
  #7
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27
linnemann will become famous soon enough
For the newer version of MRFZones which does not use faceZones and the "patches" keyword any more.

This is just quickly thrown together from the above code and I take no credit at all, but it still works with 1.6 and likely also above 1.6.
Attached Images
File Type: png U.png (93.8 KB, 194 views)
File Type: jpg Urel.jpg (56.9 KB, 202 views)
Attached Files
File Type: gz Urel.tar.gz (3.5 KB, 175 views)
Attesz, renyun0511 and jock like this.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   May 8, 2012, 04:34
Default
  #8
Member
 
Join Date: Oct 2010
Location: Germany
Posts: 39
Rep Power: 15
Ivanet is on a distinguished road
Hi Niels,
does your tool also work for GGI ( mixerGgiFvMesh) or only for MRF-cases?
Thanks in advance
Ivan
Ivanet is offline   Reply With Quote

Old   May 9, 2012, 08:35
Default Urel
  #9
New Member
 
Islam Elqatary
Join Date: May 2011
Posts: 19
Rep Power: 14
Islam ElQatary is on a distinguished road
Quote:
Originally Posted by linnemann View Post
For the newer version of MRFZones which does not use faceZones and the "patches" keyword any more.

This is just quickly thrown together from the above code and I take no credit at all, but it still works with 1.6 and likely also above 1.6.
hi
i tried to compiled the Urel code but when i used the Urel command i got segmentation fault error i use openfoam 1.6ext i don't why that error especially that may memory is ok
Thanks
Islam ElQatary is offline   Reply With Quote

Old   May 29, 2012, 11:19
Default OF21x
  #10
Senior Member
 
Attesz's Avatar
 
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17
Attesz is an unknown quantity at this point
Dear linnemann,

is this code working with 2.1.x? I'm still getting the "patches keyword missing" problem...

Quote:
Originally Posted by linnemann View Post
For the newer version of MRFZones which does not use faceZones and the "patches" keyword any more.

This is just quickly thrown together from the above code and I take no credit at all, but it still works with 1.6 and likely also above 1.6.
__________________
I am doing CFD Consulting Services.
Ich biete CFD Strömungssimulationen an.
Attesz is offline   Reply With Quote

Old   May 29, 2012, 12:35
Default
  #11
Senior Member
 
Attesz's Avatar
 
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17
Attesz is an unknown quantity at this point
Sorry, I've already found this:

http://www.cfd-online.com/Forums/ope...implefoam.html

And it works. Thank you for sharing it!


Quote:
Originally Posted by Attesz View Post
Dear linnemann,

is this code working with 2.1.x? I'm still getting the "patches keyword missing" problem...
__________________
I am doing CFD Consulting Services.
Ich biete CFD Strömungssimulationen an.
Attesz is offline   Reply With Quote

Old   April 1, 2014, 05:47
Default
  #12
Member
 
Pekka Pasanen
Join Date: Feb 2012
Location: Finland
Posts: 87
Rep Power: 14
zordiack is on a distinguished road
Any chance to get this working for 2.3.x? It didnt' compile

Urel.C:85:17: error: 'class Foam::IOMRFZoneList' has no member named 'relativeVelocity'
zordiack is offline   Reply With Quote

Old   April 1, 2014, 15:22
Default
  #13
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27
linnemann will become famous soon enough
Hi

just replace
Code:
relativeVelocity
with
Code:
makeRelative
in that file.

They changed it from 2.2 to 2.3
Nolwenn and zordiack like this.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   April 11, 2016, 10:58
Default
  #14
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
I adapted the code to compile with OF-3.0.x:

https://bitbucket.org/akidess/urel
afshinb likes this.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   May 31, 2017, 07:05
Default
  #15
New Member
 
Michelangelo
Join Date: Apr 2015
Posts: 17
Rep Power: 10
MIZOR is on a distinguished road
Hi,

i attached Urel to compile with OF v16.06.
Attached Files
File Type: zip Urel.zip (1.9 KB, 92 views)
ArturM and anthony761 like this.
MIZOR is offline   Reply With Quote

Reply

Tags
circumferential velocity, relative velocity

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
question about governing equation in CFX using rotating/non rotating reference frame rystokes CFX 0 January 12, 2010 07:14
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 01:35
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
G95 + CGNS Bruno Main CFD Forum 1 January 30, 2007 01:34
about mutiple rotating reference frame lingo FLUENT 0 December 12, 2002 05:13


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