|
[Sponsors] |
how to get relative velocities in a rotating frame of reference? |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Alexey Kochevsky
Join Date: Nov 2010
Location: Munich, Germany
Posts: 16
Rep Power: 16 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
任芸
Join Date: Jun 2009
Posts: 75
Rep Power: 17 ![]() |
Last edited by renyun0511; April 20, 2013 at 04:11. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Join Date: Jun 2011
Posts: 6
Rep Power: 15 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Member
任芸
Join Date: Jun 2009
Posts: 75
Rep Power: 17 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
Join Date: Jun 2011
Posts: 6
Rep Power: 15 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#6 |
New Member
Alexey Kochevsky
Join Date: Nov 2010
Location: Munich, Germany
Posts: 16
Rep Power: 16 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#7 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 28 ![]() |
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.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
![]() |
![]() |
![]() |
![]() |
#8 |
Member
Join Date: Oct 2010
Location: Germany
Posts: 39
Rep Power: 16 ![]() |
Hi Niels,
does your tool also work for GGI ( mixerGgiFvMesh) or only for MRF-cases? Thanks in advance Ivan |
|
![]() |
![]() |
![]() |
![]() |
#9 | |
New Member
Islam Elqatary
Join Date: May 2011
Posts: 19
Rep Power: 15 ![]() |
Quote:
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 |
||
![]() |
![]() |
![]() |
![]() |
#10 |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 18 ![]() |
Dear linnemann,
is this code working with 2.1.x? I'm still getting the "patches keyword missing" problem... |
|
![]() |
![]() |
![]() |
![]() |
#11 |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 18 ![]() |
Sorry, I've already found this:
http://www.cfd-online.com/Forums/ope...implefoam.html And it works. Thank you for sharing it! |
|
![]() |
![]() |
![]() |
![]() |
#12 |
Member
Pekka Pasanen
Join Date: Feb 2012
Location: Finland
Posts: 87
Rep Power: 15 ![]() |
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' |
|
![]() |
![]() |
![]() |
![]() |
#13 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 28 ![]() |
Hi
just replace Code:
relativeVelocity Code:
makeRelative They changed it from 2.2 to 2.3
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
![]() |
![]() |
![]() |
![]() |
#15 |
New Member
Michelangelo
Join Date: Apr 2015
Posts: 17
Rep Power: 12 ![]() |
Hi,
i attached Urel to compile with OF v16.06. |
|
![]() |
![]() |
![]() |
Tags |
circumferential velocity, relative velocity |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 06:14 |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 00:35 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 19:08 |
G95 + CGNS | Bruno | Main CFD Forum | 1 | January 30, 2007 00:34 |
about mutiple rotating reference frame | lingo | FLUENT | 0 | December 12, 2002 04:13 |