|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Amirreza
Join Date: Nov 2018
Posts: 45
Rep Power: 8 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,294
Rep Power: 30 ![]() ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#3 | ||
Member
Amirreza
Join Date: Nov 2018
Posts: 45
Rep Power: 8 ![]() |
Quote:
Thank you for your reply. In OpenFOAM 11, the dynamicMeshDict uses the following configuration for single-body rotation: Quote:
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. |
|||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,294
Rep Power: 30 ![]() ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#5 | |
Member
Amirreza
Join Date: Nov 2018
Posts: 45
Rep Power: 8 ![]() |
Quote:
![]() now it is working. For Openfoam9 also do you know such tutorial which is for multiple body rotation ? I could not find it. |
||
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,294
Rep Power: 30 ![]() ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#7 | |
Member
Amirreza
Join Date: Nov 2018
Posts: 45
Rep Power: 8 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |