← Back to team overview

yade-users team mailing list archive

Re: [Question #683336]: Yade-OpenFoam-coupling delete the particles outside the fluid cells

 

Question #683336 on Yade changed:
https://answers.launchpad.net/yade/+question/683336

    Status: Answered => Solved

Anqi H confirmed that the question is solved:
blockMeshDict:

FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

vertices
(
    (-0.002 0.0132 -0.002)
    (0.022 0.0132 -0.002) 
    (0.022 0.0174 -0.002) 
    (-0.002 0.0174 -0.002)
    (-0.002 0.0132 0.022)
    (0.022 0.0132 0.022)
    (0.022 0.0174 0.022)
    (-0.002 0.0174 0.022)
);

blocks
(
    hex (0 1 2 3 4 5 6 7) (12 3 12) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
    top
    {
        type wall;
        faces
        (
            (3 7 6 2)
        );
    }


    bottom
    {
        type wall;
        faces
        (
            (1 5 4 0)
        );
    }


    inlet
    {
        type patch;
        faces
        (
            (0 4 7 3)
        );
    }


    outlet
    {
        type patch;
        faces
        (
            (2  6 5 1)
        );
    }


    front_back
    {
        type empty;
        faces
        (
            (0 3 2 1)
            (4 5 6 7)
        );
    }


);

mergePatchPairs
(
);

0/p
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{

    inlet
    {
        type fixedValue;
        value uniform 64;
    }
    
    outlet
    {
        type fixedValue;
        value uniform 0;
    }

    top
    {
        type zeroGradient;
    }

    bottom
    {
        type zeroGradient;
    }

    front_back
    {
        type empty;
    }

}

fvSolutions
solvers
{
    p
    {
        
        solver          PCG;
        preconditioner    DIC;
        tolerance       1e-06;
        relTol          0;
    }

    pFinal
    {
        $p;
        relTol          0;
    }

    U
    { 
        
        solver          PBiCG;
        preconditioner        DILU;
        tolerance       1e-05;
        relTol          0;
    }
}

PISO
{
    nCorrectors     2;
    nNonOrthogonalCorrectors 0;
    pRefCell        0;
    pRefValue       0;
}

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.