CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Rotating and translating

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By JBeilke

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 12, 2024, 07:57
Default Rotating and translating
  #1
New Member
 
Join Date: Oct 2023
Posts: 6
Rep Power: 3
emaportr is on a distinguished road
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
emaportr is offline   Reply With Quote

Old   June 13, 2024, 04:29
Default
  #2
Senior Member
 
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 530
Rep Power: 20
JBeilke is on a distinguished road
ACME is not really working as Tobias wrote in the description of the video. Maybe it can be done with overset.
emaportr likes this.
JBeilke is offline   Reply With Quote

Old   July 8, 2024, 07:38
Default
  #3
New Member
 
Join Date: Oct 2023
Posts: 6
Rep Power: 3
emaportr is on a distinguished road
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
emaportr is offline   Reply With Quote

Reply

Tags
dynamic mesh, translation motion


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
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


All times are GMT -4. The time now is 17:32.