Navigation

    CFD中文网

    CFD中文网

    • Login
    • Search
    • 最新

    如何使用lookup读取Prt

    OpenFOAM
    2
    2
    1597
    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.
    • 中
      中国轰炸机飞机斯曼 last edited by

      例如在RASProperties里定义了:

      kOmegaSSTCoeffs
      {
      Prt 0.9;
      alphaK1 0.85034;
      alphaK2 1;
      alphaOmega1 0.5;
      alphaOmega2 0.85616;
      gamma1 0.5532;
      gamma2 0.4403;
      beta1 0.075;
      beta2 0.0828;
      betaStar 0.09;
      a1 0.31;
      c1 10;
      }
      

      怎么在代码里读取这里Prt?

      C 1 Reply Last reply Reply Quote
      • C
        CFD中文网 @中国轰炸机飞机斯曼 last edited by CFD中文网

        @中国轰炸机飞机斯曼

        Try this:

        scalar xxx=readScalar(RASProperties.kOmegaSSTCoeffs.lookup("Prt"));

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

        1 Reply Last reply Reply Quote
        • First post
          Last post

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