CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Angular velocity of a rotating mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 17, 2024, 05:23
Default Angular velocity of a rotating mesh
  #1
New Member
 
Ilyes SAYAD
Join Date: Jul 2021
Posts: 18
Rep Power: 5
highpressure is on a distinguished road
Hello everyone!

I'm currently simulating the flow-induced rotation of a wind turbine using a dynamic mesh in OpenFOAM. My goal is to extract the angular velocity of the turbine. If you have any advice, tips, or similar experiences to share, I would greatly appreciate your input.

dynamicMeshDict is attached.

Thanks in advance,
Attached Files
File Type: c dynamicMeshDict.c (1.7 KB, 3 views)
highpressure is offline   Reply With Quote

Old   June 7, 2024, 07:22
Default
  #2
Member
 
Honza Höll
Join Date: Mar 2016
Location: Brno, CZ
Posts: 37
Rep Power: 10
indy07cz is on a distinguished road
The solution is sixDoFRigidBodyState
indy07cz is offline   Reply With Quote

Old   July 4, 2024, 08:22
Default
  #3
New Member
 
Ilyes SAYAD
Join Date: Jul 2021
Posts: 18
Rep Power: 5
highpressure is on a distinguished road
Hello Honza,

Thank you for your reply. I have found that I need to add a function in the controlDict to track the movement of the rotating mesh. I tried to implement this:

Code:
sixDoFRigidBodyState
    {
        type            sixDoFRigidBodyState;
        libs            ("libsixDoFRigidBodyMotion.so");
        writeControl    timeStep;
        writeInterval   1;
        patches         (savonius);
    }
However, I do not see anything in the Postprocessing folder. Any help would be appreciated.


ControlDict file is attached.



Thank you,
Attached Files
File Type: txt controlDict.txt (2.9 KB, 0 views)
highpressure is offline   Reply With Quote

Old   July 4, 2024, 08:33
Default
  #4
Member
 
Honza Höll
Join Date: Mar 2016
Location: Brno, CZ
Posts: 37
Rep Power: 10
indy07cz is on a distinguished road
Hello, I just used:
Code:
sixDoFRigidBodyState
        {
                type           sixDoFRigidBodyState;
                libs           (sixDoFRigidBodyState);
                //angleFormat    degrees;
                //writeControl    runTime;
                //writeInterval   0.01;
        }
In postprocessing folder, there is file with all the informations. More informations here: https://www.openfoam.com/documentati...BodyState.html
Attached Files
File Type: txt dynamicMeshDict.txt (6.5 KB, 1 views)
indy07cz is offline   Reply With Quote

Old   July 4, 2024, 09:40
Default
  #5
New Member
 
Ilyes SAYAD
Join Date: Jul 2021
Posts: 18
Rep Power: 5
highpressure is on a distinguished road
Hello,


I'm getting the following error:


Code:
 
 --> FOAM FATAL ERROR: (openfoam-2312 patch=240220) 
[1] Attempt to cast type rigidBodyMotion to type sixDoFRigidBodyMotion
This is probably due to the fact that I'm using the rigidBodyMotion solver instead of sixDoFRigidBodyMotion. The dynamicMeshDict file is attached.


Is it possible to use an equivalent function without changing the motionSolver?


Thank you,
Attached Files
File Type: txt dynamicMeshDict.txt (1.7 KB, 1 views)
highpressure is offline   Reply With Quote

Old   July 5, 2024, 04:10
Default
  #6
Member
 
Honza Höll
Join Date: Mar 2016
Location: Brno, CZ
Posts: 37
Rep Power: 10
indy07cz is on a distinguished road
I'm not sure.
indy07cz is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rotating mesh simulation in Simscale using an imported mesh lmayz Main CFD Forum 1 February 16, 2023 10:39
Import .csv - velocity profile - error eSKa CFX 9 April 3, 2021 13:38
wrong velocity contour of rotating propeller - Fluent calv FLUENT 1 September 6, 2018 11:48
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Question on moving mesh, mesh velocity is really small! ripperjack Main CFD Forum 2 April 28, 2014 13:37


All times are GMT -4. The time now is 21:54.