|
[Sponsors] |
How does OpenFOAM's oscillating rotating motion work? |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Something Random
Join Date: Jul 2022
Posts: 5
Rep Power: 5 ![]() |
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] ``` |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |