CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Multiple AMI rotations

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

Like Tree4Likes
  • 1 Post By Yann
  • 1 Post By Amirreza_pro
  • 1 Post By Yann
  • 1 Post By Amirreza_pro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 28, 2025, 15:55
Default Multiple AMI rotations
  #1
Member
 
Amirreza
Join Date: Nov 2018
Posts: 45
Rep Power: 8
Amirreza_pro is on a distinguished road
Hi guys,
Does anybody know how to set up multiple AMI rotations in OpenFOAM 11?
I’m trying to simulate a bearing where both the cage (casing) and each roller rotate: the cage rotates around the center, and each roller also spins around its own axis.

I’m using the following dynamicMeshDict (see below):
FoamFile
{
format ascii;
class dictionary;
location "constant";
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh multiSolidBodyMotionFvMesh;

motionSolverLibs ("libfvMotionSolvers.so");

motionSolver solidBody;
solidBodyMotionFunction rotatingMotion;

multiSolidBodyMotionFvMeshCoeffs
{
// Overall bearing rotation (casing + rollers around bearing center)
Cut_12
{
solidBodyMotionFunction rotatingMotion;
rotatingMotionCoeffs
{
origin (0 0 0);
axis (0 0 1);
omega 100; // rad/s
}
}

// Roller rotation around its own axis
// You need to define a cell zone for each roller
rollerZone1
{
solidBodyMotionFunction rotatingMotion;
rotatingMotionCoeffs
{
// Replace with actual roller center coordinates
origin (-0.0405 0 0);
axis (0 0 1);
// Set appropriate angular velocity for roller
omega -50; // rad/s (negative for counter-rotation)
}
}

rollerZone2
{
solidBodyMotionFunction rotatingMotion;
rotatingMotionCoeffs
{
// Replace with actual roller center coordinates
origin (-0.035071 -0.02025 0);
axis (0 0 1);
// Set appropriate angular velocity for roller
omega -50; // rad/s (negative for counter-rotation)
}
}

}

// ************************************************** *********************** //



but openfoam11 ignores it and does not read the dynamicmeshDict file!!

Last edited by Amirreza_pro; April 29, 2025 at 04:41.
Amirreza_pro is offline   Reply With Quote

Old   April 29, 2025, 03:11
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,294
Rep Power: 30
Yann will become famous soon enoughYann will become famous soon enough
Hello Amirreza,

I'm not really using OpenFOAM-11, but it seems the dynamicMesDict syntax has changed. Have a look at the tutorials using dynamicMeshDict your OpenFOAM install to see some examples.
Yann is offline   Reply With Quote

Old   April 29, 2025, 04:44
Default
  #3
Member
 
Amirreza
Join Date: Nov 2018
Posts: 45
Rep Power: 8
Amirreza_pro is on a distinguished road
Quote:
Originally Posted by Yann View Post
Hello Amirreza,

I'm not really using OpenFOAM-11, but it seems the dynamicMesDict syntax has changed. Have a look at the tutorials using dynamicMeshDict your OpenFOAM install to see some examples.
Hi Jann,

Thank you for your reply.

In OpenFOAM 11, the dynamicMeshDict uses the following configuration for single-body rotation:

Quote:
mover
{
type motionSolver;
libs ("libfvMeshMovers.so" "libfvMotionSolvers.so");
motionSolver solidBody;
cellZone innerCylinder;
solidBodyMotionFunction rotatingMotion;
origin (0 0 0);
axis (0 1 0);
rpm 1500;
}

This setup works well for rotating a single body. However, I'm interested in implementing multiple body rotations. My question is: What syntax should I use for multiple body rotations? Does OpenFOAM 11 support this?

In OpenFOAM 9, I attempted to use multiSolidBodyMotionFvMesh, but OpenFOAM did not recognize it. This functionality was available in previous versions. Now, I'm seeking guidance on how to implement multiple body rotations in OpenFOAM 11 or even 9.
Amirreza_pro is offline   Reply With Quote

Old   April 29, 2025, 05:11
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,294
Rep Power: 30
Yann will become famous soon enoughYann will become famous soon enough
Alright, I understand. The challenge is indeed to find the proper syntax for it.

I think there is an example in this tutorial, where a motionSolverList is defined to be able to define motion for several bodies:
https://github.com/OpenFOAM/OpenFOAM...ynamicMeshDict
Amirreza_pro likes this.
Yann is offline   Reply With Quote

Old   April 30, 2025, 10:33
Default
  #5
Member
 
Amirreza
Join Date: Nov 2018
Posts: 45
Rep Power: 8
Amirreza_pro is on a distinguished road
Quote:
Originally Posted by Yann View Post
Alright, I understand. The challenge is indeed to find the proper syntax for it.

I think there is an example in this tutorial, where a motionSolverList is defined to be able to define motion for several bodies:
https://github.com/OpenFOAM/OpenFOAM...ynamicMeshDict
Thanks alot Yann, exactly that's what I meant
now it is working.
For Openfoam9 also do you know such tutorial which is for multiple body rotation ?
I could not find it.
Yann likes this.
Amirreza_pro is offline   Reply With Quote

Old   April 30, 2025, 11:59
Default
  #6
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,294
Rep Power: 30
Yann will become famous soon enoughYann will become famous soon enough
Hello,

Here is an example: https://github.com/OpenFOAM/OpenFOAM...ynamicMeshDict

You can use grep and find utilities to search for strings or files.
For instance to find all tutorials using rotatingMotion:
Code:
grep -rw "rotatingMotion" $FOAM_TUTORIALS
Amirreza_pro likes this.
Yann is offline   Reply With Quote

Old   May 2, 2025, 04:41
Default
  #7
Member
 
Amirreza
Join Date: Nov 2018
Posts: 45
Rep Power: 8
Amirreza_pro is on a distinguished road
Quote:
Originally Posted by Yann View Post
Hello,

Here is an example: https://github.com/OpenFOAM/OpenFOAM...ynamicMeshDict

You can use grep and find utilities to search for strings or files.
For instance to find all tutorials using rotatingMotion:
Code:
grep -rw "rotatingMotion" $FOAM_TUTORIALS
Thnaks alot Yann, yes, you are right.
Yann likes this.
Amirreza_pro 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
Multiple AMI zones not working phelps OpenFOAM Running, Solving & CFD 6 September 10, 2021 07:03
Multiple AMI rotations not working mahtin360 OpenFOAM Running, Solving & CFD 4 January 3, 2021 10:50
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 06:09
mapField error rvl565 OpenFOAM Pre-Processing 1 September 6, 2018 16:13
mixerVesselAMI2D's mass is not balancing sharonyue OpenFOAM Running, Solving & CFD 6 June 10, 2013 09:34


All times are GMT -4. The time now is 01:33.