CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Mesh motion (http://www.cfd-online.com/Forums/openfoam/117503-mesh-motion.html)

samiam1000 May 9, 2013 10:23

[SOLVED] Mesh motion
 
Dear All,

I have a channel flow. 3 walls (lateral and top) are fixed wall. On the contrary, I would like to make the bottom face moving, according to a certain law that I decide.
Let's say that my bottom face has 10 cells, I would like to impose a vector with 100 (x 3) coordinates, each showing the displacement of that cell.

Is it possible - in my pointDisplacement file - to have something like:
Code:

/*--------------------------------*- 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      pointVectorField;
    location    "0.01";
    object      pointDisplacement;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 0 0 0 0 0];

internalField  uniform (0 0 0);

boundaryField
{
    stationaryWalls
    {
        type            fixedValue;
        value          uniform (0 0 0);
    }
    movingBlock
    {
        type            pointDisplacement;
        value          {
        (1 0 0)
        (0.4 0 0)
        (0.4 0 0)
        (0.5 0 0)
        (0.5 0 0)
        (0.5 0 0)
        (0.5 0 0)
        (0.4 0 0)
        (0.4 0 0)
        (1 0 0)
                          }
    }
}

Thanks a lot,
Samuele

fredo490 May 10, 2013 04:33

Do you want a dynamic mesh morphing ? I mean, does it has to move according to time or you simply want to move it outside of a solver ?

By the way, your file should be:
Code:

/*--------------------------------*- 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      pointVectorField;
    location    "0.01";
    object      pointDisplacement;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 0 0 0 0 0];

internalField  uniform (0 0 0);

boundaryField
{
    stationaryWalls
    {
        type            fixedValue;
        value          uniform (0 0 0);
    }
    movingWall
    {
        type            fixedValue;
        value          nonuniform List<vector>
10
(
        (1 0 0)
        (0.4 0 0)
        (0.4 0 0)
        (0.5 0 0)
        (0.5 0 0)
        (0.5 0 0)
        (0.5 0 0)
        (0.4 0 0)
        (0.4 0 0)
        (1 0 0)
)
;
    }
}


samiam1000 May 12, 2013 16:22

That's great!
Thank you very much!


All times are GMT -4. The time now is 07:10.