CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   multiSolidBodyMotionFvMesh (https://www.cfd-online.com/Forums/openfoam-solving/106831-multisolidbodymotionfvmesh.html)

Attesz September 10, 2012 09:03

multiSolidBodyMotionFvMesh
 
Hi Foamers,

could you post the structure of the dynamicMeshDict for setting up a case with multiple differently rotating zones using multiSolidBodyMotionFvMesh. There isn't any information or tutorial about it.

Attila

jason April 24, 2013 09:52

Hello,
I have an application that has two separate rotating zones and have found that solidBodyMotionFvMesh can only handle one rotating zone at a time. I would like to use multiSolidBodyMotionFvMesh as that seems to be able to read in multiple zones .... however, I'm not sure how to then specify the coefficients correctly. I tried many variations and this one seems to be most obvious ...

dynamicFvMesh multiSolidBodyMotionFvMesh;

motionSolverLibs ( "libfvMotionSolvers.so" );

multiSolidBodyMotionFvMeshCoeffs
{
cellZone FRotor;
multiSolidBodyMotionFunction rotatingMotion;
rotatingMotionCoeffs
{
CofG (0.3 0 0);
radialVelocity (-360 0 0); // deg/s
}

cellZone RRotor;
multiSolidBodyMotionFunction rotatingMotion;
rotatingMotionCoeffs
{
CofG (0.3 0 0);
radialVelocity (360 0 0); // deg/s
}
}

however, pimpleDyMFoam complains.

Create mesh for time = 0.65

Selecting dynamicFvMesh multiSolidBodyMotionFvMesh


--> FOAM FATAL IO ERROR:
Cannot find cellZone named rotatingMotionCoeffs. Valid zones are
5
(
housing1
housing2
housing3
FRotor
RRotor
)


file: /home/vpc-laptop/OpenFOAM/vpc-laptop-2.2.0/run/model/constant/dynamicMeshDict.multiSolidBodyMotionFvMeshCoeffs from line 33 to line 38.

From function multiSolidBodyMotionFvMesh::multiSolidBodyMotionFv Mesh(const IOobject&)
in file solidBodyMotionFvMesh/multiSolidBodyMotionFvMesh.C at line 114.

FOAM exiting

Could anybody point me in the right direction?

Many Thanks

Jason

jason April 24, 2013 10:05

Hi,
Its ok i found a sample, here is how it is done :)

dynamicFvMesh multiSolidBodyMotionFvMesh;

motionSolverLibs ( "libfvMotionSolvers.so" );

multiSolidBodyMotionFvMeshCoeffs

{
FRotor {
solidBodyMotionFunction rotatingMotion;
rotatingMotionCoeffs
{
CofG (0.3 0 0);
radialVelocity (-360 0 0); // deg/s
}
}

RRotor {
solidBodyMotionFunction rotatingMotion;
rotatingMotionCoeffs
{
CofG (0.3 0 0);
radialVelocity (360 0 0); // deg/s
}
}
}

Jason


All times are GMT -4. The time now is 16:21.