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

motionU file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2013, 13:19
Default motionU file
  #1
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Denmark
Posts: 292
Rep Power: 15
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: Denmark
Posts: 292
Rep Power: 15
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: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
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: Denmark
Posts: 292
Rep Power: 15
sasanghomi is on a distinguished road
Hi Niels ,
thank you very much.
Sasan.
sasanghomi is offline   Reply With Quote

Old   April 11, 2013, 11:25
Default
  #5
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Denmark
Posts: 292
Rep Power: 15
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


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
[swak4Foam] difficulties installing swak4foam newbie29 OpenFOAM Community Contributions 120 October 21, 2022 05:01
"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 05:43
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 12:46


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