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

motionU file

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 15, 2013, 13:19
Default motionU file
  #1
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Iran - Tehran
Posts: 185
Rep Power: 4
sasanghomi is on a distinguished road
Hi foamers ,

What is motionU file ?? I think it used for cases with dynamic mesh.....
My second question is about componentMixed type that used for the piston in the below motionU file..what is componentMixed type ??what is ref value and value fraction???

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM Extend Project: Open source CFD        |
|  \\    /   O peration     | Version:  1.6-ext                               |
|   \\  /    A nd           | Web:      www.extend-project.de                 |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       tetPointVectorField;
    location    "0";
    object      motionU;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    piston
    {
        type            componentMixed;
        refValue        uniform (0 0 0);
        valueFraction   uniform (0 0 1);
    }
    liner
    {
        type            componentMixed;
        refValue        uniform (0 0 0);
        valueFraction   uniform (1 1 0);
    }
    cylinderHead
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    intakePort
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    presin
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    exhaustPort
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    presout
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    valveCurtainCyl1
    {
        type            componentMixed;
        refValue        uniform (0 0 0);
        valueFraction   uniform (1 1 0);
    }
    valve1
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    valve2
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    valveCurtainPort1
    {
        type            zeroGradient;
    }
    valveDetachCyl1
    {
        type            zeroGradient;
    }
    valveDetachPort1
    {
        type            zeroGradient;
    }
    valveCurtainCyl2
    {
        type            componentMixed;
        refValue        uniform (0 0 0);
        valueFraction   uniform (1 1 0);
    }
    valve3
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    valve4
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    valveCurtainPort2
    {
        type            zeroGradient;
    }
    valveDetachCyl2
    {
        type            zeroGradient;
    }
    valveDetachPort2
    {
        type            zeroGradient;
    }
    defaultFaces
    {
        type            empty;
    }
}


// ************************************************************************* //
Thanks and best regards,
Sasan.
sasanghomi is offline   Reply With Quote

Old   March 21, 2013, 03:30
Default
  #2
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Iran - Tehran
Posts: 185
Rep Power: 4
sasanghomi is on a distinguished road
I appreciate any help.....
sasanghomi is offline   Reply With Quote

Old   March 21, 2013, 03:41
Default
  #3
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,619
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
Hi Sasan,

The motionU file is related to the laplaceFace-/laplaceCellDecomposition methods, which are only available in OF16-ext. In This file you specify the behaviour of/boundary conditions for the mesh motion.

With respect to the component mixed, then the refValue and valueFraction are specific information needed by this boundary condition. I made a quick search in the source code, however, I cannot figure out what it is doing/which class it is derived from.

Good luck,

Niels
ngj is offline   Reply With Quote

Old   March 21, 2013, 05:31
Default
  #4
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Iran - Tehran
Posts: 185
Rep Power: 4
sasanghomi is on a distinguished road
Hi Niels ,
thank you very much.
Sasan.
sasanghomi is offline   Reply With Quote

Old   April 11, 2013, 10:25
Default
  #5
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Iran - Tehran
Posts: 185
Rep Power: 4
sasanghomi is on a distinguished road
Hi Niels ,

Can you explain when I should use componentMixed and in this type which direction should be 1 and which one should be 0 ???(for example uniform (1 1 0) )
Actually the motionU file that I attached above is related a 2D engine simulation and I changed the geometry and I created a 3D engine and I want to know what are the boundary conditions in motionU that I must change them?

Thanks and best regards,
Sasan.
sasanghomi is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
swak4foam newbie29 OpenFOAM Installation 82 July 18, 2015 17:16
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
1.7.x Environment Variables on Linux 10.04 rasma OpenFOAM Installation 9 July 30, 2010 04:43
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 12:46


All times are GMT -4. The time now is 09:53.