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

Rotating Mesh around Local Axis

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Yann
  • 1 Post By AMR96

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 9, 2012, 17:35
Default Rotating Mesh around Local Axis
  #1
New Member
 
Join Date: Nov 2012
Location: Scotland, UK
Posts: 19
Rep Power: 13
GPan1 is on a distinguished road
Hi,

I'm running some external aerodynamic CFD studies on a Formula Student car as part of my thesis, and I want to simulate wheel movement. However, since the wheels are not perpendicular to the ground, they have some camber and toe angles, I cannot rotate them around the y axis, so how would I go about defining an axis aligned with the wheel orientation. I do not know how hard this would be to implement as I am just starting out using OpenFOAM.

regards.
GPan1 is offline   Reply With Quote

Old   November 13, 2012, 03:29
Default
  #2
New Member
 
Join Date: Nov 2012
Location: Scotland, UK
Posts: 19
Rep Power: 13
GPan1 is on a distinguished road
so I did some digging and found the rotateMesh command, and if I read the documentation correctly, I would split my mesh into 5 parts - 4 wheels and the body. Then use rotateMesh (initial orientation where 1 = 90deg?) (final orienation) -time :1000

which should rotate the wheel till t=1000?
GPan1 is offline   Reply With Quote

Old   November 21, 2012, 03:07
Default
  #3
New Member
 
Join Date: Nov 2012
Location: Scotland, UK
Posts: 19
Rep Power: 13
GPan1 is on a distinguished road
figured it out, you split the mesh into 5 parts, wheels and body. Then use a rotatingWallVelocity boundary conditions for them. However, the axis is labelled as

axis (0 0 1);

Which would rotate about the z axis, if I used (0.5 0.5 0); instead (or is this just a simple 1 is on, 0 is off), would that rotate the mesh 45 degrees to the x and y axis then?

If so, and I wanted to say turn the wheels 25 degrees and run them, I'd have it (0.278 0.722 0), although probably best picking something that divides into 90 better.
GPan1 is offline   Reply With Quote

Old   October 14, 2021, 16:01
Default
  #4
New Member
 
Nasos_bal
Join Date: Oct 2021
Posts: 8
Rep Power: 4
Nasos_bal is on a distinguished road
Hello! I have a similar problem. Did you find the solution?
Nasos_bal is offline   Reply With Quote

Old   July 9, 2023, 07:56
Default
  #5
Member
 
Join Date: Apr 2022
Posts: 31
Rep Power: 4
AMR96 is on a distinguished road
Quote:
Originally Posted by Nasos_bal View Post
Hello! I have a similar problem. Did you find the solution?
Hi,

Did you find a solution for this?

Does this boundary condition work for a wheel that has toe-in and camber angles?
AMR96 is offline   Reply With Quote

Old   July 9, 2023, 11:17
Default
  #6
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,052
Rep Power: 26
Yann will become famous soon enough
Hello AMR96,

The rotatingWallVelocity takes 3 parameters: angular velocity, origin and axis of rotation. (https://doc.openfoam.com/2306/tools/...gWallVelocity/)

So as long as you properly define these parameters for each wheel, you are good to go.

Cheers,
Yann
Yann is online now   Reply With Quote

Old   July 9, 2023, 13:51
Default
  #7
Member
 
Join Date: Apr 2022
Posts: 31
Rep Power: 4
AMR96 is on a distinguished road
Hi Yann,

Thanks for your reply and the link. Just to be sure I understood everything, I'll explain my situation and what I did.

The original axis of rotation of my wheel was (0,0,1). But I applied a camber angle which in my case was around the x axis and a toe-in angle around the y axis. Then I used the 3D rotation matrix around x and y and applied it to the initial vector (0, 0, 1). I used the result as the new axis of rotation.

Is this the correct way to generate an input for the axis vector?

Best,

Amirmohammad
AMR96 is offline   Reply With Quote

Old   July 10, 2023, 03:35
Default
  #8
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,052
Rep Power: 26
Yann will become famous soon enough
Hello Amirmohammad,

It sounds right indeed. You can then check the wall velocities in ParaView to see if you get the expected result.

Another way to get the vector is to take 2 points along the wheel axis in your CAD software, and measure the (dx,dy,dz) between these 2 points. (useful when you get a CAD file with wheels already in position)

Cheers,
Yann
AMR96 likes this.
Yann is online now   Reply With Quote

Old   July 12, 2023, 04:51
Default
  #9
Member
 
Join Date: Apr 2022
Posts: 31
Rep Power: 4
AMR96 is on a distinguished road
Thank you very much for your help Yann!

Best,

Amirmohammad
Yann likes this.
AMR96 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
Transient simulation not converging skabilan OpenFOAM Running, Solving & CFD 14 December 16, 2019 23:12
Unsteady Boundary Profile with data file Arianna FLUENT 34 July 29, 2019 16:35
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 14:09
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 09:38


All times are GMT -4. The time now is 05:53.