Navigation

    CFD中文网

    CFD中文网

    • Login
    • Search
    • 最新

    calculated 边界条件怎么用?有谁知道啊?

    OpenFOAM
    2
    7
    5796
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mark last edited by

      This boundary condition

      1 Reply Last reply Reply Quote
      • C
        CFD中文网 last edited by

        你不需要指定其他信息,这样即可:

        type calculated;
        

        CFD中国标准用户测试帐号
        目前由徐笑笑登录

        1 Reply Last reply Reply Quote
        • M
          mark last edited by

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

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

          internalField uniform 3e+06;

          boundaryField
          {
          INLET
          {
          type calculated;
          }

          WALL
          {
              type            zeroGradient;
          }
          
          OUTLET
          {
              type            calculated;
          }
          

          }

          // ************************************************************************* //

          1 Reply Last reply Reply Quote
          • M
            mark last edited by

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

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

            internalField uniform 3e+06;

            boundaryField
            {
            INLET
            {
            type fixedValue;
            value uniform 10e+06;
            }

            WALL
            {
                type            zeroGradient;
            }
            
            OUTLET
            {
                type            waveTransmissive;
                value           uniform 3e+06;
                field           p;
                gamma           1.17;
                phi             phi;
                rho             rho;
                psi             psi;
                lInf            0.05;
                fieldInf        3e+06;
            }
            

            }

            1 Reply Last reply Reply Quote
            • M
              mark last edited by

              PIMPLE: iteration 1
              #0 Foam::error::printStack(Foam::Ostream&) at ??:?
              #1 Foam::sigFpe::sigHandler(int) at ??:?
              #2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
              #3 Foam::divide(Foam::Field<double>&, double const&, Foam::UList<double> const&) at ??:?
              #4 void Foam::divide<Foam::fvPatchField, Foam::volMesh>(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::dimensioned<double> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:?
              #5 Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::operator/<Foam::fvPatchField, Foam::volMesh>(Foam::dimensioned<double> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:?
              #6 Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::operator/<Foam::fvPatchField, Foam::volMesh>(double const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:?
              #7 Foam::phaseChangeTwoPhaseMixture::vDotAlphal() const at ??:?
              #8 ? at ??:?
              #9 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
              #10 ? at ??:?

              1 Reply Last reply Reply Quote
              • M
                mark last edited by mark

                这样设置好像不行啊@cfd-china

                C 1 Reply Last reply Reply Quote
                • C
                  CFD中文网 @mark last edited by

                  @mark
                  这不是因为边界条件导致的哦。估计是除以0了:sunglasses:

                  CFD中国标准用户测试帐号
                  目前由徐笑笑登录

                  1 Reply Last reply Reply Quote
                  • First post
                    Last post

                  CFD中文网 | 东岳流体 | 京ICP备15017992号-2
                  论坛登录问题反馈可联系 li.dy@dyfluid.com