samiam1000 |
May 24, 2012 08:31 |
movingCone case with a rotation instead of a translation
Dear All,
I am facing a movingMesh problem with OpenFOAM.
My case is very similar to the movingCone tutorial, but in my case I have a door which is opening (hence rotating) instead of translating.
I can perfrom a `door translation' using my mesh, but that's not what I need. I guess that the files that I need to modify are the che pointMotionUx and the dynamicMeshDict.
Here are the 2 files:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class pointScalarField;
object pointMotionU;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
wall-part-solid
{
type fixedValue;
value uniform 0;
}
inlet
{
type fixedValue;
value uniform 0;
}
intake
{
type fixedValue;
value uniform 0;
}
room_inlet
{
type fixedValue;
value uniform 0;
}
room_outlet
{
type fixedValue;
value uniform 0;
}
symmetry
{
type symmetryPlane;
}
door
{
type fixedValue;
value uniform 10;
}
}
// ************************************************************************* //
and
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dynamicFvMesh dynamicMotionSolverFvMesh;
motionSolverLibs ( "libfvMotionSolvers.so" );
solver velocityComponentLaplacian x;
diffusivity directional ( 1 200 0 );
// ************************************************************************* //
How should I edit them?
Thanks a lot,
samuele
|