Skip to content
  • 最新
  • 版块
  • 东岳流体
  • 随机看[请狂点我]
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(不使用皮肤)
  • 不使用皮肤
折叠
CFD中文网

CFD中文网

  1. CFD中文网
  2. OpenFOAM
  3. 均一的边界条件如何设置?

均一的边界条件如何设置?

已定时 已固定 已锁定 已移动 OpenFOAM
8 帖子 5 发布者 9.5k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
回复
  • 在新帖中回复
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • 搬 离线
    搬 离线
    搬运工不好当
    写于 最后由 编辑
    #1

    有没有人了解OF中非均一的边界条件如何设置?比如有一个竖直的壁面,壁面低端温度300K, 顶端温度800K, 壁面上温度线性变化,这种边界条件该如何设置呢?

    zhanghanZ 1 条回复 最后回复
  • zhanghanZ 离线
    zhanghanZ 离线
    zhanghan
    在 中回复了 搬运工不好当 最后由 编辑
    #2

    @搬运工不好当
    我想设置通道表面热损失边界条件,和您的线性变化是一样的吗???该怎么设置呢??

    赵 1 条回复 最后回复
  • 赵 离线
    赵 离线
    赵一铭
    在 中回复了 zhanghan 最后由 编辑
    #3

    @zhanghan 在 均一的边界条件如何设置? 中说:

    通道表面热损失边界条件

    这个具体值得是什么边界条件?固定热通量流出?

    zhanghanZ 1 条回复 最后回复
  • zhanghanZ 离线
    zhanghanZ 离线
    zhanghan
    在 中回复了 赵一铭 最后由 编辑
    #4

    @赵一铭
    CFX中是 通道表面热损失单位是W/m2

    赵 1 条回复 最后回复
  • 赵 离线
    赵 离线
    赵一铭
    在 中回复了 zhanghan 最后由 编辑
    #5

    @zhanghan

    可以试试turbulentHeatFlux边界条件:

    Fixed heat boundary condition to specify temperature gradient. Input heat source either specified in terms of an absolute power [W], or as a flux [W/m2].
    
    Example usage:
    
            hotWall
            {
                type            compressible::turbulentHeatFluxTemperature;
                heatSource      flux;        // power [W]; flux [W/m2]
                q               uniform 10;  // heat power or flux
                kappa           fluidThermo; // calculate kappa=alphaEff*thermo.Cp
                Qr              none;        // name of the radiative flux
                value           uniform 300; // initial temperature value
            }
    
    
    zhanghanZ 1 条回复 最后回复
  • zhanghanZ 离线
    zhanghanZ 离线
    zhanghan
    在 中回复了 赵一铭 最后由 编辑
    #6

    @赵一铭
    感谢您,我打算试试!!

    1 条回复 最后回复
  • 程 离线
    程 离线
    程迪
    写于 最后由 编辑
    #7

    @搬运工不好当

    如果是OpenFOAM和OpenFOAM+,用codedFixedValue最方便:

        wall
        {
            type            codedFixedValue;
            value           uniform 300; //default value
            redirectType    linearTBC; //name of new BC type
            code
            #{
            const vectorField& Cf = patch().Cf(); // get face center coordinate;
            //assume the wall is a vertical wall       
            scalar ymax = max(Cf&vector(0,1,0)); // `&` is dot product
            scalar ymin = min(Cf&vector(0,1,0));
            // Info<<"ymax="<<ymax<<",ymin="<<ymin<<nl;
            
            vectorField& vf = *this; // get the boundary field (List of vectors defined at face centers) to fill.
            //temporal coordinate, type: scalar
            scalar t =this->db().time().value(); // get time
            // temporal term
            // scalar tt = 1+0.1*sin(5*t);
            scalar tt = 1.0;
            forAll(Cf,faceI)
            {
            	//spatial coordinates, type: scalar
            	//scalar x = Cf[faceI].x();
            	scalar y = Cf[faceI].y(); 
            	//scalar z = Cf[faceI].z();
            
            	vf[faceI] = ((y-ymin)/(ymax-ymin)*500+300)*tt; 
            }
            #};
            
            //I do not know why I need to add those things
            //codeInclude
            //#{
            //    #include "fvCFD.H"
            //#};
            
            //codeOptions
            //#{
            //    -I$(LIB_SRC)/finiteVolume/lnInclude
            //#};
        }
    
    

    已婚,勿扰。
    本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可。

    A 1 条回复 最后回复
  • A 离线
    A 离线
    anzhenhua
    在 中回复了 程迪 最后由 编辑
    #8

    @程迪 scalar t 没有用到?

    1 条回复 最后回复

  • 登录

  • 登录或注册以进行搜索。
  • 第一个帖子
    最后一个帖子
0
  • 最新
  • 版块
  • 东岳流体
  • 随机看[请狂点我]