CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Mesh motion

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 9, 2013, 11:23
Default [SOLVED] Mesh motion
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
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

Last edited by samiam1000; May 12, 2013 at 17:23.
samiam1000 is offline   Reply With Quote

Old   May 10, 2013, 05:33
Default
  #2
Senior Member
 
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 17
fredo490 is on a distinguished road
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)
)
;
    }
}
fredo490 is offline   Reply With Quote

Old   May 12, 2013, 17:22
Default
  #3
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
That's great!
Thank you very much!
samiam1000 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
Star CCM Overset Mesh Error (Rotating Turbine) thezack Siemens 7 October 12, 2016 12:14
Mesh motion with Translation & Rotation Doginal CFX 2 January 12, 2014 07:21
3D Hybrid Mesh Errors DarrenC ANSYS Meshing & Geometry 11 August 5, 2013 07:42
Dynamic moving mesh Pei-Ying Hsieh (Hsieh) OpenFOAM Running, Solving & CFD 64 June 7, 2012 11:04


All times are GMT -4. The time now is 23:41.