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

How does OpenFOAM's oscillating rotating motion work?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2023, 05:47
Default How does OpenFOAM's oscillating rotating motion work?
  #1
New Member
 
Something Random
Join Date: Jul 2022
Posts: 5
Rep Power: 5
SomethingRandom is on a distinguished road
I just want to confirm how the OpenFOAM's motion solver calculates the oscillating rotating motion.

Is it something equivalent to this python code?
```
def point_rotate_array(pointx, pointy, rotationAngle, rotateAbout):
pointx = np.array(pointx)
pointy = np.array(pointy)

tempx = pointx - rotateAbout[0]
tempy = pointy - rotateAbout[1]

xPrime = tempx * np.cos(rotationAngle) - tempy * np.sin(rotationAngle)
yPrime = tempy * np.cos(rotationAngle) + tempx * np.sin(rotationAngle)

xPrime = xPrime + rotateAbout[0]
yPrime = yPrime + rotateAbout[1]

amplitude_x = xPrime - pointx
amplitude_y = yPrime - pointy

return [amplitude_x, amplitude_y]
```
SomethingRandom is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Specifying Mesh Deformation & Rigid Body Motion on a Cell Zone Using UDF zx9cp Fluent UDF and Scheme Programming 3 July 11, 2023 05:14
Projectile motion of Rotating ball in air Roa Site Help, Feedback & Discussions 0 May 1, 2020 01:14
DynamicsMeshFv - Rotating motion with prescribed time shereez234 OpenFOAM Programming & Development 3 December 6, 2016 07:20
Rotating motion Richy STAR-CCM+ 0 February 11, 2013 03:51
Rotating mesh motion Js CFX 6 May 18, 2007 02:22


All times are GMT -4. The time now is 15:41.