|
[Sponsors] |
January 6, 2010, 19:05 |
Swirl at inlet boundary
|
#1 |
Senior Member
Join Date: Mar 2009
Location: Norway
Posts: 138
Rep Power: 17 |
Dear foamers
I would like to have a swirl as inlet condition for a single phase flow, preferably when using simpleFoam. I can only find engineSwirl, and no proper documentation - it there any other way to get this property to an inlet BC? |
|
January 7, 2010, 04:00 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Attached is a swirl inlet velocity boundary condition that I have kicking around. Unfortunately I don't actually know in what condition it is (I haven't needed it for several years), but you might give it a try anyhow.
|
|
January 7, 2010, 06:20 |
|
#3 |
Member
Franco Marra
Join Date: Mar 2009
Location: Napoli - Italy
Posts: 70
Rep Power: 17 |
I would also suggest the lecture of the excellent wiki page of the Sig Turbomachinery at the following link:
http://www.openfoamwiki.net/index.ph...Turbomachinery Following the link to the Validation test cases you will find explanation about an alternative way to set swirling boundary conditions. Hope this help. Franco |
|
January 10, 2010, 18:08 |
|
#4 |
Senior Member
Join Date: Mar 2009
Location: Norway
Posts: 138
Rep Power: 17 |
Thanks francescomarra, have you tried this one on OF 1.6(.x) ?
|
|
January 10, 2010, 18:29 |
|
#5 |
Member
Franco Marra
Join Date: Mar 2009
Location: Napoli - Italy
Posts: 70
Rep Power: 17 |
I was able to compile and use the addSwirlAndRotation utility. It is simple and almost self explaining. It uses the constant/swirlAndRotationDict to define the angular velocity of swirl and the rotation vector.
After having defined the normal component of inlet velocity and interior initial velocity in the file 0/U , by running this utility you get the same file modified to take into account the swirling applied to the boundary and, if desired, to the initial conditions. It was easy to modify this routine to get different swirling velocities for two coaxial annular jets. Let me know if you need further details. Regards, Franco |
|
January 10, 2010, 18:37 |
|
#6 |
Senior Member
Join Date: Mar 2009
Location: Norway
Posts: 138
Rep Power: 17 |
Ok. Upon compiling, I get the error " cannot find -lincompressibleTurbulenceModels", also when doing a "full" build of the OSIG-dir.
Did you compile only the preProcessing-directory, or the entire OSIG-package found in the 'Breeder' directory in the SVN? |
|
January 11, 2010, 17:47 |
|
#7 |
Senior Member
Join Date: Mar 2009
Location: Norway
Posts: 138
Rep Power: 17 |
Problem solved using what's found in trunk 'Breeder_1.5', not just 'Breeder'.
|
|
May 13, 2010, 18:12 |
Problems with compiling addSwirlAndRotation on OF 1.6.x
|
#8 |
New Member
Patrik Steinhoff
Join Date: May 2010
Location: Aachen
Posts: 5
Rep Power: 16 |
Hey foamers,
i am quiet new to OF and get in trouble by compiling addSwirlAndRotation following the wiki (http://openfoamwiki.net/index.php/Si...diffuser#Case1). I am using Ubuntu and OF 1.6.x. First i thought it depends on compiling under OF 1.6.x, but after using google i found this thread. Can anyone maybe help me al little to fix the errors i get. By typing: stonehope@ubuntu:~/OpenFOAM/stonehope-1.6.x/applications_SIGturbo/utilities/preProcessing/addSwirlAndRotation$ wmake I get the response: Making dependency list for source file addSwirlAndRotation.C could not open file geometricOneField.H for source file addSwirlAndRotation.C SOURCE=addSwirlAndRotation.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude -I/home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/turbulenceModels/RAS -I/home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/transportModels -IlnInclude -I. -I/home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/addSwirlAndRotation.o In file included from /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvm.H:44, from /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvCFD.H:10, from addSwirlAndRotation.C:33: /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmDdt.H:41:31: error: geometricOneField.H: No such file or directory In file included from /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvm.H:44, from /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvCFD.H:10, from addSwirlAndRotation.C:33: /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmDdt.H:63: error: expected ‘,’ or ‘...’ before ‘&’ token /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmDdt.H:65: error: ISO C++ forbids declaration of ‘geometricOneField’ with no type In file included from /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmDdt.H:90, from /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvm.H:44, from /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvCFD.H:10, from addSwirlAndRotation.C:33: /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmDdt.C:63: error: expected ‘,’ or ‘...’ before ‘&’ token /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmDdt.C:65: error: ISO C++ forbids declaration of ‘geometricOneField’ with no type /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmDdt.C: In function ‘Foam::tmp<Foam::fvMatrix<Type> > Foam::fvm::ddt(int)’: /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmDdt.C:67: error: ‘vf’ was not declared in this scope In file included from /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvm.H:47, from /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvCFD.H:10, from addSwirlAndRotation.C:33: /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmLaplacian.H: At global scope: /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmLaplacian.H:88: error: expected ‘,’ or ‘...’ before ‘&’ token /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmLaplacian.H:91: error: ISO C++ forbids declaration of ‘geometricOneField’ with no type /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmLaplacian.H:96: error: expected ‘,’ or ‘...’ before ‘&’ token /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmLaplacian.H:98: error: ISO C++ forbids declaration of ‘geometricOneField’ with no type In file included from /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmLaplacian.H:188, from /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvm.H:47, from /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvCFD.H:10, from addSwirlAndRotation.C:33: /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmLaplacian.C:133: error: expected ‘,’ or ‘...’ before ‘&’ token /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmLaplacian.C:136: error: ISO C++ forbids declaration of ‘geometricOneField’ with no type /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmLaplacian.C: In function ‘Foam::tmp<Foam::fvMatrix<Type> > Foam::fvm::laplacian(int)’: /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmLaplacian.C:138: error: ‘vf’ was not declared in this scope /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmLaplacian.C: At global scope: /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmLaplacian.C:146: error: expected ‘,’ or ‘...’ before ‘&’ token /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmLaplacian.C:148: error: ISO C++ forbids declaration of ‘geometricOneField’ with no type /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmLaplacian.C:148: error: redefinition of ‘template<class Type> Foam::tmp<Foam::fvMatrix<Type> > Foam::fvm::laplacian(int)’ /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmLaplacian.C:136: error: ‘template<class Type> Foam::tmp<Foam::fvMatrix<Type> > Foam::fvm::laplacian(int)’ previously declared here /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmLaplacian.C: In function ‘Foam::tmp<Foam::fvMatrix<Type> > Foam::fvm::laplacian(int)’: /home/stonehope/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmLaplacian.C:150: error: ‘vf’ was not declared in this scope make: *** [Make/linuxGccDPOpt/addSwirlAndRotation.o] Error 1 I just got the files from: svn checkout http://openfoam-extend.svn.sourcefor...y/applications applications_SIGturbo and svn checkout http://openfoam-extend.svn.sourcefor...oMachinery/src src_SIGturbo that means the ../Breeder1_5/..-directories as mentioned above. I am happy for any request(s). Thanks. stonehope |
|
May 13, 2010, 18:38 |
|
#9 |
Senior Member
Join Date: Mar 2009
Location: Norway
Posts: 138
Rep Power: 17 |
You just need the application dir in postProcessing called 'addSwirlAndRotation'. Make a svn checkout, and do "wmake", that's it.
And make sure you do this inside the OpenFOAM environment. I put this in an application folder under my "<user>-1.6.x" ... |
|
May 13, 2010, 19:23 |
|
#10 |
New Member
Patrik Steinhoff
Join Date: May 2010
Location: Aachen
Posts: 5
Rep Power: 16 |
hey kjetil,
greateful thanks for your quick help!!! I tried as you told me, but finally it did not start working. Searching for possible Reasons guided me to the problem with geometricOneField.H . It is discussed at http://www.cfd-online.com/Forums/ope...ion-error.html and updating the corresponden link(s) solved my problem. Compiling is no Problem anymore. Thx. stonehope |
|
July 23, 2010, 19:42 |
|
#11 |
New Member
Sina
Join Date: May 2010
Posts: 7
Rep Power: 16 |
Dear foamers,
I really enjoyed your forum discussion about addSwirlAndRotation. Actually, I've compiled addSwirlAndRotation successfully, but it doesn't make any "swirlAndRotationProperties" dictionary file. So, I was just wondering if you could please provide me with a sample of "swirlAndRotationProperties" dictionary file or show me a link of download. I look forward to hearing from you. Thanks a lot, Sina |
|
July 24, 2010, 06:28 |
|
#12 |
New Member
Patrik Steinhoff
Join Date: May 2010
Location: Aachen
Posts: 5
Rep Power: 16 |
Hi,
when you take a look to: http://openfoamwiki.net/index.php/Si...se0:_Base_case Here you can find something like this: "....In the swirlAndRotationProperties dictionary you also specify the swirl/rotation in terms of the omega[radians per second] vector and the center of rotation vector. The switches modifyBoundaries and modifyInterior can be modified to control if both the boundaries and the interior should be modified, or only one of them. An example of the swirlAndRotationProperties dictionary can be found in Case1." According to this you can find the swirlAndRotationProperties under: https://openfoam-extend.svn.sourcefo...tionProperties What you see then should look like this: /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.5.x | | \\ / A nd | Web: http://www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object swirlAndRotationProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // modifyBoundaries yes; modifyInterior yes; omega omega [0 2 -1 0 0 0 0] (0.0 0.0 52.646); center center [0 0 0 0 0 0 0] (0.0 0.0 0.0); rotatingPatches ( inlet rotSwirlWall ); // ************************************************** *********************** // Use this to set your own rotating swirl. PS: Don't forget to update the BC's for the use of addSwirlAndRotation. |
|
August 31, 2010, 16:41 |
Swirl and rotation does not work in compressible flow solver?
|
#13 | |
New Member
yu
Join Date: Nov 2009
Posts: 26
Rep Power: 17 |
Hi, is this working with compressible flow?
I tried sonicFoam and rhoPisoFoam, none of them give reasonable results. any suggestion? Thanks, Yu Quote:
|
||
August 31, 2010, 16:50 |
|
#14 |
Senior Member
Join Date: Mar 2009
Location: Norway
Posts: 138
Rep Power: 17 |
The rotating inlet is changing your inlet velocity field only, shouldn't be any further problem with the solver itself.
|
|
September 1, 2010, 14:58 |
|
#15 |
New Member
yu
Join Date: Nov 2009
Posts: 26
Rep Power: 17 |
Hi, Kjetil,
you are right, the solver is ok. The problem i think is because paraview did not show correct results. See the attached pictures (Case1.3 from http://openfoamwiki.net/index.php/Si...nical_diffuser). I plotted the z componet of vector U (U Z) and Uz calcualted from foamCalc (sliced by the plane in the z direction and passing point(0,0,0)). They are different. I checked U file and know the file is ok. I think there is something wrong with paraview. Thanks, yu |
|
December 10, 2012, 10:14 |
|
#16 | |
Member
wided
Join Date: Jul 2010
Posts: 54
Rep Power: 16 |
Hi all,
I am trying to compile the addSwirlAndRotation utility but I get the followinf error, I guess about the decomposer metis: Quote:
Thank you in advance. Regards, widedangel |
||
September 17, 2013, 13:24 |
Problem with addSwirlAndRotation
|
#17 |
New Member
Maciej
Join Date: Sep 2013
Posts: 1
Rep Power: 0 |
Hi,
This is my first post. I've problem with paraview or another. In my case (simple cylinder) I've swirl on face "inlet". Swirl is forced by utility named "applications_SIGturbo". My mesh is made in enGrid and it has boundary layer on cylindrical wall. Inlet velocity is 1 (one) m/s. I use simpleFoam (openFoam) to solve it. Problem is, when i start paraview (paraFoam 4.0) the velocity has very very big value (over 1000 m/s !!!) but behavior of a swirl is properly. Does anyone know what is wrong? thanks for help. |
|
January 7, 2014, 05:52 |
|
#18 |
Senior Member
Join Date: Mar 2009
Location: Norway
Posts: 138
Rep Power: 17 |
Lower your relaxation factors in the beginning.
|
|
July 6, 2017, 16:08 |
|
#19 |
Senior Member
Gajendra Gulgulia
Join Date: Apr 2013
Location: Munich
Posts: 144
Rep Power: 13 |
there is no mention of swirl here
|
|
October 19, 2017, 03:46 |
How to add swirl at inlet BC
|
#20 |
New Member
Join Date: Jul 2017
Posts: 1
Rep Power: 0 |
Hi, I am using openFoam4.1. I want to add swirl at my inlet to the axisymmetric jet but unable to implement.
I tries using inlet { type swirlFlowRateInletVelocity; flowRate constant 0.2; rpm constant 100; uniform value (1 0 0) } I saw the previous post but none were helpful. Please suggest and guide. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pressure Inlet Boundary Condition | Prasad | FLUENT | 6 | April 9, 2013 22:32 |
Inlet and outlet boundary condition | David Baker | FLUENT | 3 | June 22, 2005 01:42 |
Pressure Inlet Boundary Condition | Trinity_psu | FLUENT | 0 | June 1, 2005 15:15 |
user soubroutine of inlet boundary conditions | Charlie Beghein | Siemens | 2 | August 30, 2002 03:03 |
length scales at inlet for internal flows | Anne-Marie Giroux | Main CFD Forum | 3 | July 5, 1999 22:28 |