Rotating Mesh
Hello this is my first post to this forum. I have been experimenting with OpenFOAM 1.5 for about a month now, and am attempting to simulate a wind turbine using a rotating mesh. I believe the tool I need to consider using is either icoDyMFoam or MRFSimpleFoam. (at least as far as I can figure out those two can at least handle the dynamic mesh.) I can't seem to find much information on either program. I appreciate how this group hates stupid quiestions so I've been through the user manaual several times and searched for info on the web and in these forums.
Can anyone point me to a place where I can get more information on these tools? For instance I have no idea what the options are for the dynamicMeshDict. An example that works in OF1.5 would really be great. Also MRFSimpleFoam doesn't even appear to be compliled in my release. Is that normal or a problem with my installation? Thanks Steve |
Hi Steve
Welcome to OpenFOAM :) Let me try to answer some questions: Quote:
MRFSimpleFOAM - no explicit mesh movement, uses moving reference frame approach to account for the effect of rotation by adding a source term to the momentum equation. Please look for threads by deepBlue and posts on openfoamwiki, he has documented it very well. Quote:
Quote:
Once again welcome to OpenFOAM and I wish you an healthy and productive Foaming. Best Regards Jaswi |
Thanks jaswi. That was the start I needed. I compiled MRFSimpleFoam and ran the demo. I have much learning to do, but thanks to you, I have some ideas of where you look.
Steve |
Hi Steve,
We are also working with wind turbines, and have some comments: - icoDymfoam (sorry for the mistyping), AFAIK, was written for laminar flows (like icoFoam). I don't think this is your case; - We've been using the rotationBC utility, for steady state simulations (simpleFoam). It compiles well in both 1.4.1 and 1.5. Hope that helps, Best Regards, Paulo Rocha |
My wind turbines are VAWTs, and there is so much that is time dependent I'm not sure a steady state solver will be useful. The blade's (wing's) AOA changes with position, one wing diverts the stream toward / away from another wing, etc.
I was hoping icoDyMFoam might do the job. I see there is also a turbDyMFoam that might be better. (Although I don't see any tutorials for it.) I'm no fluid dynamics expert. Maybe steady state is good enough. I guess it depends if the propagation time for air movement from the front of the VAWT to the back of the VAWT is significant compared to the speed of the blades or not. I'll check out rotationBC just to keep my options open. |
Hi Steve,
Yes, you are right about VAWTs, I mean that you will have to use transient simulation. We still didn't try here, but maybe GGI is also a good option for your problem. Best Regards, Paulo Rocha |
Hi~
I am doing a savonius turbine on turbDyMFoam solver. I think you turbine should also be run in a turbulent environment, so it is turbdymfoam, not icodymfoam. and i think MRF is not suitable for a side-blow turbine. Two dynamic mesh models are possible: Sliding Interface & GGI. The latter could be run parallelly. icodymfoam has tutorials for both these two models, they can be modified slightly to fit turbdymfoam. I don't know what pre-processing software you are using, for me, the mesh conversion process had be a little hard. If it is Gambit or Gmsh, I am now successful. I am currently using the realizableKE RANS model, it now shows the best fit for Fluent result, but still about 7% difference on Torque. I hope when you finish, we can discuss a little about the result between turbulent models. you can also write to me, if you like (*o*) , mryuhai@gmail.com Regards. Hai |
Quote:
1) Created the model in solid works and exported the STL file. 2) Created the base mesh (cylinder and surrounding block with hole for cylinder) using blockMesh. 3) Cut the model out out of the cylinder with snappyHexMesh. (very cool program!). Unfortunately snappyHexMesh eliminates the surrounding block. 4) Made another base mesh of only the block with hole with blockMesh. 5) Added it into the cylinder mesh using MergeMesh (which had to be patched to make it work in OF1.5). You might ask why I bothered to put the block in step 2 if it was just going to be removed. The answer is that the boundary names all get entered at that step. If you don't put it in, when you merge the block back in, then it complains that it had to add boundaries and it refuses to do it. So now I have my model in a cylinder with a surrounding block ready (i think) for turning and sliding meshes. (I think). I still need to figure that part out. I did this mostly with trial and error. There is probably a much simpler way to do it, but I haven't found it yet. Steve |
Hi.YuHai
do you mean if i want make a unsteady calculation for turbine what i need is 1 turbDyMFoam (make some modification like MRFSimpleFoam to add centrifugal force and Coriolis force and so on) 2 ggi interface but what is the difference between ggi and slidinginterface? thanks.. BTW..would you mind add to our online group..openfoam@hotmail.com. wayne Quote:
|
hi~, I am not familar with solid works, but I am sure Gambit can do it, and doesn't need MergeMesh.
Only you have to pay attention to the treatment of the interface. there is a utility for it, and you can find the script for it in the forum. btw,you mesh is in 3D? Quote:
|
sorry, I am not quite well understanded you first question?
for the second, GGI uses a aglorism on the interface, and SI remeshes the interface, the result on my experience is the same. the only differece is that SI doesn't support parallel running. not in parallel, the speed is also quite alike. My geometry is in 2D, and GGI gives the fastest speed on 8-way parallel; And for SI, you can use GAMG linear solver to speed up to like GGI 2-way parallel. And GAMG performs not well on parallel on GGI. I am not sure about all the remarks, it is only my experience. Quote:
|
Quote:
My mesh is 3d. I'll have to check out Gambt sometime. Steve |
Hi
for the first question.i mean the MRFSimpleFOAM in OF is a steady solver. I am not quiet sure what i will do if i want to do a unsteady simulation. i guess first thing is to add "ddt" term and then rotating mesh with time steps..but is that ok or need more?? BTW. when you adding to us it is time to have dinner.so. :) ..i am sorry. thanks wayne Quote:
|
Hi,
if you only want to get the thing rotation without any unsteady irregulary effect, you also can use SRFSimpleFOAM. this is the rotation version of SimpleFOAM that makes the illusion of rotation. in MRF you have 2 zones. But if you only want to get like wing aerodynamics in a rotation system of a mono-wing, SRFSimpleFOAM is perfect. and it runs faster. greets |
Well, I think not only the ddt item.
Suppose you get a turbine which rotates around the z-axis. if the wind is from exactly z-axis, it would be OK, without ddt for steady, and with ddt for unsteady. if the wind is from x direction, I guess the the interface treatment method of MRF will counter trouble, both steady and unsteady. am I right? ................I am not sure. Quote:
|
1 Attachment(s)
Does MRF with GGI have a "jumping mapping" ability?
|
Quote:
|
rotating
Hi wolle and Yuhai
thanks for your reply! for "unsteay" i don`t mean irregular effect of turbulence.i mean the relative position change of rotor and stator.it need the dynamic mesh dictionary i guess . you may find something in tutorial of MRFSimpleFOAM /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.5 | | \\ / A nd | Web: http://www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object dynamicMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dynamicFvMeshLib "libtopoChangerFvMesh.so"; dynamicFvMesh mixerFvMesh; mixerFvMeshCoeffs { coordinateSystem { type cylindrical; origin (0 0 0); axis (0 0 1); direction (1 0 0); } rpm 10; slider { inside insideSlider; outside outsideSlider; } } // ************************************************** *********************** // but it is useless now. i think it need support in MRFSimpleFoam code. that is i wish some want to tell me how to. thanks |
BTW
i add MRF to turbFoam like what MRFSimpleFoam do ,i want to do the unsteady calculation of pump.but i face the error messages like: Time = 0 Courant Number mean: 0.0502405 max: 0.5 deltaT = 0.000246692 //after add coriolis //Ueqn relax smoothSolver: Solving for Ux, Initial residual = 8.88095e-06, Final residual = 6.33714e-08, No Iterations 2 smoothSolver: Solving for Uy, Initial residual = 9.06538e-06, Final residual = 6.39123e-08, No Iterations 2 solve temporary deallocated From function T& tmp<T>::operator()() in file /root/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/tmpI.H at line 164. FOAM aborting is there anyone can help me wayne |
Hi yuhai, I'm trying to simulate a flow around a VAWT in order to comprare OF results with FLUENT results, but OF Torque in three times less than FLUENT one. Could you help me? I set realizablekE model, Ggi and to obtain force on the blades I add this function in controlDict:
forces { type forces; functionObjectLibs ("libforces.so"); //Lib to load patches (blades); // change to your patch name rhoName rhoInf; rhoInf 1.225; //Reference density for fluid CofR (0 0 0); //Origin for moment calculations outputControl timeStep; outputInterval 1; } forceCoeffs { // rhoInf - reference density // CofR - Centre of rotation // dragDir - Direction of drag coefficient // liftDir - Direction of lift coefficient // pitchAxis - Pitching moment axis // magUinf - free stream velocity magnitude // lRef - reference length // Aref - reference area type forceCoeffs; functionObjectLibs ("libforces.so"); patches (blades); rhoName rhoInf; rhoInf 1.225; CofR (0 0 0); liftDir (0 1 0); dragDir (1 0 0); pitchAxis (0 0 1); magUInf 6; lRef 1; Aref 1; outputControl timeStep; outputInterval 1; } ggiCheck { // Type of functionObject type ggiCheck; phi phi; // Where to load it from (if not already in solver) functionObjectLibs ("libsampling.so"); } ); I use turbDyMFoam solver, and all the fvScheme and fvSolution I used is the same used in turbFoam tutorial. I think that I set up well the interface because postprocessing the solution I can see the blade rotate, and the flow go through interface. Thanks in advance! |
I have yet to get reasonable numbers with turbDyMFoam. (Probably because I have no idea what to use for turbulence parameters.) I suggest starting with icoDyMFoam and see what you get. I find I get pretty reasonable results on a lot of VAWTs.
|
Hi hansel, thanks for your quikly reply.
Sorry but, icoDyMFoam is a solver for LAMINAR flows, isn't it? I can't understand how can I get reasonable results... |
Hi enry
I'm fairly new to this but is magUInf the right value? |
Hi Nick,
I found my error... Since the mesh is 2D, OF tranform it into 3D mesh, even if it solve with 2D solver. So to compare 2D FLUENT's results with pseudo-3D OF's results I have to divide OF results by thickness that OF create. :) |
enry
So how did they compare? Mostly I'm simulating vertical axis marine current turbines and also use CFX while I explore this option. |
Hi Nick,
the curves overlap! Results is very very similar. I haven't done any error percentage until now, but I'm satisfied. |
Enry, would you post what you used for transport properties and RASProperties? I've never manage to get good numbers form turbDyMFoam.
|
Hi again Enry
Sounds good. How did the processing times compare? |
Another question Enry!
Are you using parallel? Can you get forces etc. in parallel? If so how?! Cheers Nick |
@Nick: Sorry, not yet, but I think that I will run calculation in parallel untill next month.
@Hansel: RASProperties: RASModel RNGkEpsilon; You can use also realizable K-E. Standard K-E don't work. TransportProperties: transportModel Newtonian; nu nu [0 2 -1 0 0 0 0] 1.46e-05; CrossPowerLawCoeffs { nu0 nu0 [0 2 -1 0 0 0 0] 1e-06; nuInf nuInf [0 2 -1 0 0 0 0] 1e-06; m m [0 0 1 0 0 0 0] 1; n n [0 0 0 0 0 0 0] 1; } BirdCarreauCoeffs { nu0 nu0 [0 2 -1 0 0 0 0] 1e-06; nuInf nuInf [0 2 -1 0 0 0 0] 1e-06; k k [0 0 1 0 0 0 0] 0; n n [0 0 0 0 0 0 0] 1; } ControlDict: applicationClass turbDyMFoam; startFrom latestTime; startTime 0; stopAt endTime; endTime 8; deltaT 0.0001; writeControl adjustableRunTime; writeInterval 0.5; cycleWrite 0; writeFormat ascii; writePrecision 6; writeCompression uncompressed; timeFormat general; timePrecision 6; runTimeModifiable yes; adjustTimeStep yes; maxCo 0.3; maxDeltaT 1.0; functions ( forces { type forces; functionObjectLibs ("libforces.so"); //Lib to load patches (blades); // change to your patch name rhoName rhoInf; rhoInf 1.225; //Reference density for fluid CofR (0 0 0); //Origin for moment calculations outputControl timeStep; outputInterval 1; } forceCoeffs { // rhoInf - reference density // CofR - Centre of rotation // dragDir - Direction of drag coefficient // liftDir - Direction of lift coefficient // pitchAxis - Pitching moment axis // magUinf - free stream velocity magnitude // lRef - reference length // Aref - reference area type forceCoeffs; functionObjectLibs ("libforces.so"); patches (blades); rhoName rhoInf; rhoInf 1.225; CofR (0 0 0); liftDir (0 1 0); dragDir (1 0 0); pitchAxis (0 0 1); magUInf 6; lRef 1; Aref 1; outputControl timeStep; outputInterval 1; } ggiCheck { // Type of functionObject type ggiCheck; phi phi; // Where to load it from (if not already in solver) functionObjectLibs ("libsampling.so"); } ); // ************************************************** *********************** // Fv schemes and Fv solutions are those imposed into turbFoam cavity tutorial. |
Hi nick, sorry, I read only your last reply ;).
FLUENT is faster than OF, because In FLUENT I impose a time step, wile in OF I set adjustTimeStep in order to have CFL<0.3-0.4. I can say that FLUENT is maybe three - four times faster than OF. |
Thanks for the info, Enrico. One last question (I think). How fine was your mesh at the turbine's surface?
|
Hi hansel,
I create a mesh that can give me a value of mean y+ about 30. Mesh resolution so depend of course on simulation set up. My first cell is about 1/800 turbine diameter. I advice you to get some simulation in order to establish your mesh resolution near the blades. |
Wind Turbine
Hey guys,
I've read this thread and some others and its been helpful. I am trying to simulate a wind turbine at a high rpm in OF1.7. Now, I read online that simpleSRFFoam is not good for this. So my options are pimpleDymFoam or MRFSimpleFoam. I gather that pimpleDymFoam moves the mesh whereas MRFSimpleFoam does not (it adds a source term). I guess when I think of a wind turbine simulation, I usually imagine just creating a mesh for a single blade and then using periodic boundary conditions but from the looks of it none of you guys are doing that - why is that? And I'm still not sure which one is better - MRFSimpleFoam or pimpleDymFoam. If anyone has plots of results from these versus experimental data, I would love to see it. Thanks! |
Quote:
Will OF1.7 rotate meshes? |
If you used pimpleDymFoam, i think that moves the mesh doesnt it?
|
Hi Foamers,
I inserted an obstacle in the icoFoam/cavity case and to see what happens when it rotates I've included dynamic mesh effects on icoFoam. The thing is: The square rotates correctly, but the problem is that the mesh rotates with it, and that produces an invalid mesh (severe non-orthogonality). I would like the mesh to just stretch and contract as the square rotates. I mean, I don't want the points attached to the square to rotate. To better explain: When you look at the mesh in the wireframe form on paraView, I want the horizontal wires to keep their y(vertical) position and move (expand or contract) horizontally as the square rotates, and I want the vertical wires to keep their x (horizontal) position and move (expand or contract) vertically as the square rotates. How can I implement this? I'm on OpenFoam 171 and had to modify icoFoam to create icoDyMFoam. How can I install the 1.5-dev? There I believe lives icoDyMFoam and the GGI utility. Thanks and regards! All the best |
Hi all,
I made a 2D mesh using the blockMeshDict and now I wish to rotate producing a half geometry. For example, rotating (180 degree) 2D cylinder we obtain a half 3D cylinder. There is a tool called rotateMesh (http://www.openfoam.com/features/mesh-manipulation.php) but how can I use it ? Any idea ? Thanks. |
All times are GMT -4. The time now is 18:43. |