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 - Multi moving Boundaries (https://www.cfd-online.com/Forums/openfoam-solving/120041-dynamicmeshdict-multi-moving-boundaries.html)

felicemastronzo June 29, 2013 04:50

dynamicMeshDict - Multi moving Boundaries
 
Hi all,
I have a question. I know that in order to manage the mesh when a boundary is moving, the dynamicMeshDict should be modified. In particular I have found this std settings in the tutorial (where movingBlock is a moving boundary)

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object motionProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh dynamicMotionSolverFvMesh;

motionSolverLibs ("libfvMotionSolvers.so");

solver displacementLaplacian;

diffusivity inverseDistance (movingBlock);


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

Now my question is: if I have more than one moving boundary, how can I set the dynamicMeshDict in order to have a diffusivity function of the inverse distance from both boundaries? Is possible?

Regards
F.

Aurelien Thinat July 1, 2013 05:09

Hi,

Normally you just have to specify both patches (this is from one of my cases) :

Quote:

solver displacementLaplacian;
diffusivity inverseDistance (patch1 patch2);

felicemastronzo July 5, 2013 07:16

Quote:

Originally Posted by Aurelien Thinat (Post 437007)
Hi,

Normally you just have to specify both patches (this is from one of my cases) :

Thanks a lot!

F.

Michael@UW May 20, 2020 16:41

Quote:

Originally Posted by Aurelien Thinat (Post 437007)
Hi,

Normally you just have to specify both patches (this is from one of my cases) :

diffusivity inverseDistance (patch1 patch2);
diffusivity inverseDistance 2(patch1 patch2);

Is the number 2 necessary?


All times are GMT -4. The time now is 20:04.