|
[Sponsors] |
July 12, 2013, 08:33 |
2D VAWT simulation - rpm ramp function?
|
#1 |
Member
Anand Lobo
Join Date: Jun 2013
Posts: 56
Rep Power: 13 |
Hi all,
I successfully made a 2D VAWT simulation at a constant specified RPM and wind speed. I'd like to try a slight modification to it, namely: start the RPM at 0 and ramp it up to a given RPM, with wind speed remaining constant, so I can see the airflow interaction. How would I go about doing this? For info: I used the AMI implementation from the pimpleDyMFoam/propeller tutorial. Based on my rudimentary programming skills, I hope I'd only need to insert some sort of ramp function into dynamicMeshDict? Or would I need to mess with the source code? Your input is appreciated! |
|
July 25, 2013, 05:03 |
Is it possible at all?
|
#2 |
Member
Anand Lobo
Join Date: Jun 2013
Posts: 56
Rep Power: 13 |
No replies at all makes me think this is an impossible request, but I'd like confirmation of the fact in that case.
|
|
July 25, 2013, 15:31 |
|
#3 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hi
It is not possible using the built-in methods. you can look at the openfoam code for solidBodyMotionFunctions https://github.com/OpenFOAM/OpenFOAM...otionFunctions You can take the axisRotationMotion and make a new library that could take a table as input. Similar to as how you can use a table for the BC's https://github.com/OpenFOAM/OpenFOAM...ataEntry/Table I know this might not be what you were looking for but that is my best bet. I must say I do not know if it is possible to change the RPM while the case is running. That should be easy to test with your case. You might also run into problems if running in parallel. There is also the oscillatingRotatingMotion code you could take a look at, that is definitely time varying. https://github.com/OpenFOAM/OpenFOAM...RotatingMotion
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
July 27, 2013, 04:28 |
|
#4 | |
Member
Anand Lobo
Join Date: Jun 2013
Posts: 56
Rep Power: 13 |
Quote:
This might be a good thing to put on the to-do list for future OF builds, assuming it isn't already - time-varying parameters would be useful to no end. |
||
July 30, 2013, 08:46 |
|
#5 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hi I think you are going to like this as Henry has added some of the stuff you would like.
He has added the possibility to change the omega on run-time. More here https://github.com/OpenFOAM/OpenFOAM...e559f51eeb8084 EDIT: See next post for table input
__________________
Linnemann PS. I do not do personal support, so please post in the forums. Last edited by linnemann; August 2, 2013 at 14:39. |
|
August 2, 2013, 14:34 |
|
#6 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Ehm I think Henry has come to your rescue :-)
I can see that from the new tutorial for interPhaseChangeDyMFoam that he uses the table as input for omega. So just upgrade to the latest git and you are good to go. https://github.com/OpenFOAM/OpenFOAM...ynamicMeshDict Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object dynamicMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dynamicFvMesh solidBodyMotionFvMesh; motionSolverLibs ( "libfvMotionSolvers.so" ); solidBodyMotionFvMeshCoeffs { cellZone innerCylinderSmall; solidBodyMotionFunction rotatingMotion; rotatingMotionCoeffs { origin (0 0 0); axis (0 1 0); omega table ( (0 0) (0.01 419) (100 419) ); } } // ************************************************************************* //
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
August 3, 2013, 04:40 |
|
#7 | |
Member
Anand Lobo
Join Date: Jun 2013
Posts: 56
Rep Power: 13 |
Quote:
|
||
August 3, 2013, 05:37 |
|
#8 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hi
The table makes linear interpolation between the entries so it does not have to be that big. Glad to help
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
August 3, 2013, 05:42 |
|
#9 |
Member
Anand Lobo
Join Date: Jun 2013
Posts: 56
Rep Power: 13 |
That's good, I didn't think about interpolation.
Now all I need is a computer that's somewhat less than 5 years old, to do the simulations faster, hahah Thanks again! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
2D vawt simulation meshing and fluent error | daysley | FLUENT | 5 | April 15, 2014 20:51 |
[swak4Foam] installation problem with version 0.2.3 | Claudio87 | OpenFOAM Community Contributions | 9 | May 8, 2013 11:20 |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 10:31 |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 01:35 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |