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/)
-   -   dynamicMeshDict for two rotating bodies (https://www.cfd-online.com/Forums/openfoam-solving/218864-dynamicmeshdict-two-rotating-bodies.html)

Kondorfa July 7, 2019 13:24

dynamicMeshDict for two rotating bodies
 
Hi all,


How can one rotate two bodies in OpenFOAM v1812.

I just cannot figure out what entries to put where in the dynamicMeshDict.


I can find different examples for other (elder) versions of OpenfOAM, but they only create errors.




For one body it is the follwing:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1812 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh dynamicMotionSolverFvMesh;

motionSolverLibs ( "libfvMotionSolvers.so" );

motionSolver solidBody;

cellZone innerPartSmall;

solidBodyMotionFunction rotatingMotion;

origin (0 0 0);
axis (0 1 0);
omega 94.2;

*/

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





Any ideas?


K.

CFD_10 July 7, 2019 14:28

You can use multiSolidBodyMotionFvMesh.
Here is an example: https://www.cfd-online.com/Forums/op...t-working.html

Kondorfa July 7, 2019 16:08

CFD_10, Thanks a lot for pointing to this previous thread.


I tried multiSolidBodyMotionFvMesh and got this error message below. Hence the second option mentioned in the thread using dynamicMultiMotionSolverFvMesh seems promosing.:)


I try and report later.:D



[1] Unknown dynamicFvMesh type multiSolidBodyMotionFvMesh:confused:

Valid dynamicFvMesh types are :

6
(
dynamicInkJetFvMesh
dynamicMotionSolverFvMesh
dynamicMotionSolverListFvMesh
dynamicMultiMotionSolverFvMesh:rolleyes:
dynamicRefineFvMesh
staticFvMesh
)

CFD_10 July 7, 2019 16:18

Sorry, I think that multiSolidBodyMotionFvMesh is available only in OpenFOAM versions from OpenFOAM Foundation (openfoam.org) but for ESI OpenCFD version (openfoam.com), OFv1812 I think dynamicMultiMotionSolverFvMesh is the equivalent.

Kondorfa July 7, 2019 16:28

dynamicMultiMotionSolverFvMesh now seems to work. Yupiee!

Thanks a lot for this quick help!!


K.


All times are GMT -4. The time now is 12:24.