平板降膜边界条件设定(interFoam求解器)



  • 0_1512907622643_2.jpg
    fluent中设置是这样的:
    Boundary A, B and C, D
    are set as periodic boundary conditions. Boundary E is set as no slip
    wall. Boundary F is set as opening pressure boundary.
    不知道在OF怎样设置好

    FoamFile
    {
        version     2.0;
        format      ascii;
        class       volScalarField;
        object      p_rgh;
    }
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    
    dimensions      [1 -1 -2 0 0 0 0];
    
    internalField   uniform 100000;
    
    boundaryField
    {
        inlet
        {
            type cyclic;
        }
        gasinlet
        {
            type cyclic;
        }
        outlet1
        {
            type cyclic;
        }
        outlet2
        {
            type cyclic;
        }
        left
        {
           type cyclic;
        }
        right
        {
            type cyclic;
        }
        TWall
        {
           type            fixedFluxPressure;
        }
        
        atmosphere
        {
            type            totalPressure;
            p0              uniform 100000;
            U               U;
            phi             phi;
            rho             rho;
            psi             none;
            gamma           1;
            value           uniform 100000;
        }
    }
    dimensions      [0 1 -1 0 0 0 0];
    
    internalField   uniform (0 0 0);
    
    boundaryField
    {
        inlet
        {
            type cyclic;
        }
        gasinlet
        {
           type cyclic;
        }
       outlet1
        {
           type cyclic;
        }
        outlet2
        {
           type cyclic;
        } 
        left
        {
          type cyclic;
        }
        right
        {
          type cyclic;
        }
        TWall
        {
           type            fixedValue;
           value           uniform (0 0 0);
        }
        
        atmosphere
        {
           type            pressureInletOutletVelocity;
           value           uniform (0 0 0);
        }
    }
    

    体积项用setField,但这样不对,求大神帮忙:big_mouth: