UDF for planetary motion
Hello everyone, iam new to openfoam and for my project i need to describe planetary motion for two blades around one center blade. iam using overPimpleDyMFoam so can anyone point out the right direction to achieve this:confused:. Where and how to write UDF?
And how to link it with my present solver? thanks |
Greetings Ansh and welcome to the forum,
No UDF should be necessary. Since you are likely using OpenfOAM-v1806, please study the respective OpenFOAM Tutorial Guide: https://www.openfoam.com/documentation/tutorial-guide/ - this will give you a better basis on how to get things to work. Then once you are more familiar with how OpenFOAM works, check the tutorial case "tutorials/multiphase/overInterDyMFoam/boatAndPropeller/" and in the file "constant/dynamicMeshDict" you will start to see how the moving parts are defined... Best regards, Bruno |
thanks for quick reply, i have started looking into mentioned tutorials. after adjusting that dynamicmeshdict according to my need iam getting following error:confused:
--> FOAM FATAL ERROR: Could not find rho:rho From function void Foam::functionObjects::forces::initialise() in file forces/forces.C at line 204. FOAM exiting i have found other threads related to this bug and i have changed my rhoName to rho as you mentioned there still iam getting this error. Any suggestions function for force in controldict: functions { forces { type forces; functionObjectLibs ("libforces.so"); writeControl timeStep; writeInterval 5; patches (hole1); rho rhoInf; rhoInf 1; CofR (0 0 0); p p; U U; log yes; verbose true; } } |
Quick answer: Details, details, details... I need details... Please check the following thread for more information on how to provide mode details: https://www.cfd-online.com/Forums/op...-get-help.html
Because my best guess right now is that you've used the wrong command to start the simulation... :( What I mean is that the "rho" field should exist when the solver starts running... so if it doesn't exist, then it might mean that you've tried using it with the wrong application. |
overPimpleDymFoam rigid body motion rho not found
1 Attachment(s)
iam intending to use rigid body motion in overPimpleDyMFoam since i want to give planetary motion to the blades (fig is attached) Attachment 66213
where outer two blades will rotate and revolve arround the centre blade. I have followed the overInterDyMFoam from multiphase flow to achieve that motion iam attaching my conrolDict,forceCoeffs and dynamicMeshDict for reference dynamicMeshDict Code:
motionSolverLibs ("librigidBodyMeshMotion.so"); controlDict Code:
FoamFile forceCoeffs Code:
forceCoeffs and error that iam getting Code:
Creating interpolatedCells field Quote:
1)does that mean i cannot use rigid body motion with overPimpleDyMFoam(since while using it only i have started facing this error ) 2)can anyone recommend any literature available related to this? pardon my immaturity with openfoam:o |
Quick answers:
1. I've tested with OpenFOAM-v1806 as a Docker image. I used the tutorial case "incompressible/overPimpleDyMFoam/twoSimpleRotors" as a basis and did the modifications that you mentioned to the controlDict file, namely:
It also worked when I ran the solver with the "-postProcess" option, after I had a few time steps already written to disk: Code:
overPimpleDyMFoam -postProcess Mmmmm... this sounds like either a bug or some detail is missing for that type of rigid body motion... You may want to report this at http://develop.openfoam.com/ - although you may need to provide a simple test case, so that it's easier to reproduce the problem and fix it. 2. The documentation provided here: https://www.openfoam.com/documentation/ - should already have a considerable amount of information... check the "Extended Code Guide" page for more details, although it may be a bit confusing at first to navigate there. |
All times are GMT -4. The time now is 14:20. |