CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   DynamicMeshDict and multiple AMI Zones (https://www.cfd-online.com/Forums/openfoam/233231-dynamicmeshdict-multiple-ami-zones.html)

ccs1021 January 18, 2021 16:57

DynamicMeshDict and multiple AMI Zones
 
Does anyone know how to implement multiple moving AMI's using dynamicmeshdic? I found an old thread that had some suggestions, however I think it is outdated.

here is what I have;

Code:


/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  v2006                                |
|  \\  /    A nd          | Website:  www.openfoam.com                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    location    "constant";
    object      dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh  dynamicMotionSolverFvMesh;

motionSolverLibs (fvMotionSolvers);

dynamicMultiMotionSolverFvMeshCoeffs
{
        AMI_1
                {
       
                        motionSolver    solidBody;
       
                        cellZone        rotatingZone_1;
                        solidBodyCoeffs
                        {
                                solidBodyMotionFunction  rotatingMotion;
                                rotatingMotionCoeffs
                                {
                               
                                        origin      (22.84 0.94998 7.5);
                                        axis        (0 1 0);
                                        omega      10;
                                }
                        }
                }
        AMI_2
                {
       
                        motionSolver    solidBody;
       
                        cellZone        rotatingZone_2;
                        solidBodyCoeffs
                        {
                                solidBodyMotionFunction  rotatingMotion;
                                rotatingMotionCoeffs
                                {
                               
                                        origin      (7.84 .94998 7.5);
                                        axis        (0 1 0);
                                        omega      10;
                                }
                        }
                }
}

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

Edited by Tobi: Adding code tags

Tobi January 19, 2021 07:14

Dear CT,

welcome to the forum. First of all, please use code tags if you are placing the content of FOAMīs dictionary (mainly for readability). To your question. Seems fine out of the box. However, there should be some tutorials within the ESI version.


All times are GMT -4. The time now is 03:43.