|
[Sponsors] |
June 12, 2024, 07:57 |
Rotating and translating
|
#1 |
New Member
Join Date: Oct 2023
Posts: 6
Rep Power: 3 |
Hi,
I am trying to get a paper or tutorial to simulate a cylinder with rotation and translation inside a pipe using openFoam. Tobias Holzmann made this and publish this video. https://www.youtube.com/watch?v=XC-_F42CZjg Anyone has an idea on the strategy to make this happened. there is a forum thread on this matter without any response on this matter but has already many years that was posted. I hope there is new info that I could use to model my case, thanks |
|
June 13, 2024, 04:29 |
|
#2 |
Senior Member
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 530
Rep Power: 20 |
ACME is not really working as Tobias wrote in the description of the video. Maybe it can be done with overset.
|
|
July 8, 2024, 07:38 |
|
#3 |
New Member
Join Date: Oct 2023
Posts: 6
Rep Power: 3 |
http://ibb.co/sJ25bpC
I was able to do rotation and translation using oversetMesh. Works pretty well when the direction of rotating and translating are both counterclockwise or clockwise. The issue is that I need to translate counterclockwise and rotate clockwise, and seems that openfoam does not understand that with the dynamicMeshDict I wrote, only rotate or translate (not both). Any help would be very appreciated this is the dynamicMeshDict: //***************************// dynamicFvMesh dynamicOversetFvMesh; dynamicOversetFvMeshCoeffs { } motionSolverLibs ("libsixDoFRigidBodyMotion.so"); solver multiSolidBodyMotionSolver; multiSolidBodyMotionSolverCoeffs { rotor { cellZone rotor; CofG (0.0045005 0 0.011); mass 0.1; // Mass of the object in kg velocity (0 0 0); g (0 0 -9.8065) // Translational motion (clockwise) (6DoF table) solidBodyMotionFunction tabulated6DoFMotion; timeDataFileName "../pEcc/stator/constant/6DoFCylin.dat"; // Rotational motion (counterclockwise with dynamic origin) solidBodyMotionFunction rotatingMotion; rotatingMotionCoeffs { origin (0.0045005 0 0.011); // Fixed origin of rotation axis (0 0 1); // Axis of rotation (z-axis) omega 69.8133; // Angular velocity in rad/s (counterclockwise) } solver { type CrankNicolson; } restraints { // Define any restraints here if necessary } // Function to update the center of rotation dynamically originFunction // centreOfRotationFunction changes while translating { type codeStream; code #{ // Access to time and angular velocity const Time& time = mesh().time(); scalar t = time.value(); scalar omega = 209.44; // Angular velocity in rad/s // Calculate new center of rotation based on the given formula scalar x = cos(omega * t) * 0.0045005; scalar y = sin(omega * t) * 0.0045005; scalar z = 0.0; point newOrigin = point(x, y, z); // Output the new center of rotation os << newOrigin; #}; } } } Last edited by emaportr; July 8, 2024 at 07:40. Reason: added picture |
|
Tags |
dynamic mesh, translation motion |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Setup of dynamicMeshDict for cylinder translating and rotating around its axis | PenPencil | OpenFOAM Running, Solving & CFD | 1 | March 10, 2021 07:12 |
Translating and Rotating AMI | HiddenSquid | OpenFOAM Pre-Processing | 1 | October 25, 2017 04:59 |
Rotating and Translating 2D Airfoil | jpesich | STAR-CCM+ | 3 | August 31, 2014 18:15 |
kinetic energy of rotating fluid flow | abbie | Main CFD Forum | 1 | October 8, 2012 07:20 |
how to use Total Mesh Displacement for making a subject translating and rotating? | snailstb | CFX | 3 | September 16, 2009 05:06 |