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中文网

郑

郑澄远

@郑澄远
关于
帖子
25
主题
15
群组
0
粉丝
0
关注
0

帖子

最新

  • 请问下为什么blockMesh运行paraview打不开
    郑 郑澄远
    --> FOAM FATAL IO ERROR: 
    size 12225 is not equal to the given value of 21
    
    file: /home/zcy/OpenFOAM/anli/pitzDaily/0/U from line 18 to line 12272.
    
        From function Foam::Field<Type>::Field(const Foam::word&, const Foam::dictionary&, Foam::label) [with Type = Foam::Vector<double>; Foam::label = int]
        in file /home/ubuntu/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/Field.C at line 302.
    
    FOAM exiting
    
    Segmentation fault (core dumped)
    

  • 请问下为什么blockMesh运行paraview打不开
    郑 郑澄远
    /*--------------------------------*- C++ -*----------------------------------*\
      =========                 |
      \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
       \\    /   O peration     | Website:  https://openfoam.org
        \\  /    A nd           | Version:  6
         \\/     M anipulation  |
    \*---------------------------------------------------------------------------*/
    FoamFile
    {
        version     2.0;
        format      ascii;
        class       dictionary;
        object      blockMeshDict;
    }
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    
    convertToMeters 0.1;
    
    vertices
    (
        (-6 0 -1)
        (-6 1 -1)
        (0 -1 -1)
        (0 0 -1)
        (0 1 -1)
        (18 -1 -1)
        (18 0 -1)
        (18 1 -1)
    
    
        (-6 0 1)
        (-6 1 1)
        (0 -1 1)
        (0 0 1)
        (0 1 1)
        (18 -1 1)
        (18 0 1)
        (18 1 1)
    );
    
    
    blocks
    (
        hex (0 3 4 1 8 11 12 9)
        (3 1 1)
        simpleGrading (1 1 1)
    
        hex (2 5 6 3 10 13 14 11)
        (9 1 1)
        simpleGrading (1 1 1)
    
        hex (3 6 7 4 11 14 15 12)
        (9 1 1)
        simpleGrading (1 1 1)
    
      
    );
    
    edges
    (
    );
    
    boundary
    (
        inlet
        {
            type patch;
            faces
            (
                (0 1 9 8)
            );
        }
        outlet
        {
            type patch;
            faces
            (
                (5 6 14 13)
                (6 7 15 14)
            );
        }
        upperWall
        {
            type wall;
            faces
            (
                (1 4 12 9)
                (4 7 15 12)
             
            );
        }
        lowerWall
        {
            type wall;
            faces
            (
                (0 3 11 8)
                (3 2 10 11)
                (2 5 13 10)
            );
        }
        frontAndBack
        {
            type empty;
            faces
            (
                (0 3 4 1)
                (2 5 6 3)
                (3 6 7 4)
                (8 11 12 9)
                (10 13 14 11)
                (11 14 15 12)
                
            );
        }
    );
    
    // ************************************************************************* //
    报错
    Created temporary 'pitzDaily.OpenFOAM'
    I/O    : uncollated
    **********************************************************
    ParaView failed to open using available graphics hardware.
    Trying fallback to software rendering using MESA.
    **********************************************************
    I/O    : uncollated
    

  • 请问用户指南的这个图是怎么画出来的
    郑 郑澄远

    @8PRPRS14E3[@G6{(]V7C_M.png
    我只能画成

    替代文字


  • 为什么二维方腔流用pisFoam算出的流线与下方没有涡
    郑 郑澄远

    @东岳 把网格加密后80*80算到time=0.05时就显示

    #3  Foam::GaussSeidelSmoother::smooth(Foam::word const&, Foam::Field<double>&, Foam::lduMatrix const&, Foam::Field<double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, unsigned char, int) at ??:?
    #4  Foam::GaussSeidelSmoother::smooth(Foam::Field<double>&, Foam::Field<double> const&, unsigned char, int) const at ??:?
    #5  Foam::smoothSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:?
    #6  Foam::fvMatrix<double>::solveSegregated(Foam::dictionary const&) at ??:?
    #7  Foam::fvMatrix<double>::solve(Foam::dictionary const&) at ??:?
    #8  Foam::fvMatrix<double>::solve() at ??:?
    #9  Foam::SolverPerformance<double> Foam::solve<double>(Foam::tmp<Foam::fvMatrix<double> > const&) at ??:?
    #10  Foam::RASModels::kEpsilon<Foam::IncompressibleTurbulenceModel<Foam::transportModel> >::correct() at ??:?
    #11  ? at ??:?
    #12  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
    #13  ? at ??:?
    
    浮点数例外 (核心已转储)
    

  • 为什么二维方腔流用pisFoam算出的流线与下方没有涡
    郑 郑澄远

    QQ图片20190314190108.png
    QQ图片20190314190123.png
    该怎么解决呢


  • 请教一个问题,为什么用pisoFoam算的三维方腔流和实验数据不同
    郑 郑澄远

    按照文献中的案例模拟了一个三维方腔流
    我的垂直速度曲线图和水平速度曲线图
    BOT8L352FD5IWM~S5IFVX42.png MS0N{_5W.png
    和实验结果不一样
    QQ图片20190306104704.png
    是什么原因造成的?


  • 请问有谁知道在OpenFOAM三维案列中怎么提取面(z=0)的所有速度的数据
    郑 郑澄远

    我想把数据导出来画速度分量时间平均分布


  • 后台阶二维怎么改成三维的
    郑 郑澄远

    在pimpleFoam中算例的后台阶,请问一下,openfoam案例里面二维后台阶模型改成三维是不是只要把边界条件和blockMeshDict改一下就可以了
    QQ图片20190221091321.png


  • 我openfoam6中的dirToString和wmkdep被误删了,请问这两个该怎么编译
    郑 郑澄远

    @东岳 在编译openfoam6时是输入./Allwmake进行编译,此时终端会输出:

    Allwmake /home/zcy/OpenFOAM/OpenFOAM-6
    gcc -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -O3   -fPIC dirToString.c -o /home/zcy/OpenFOAM/OpenFOAM-6/wmake/platforms/linux64Gcc/dirToString
    flex wmkdep.l; \
    gcc -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -O3   -fPIC lex.yy.c -o /home/zcy/OpenFOAM/OpenFOAM-6/wmake/platforms/linux64Gcc/wmkdep
    lex.yy.c:1264:17: warning: ‘yyunput’ defined but not used [-Wunused-function]
         static void yyunput (int c, char * yy_bp )
                     ^
    lex.yy.c:1307:16: warning: ‘input’ defined but not used [-Wunused-function]
         static int input  (void)
                    ^
    Allwmake: no ThirdParty directory found - skipping
    Allwmake src
    

    这个时候dirToString和wmkdep应该已经编译好了,我想知道能不能在编译而不是复制这两个,给上Allwmake脚本内容

    #!/bin/sh
    cd ${0%/*} || exit 1    # Run from this directory
    
    # Parse arguments for library compilation
    . wmake/scripts/AllwmakeParseArguments
    # Perform various checks
    wmakeCheckPwd "$WM_PROJECT_DIR" || {
        echo "Allwmake error: Current directory is not \$WM_PROJECT_DIR"
        echo "    The environment variables are inconsistent with the installation."
        echo "    Check the OpenFOAM entries in your dot-files and source them."
        exit 1
    }
    
    [ -n "$FOAM_EXT_LIBBIN" ] || {
        echo "Allwmake error: FOAM_EXT_LIBBIN not set"
        echo "    Check the OpenFOAM entries in your dot-files and source them."
        exit 1
    }
    
    # Compile wmake support applications
    (cd wmake/src && make)
    
    # Compile ThirdParty libraries and applications
    if [ -d "$WM_THIRD_PARTY_DIR" ]
    then
        $WM_THIRD_PARTY_DIR/Allwmake
    else
        echo "Allwmake: no ThirdParty directory found - skipping"
    fi
    
    # Compile OpenFOAM libraries and applications
    src/Allwmake $targetType $*
    
    # Compile OpenFOAM libraries and applications
    applications/Allwmake $targetType $*
    

  • 我openfoam6中的dirToString和wmkdep被误删了,请问这两个该怎么编译
    郑 郑澄远

    路径是home/zcy/OpenFOAM/OpenFOAM-6/wmake/platforms/linux64Gcc
    在其他虚拟机中OpenFOAM显示的样子
    5WNI}X}S)IO2GK15WW`LTUB.png


  • 这是什么问题导致的?
    郑 郑澄远

    @星星星星晴 pisoFoam


  • 这是什么问题导致的?
    郑 郑澄远

    @东岳 我做一个简单的渠道流,

    U:
    internalField   uniform (0.0335 0 0);
    
    boundaryField
    {
        IN
       {
            type            fixedValue;
            value           uniform (10 0 0);
        }
    
        OUT
        {
            type            zeroGradient;
        }
    
    
        WALL
        {
            type           noSlip;
        }
    
    
    }
    P:
    dimensions      [0 2 -2 0 0 0 0];
    
    internalField   uniform 0;
    
    boundaryField
    {
        IN
        {
            type            zeroGradient;
        }
    
        OUT
        {
            type            fixedValue;
            value           uniform 0;
        }
    
         WALL
        {
            type            zeroGradient;
        }
    
    }
    

    没有发现错误


  • 这是什么问题导致的?
    郑 郑澄远

    运算时报错,应该怎么修改呢

    --> FOAM FATAL ERROR: 
    Continuity error cannot be removed by adjusting the outflow.
    Please check the velocity boundary conditions and/or run potentialFoam to initialise the outflow.
    Total flux              : 1.19645e-07
    Specified mass inflow   : 0.0032961
    Specified mass outflow  : 0.00261459
    Adjustable mass outflow : 0
    

  • postProcess工具
    郑 郑澄远

    我在controlDict里面出现添加了#includeFunc mag(U)
    用pisoFoam运行后输入postProcess -func "mag(U)",出现

    functionObjects::mag mag(U) cannot find required object U of type volScalarField

    这该怎么解决


  • 请问下三维方腔流可以用icoFoam求解吗
    郑 郑澄远

    @东岳 成功了,谢谢东岳老师了


  • 请问下三维方腔流可以用icoFoam求解吗
    郑 郑澄远

    我将算例cavity网格(20 20 1)变为(20 20 20)的情况icoFoam会算不出来
    以前没有研究过不太清楚

    Time = 0.065
    
    Courant Number mean: 31.0395 max: 154.167
    #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::symGaussSeidelSmoother::smooth(Foam::word const&, Foam::Field<double>&, Foam::lduMatrix const&, Foam::Field<double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, unsigned char, int) at ??:?
    #4  Foam::symGaussSeidelSmoother::smooth(Foam::Field<double>&, Foam::Field<double> const&, unsigned char, int) const at ??:?
    #5  Foam::smoothSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:?
    #6  ? at ??:?
    #7  ? at ??:?
    #8  ? at ??:?
    #9  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
    #10  ? at ??:?
    浮点数例外 (核心已转储)
    

  • Make/linux64GccDPInt32Opt/options:55: *** missing separator。 停止。
    郑 郑澄远

    这是我的options:

    EXE_INC = \
        
        -I$(LIB_SRC)/finiteVolume/lnInclude \
        -I$(LIB_SRC)/meshTools/lnInclude
    
    EXE_LIBS = \
        -L</home/zcy/OpenFOAM/zcy-6/platforms/linux64GccDPInt32Opt/lib> \
        -l<myfiniteVolume> \
        -lmeshTools
    

    我用wmake编译时生成文件Make/linux64GccDPInt32Opt时出现

    Make/linux64GccDPInt32Opt/options:55: *** missing separator。
    

    停止。
    请问我该怎么修改呢


  • 请问一下这种情况该怎么写options
    郑 郑澄远

    我自己编写了一个小型数据库fin,里面有cfdTools finiteVolume fvMesh lnInclude surfaceMesh fields fvMatrices interpolation Make volMesh。其中wmake文件最后一句写成LIB = $(FOAM_USUER_LIBBIN)/libmyfiniteVolume,现在我想把库链接到icoFoam
    中,请问他的options我该怎么修改呢
    icoFoam的options文件
    EXE_INC =
    -I$(LIB_SRC)/finiteVolume/lnInclude
    -I$(LIB_SRC)/meshTools/lnInclude

    EXE_LIBS =
    -lfiniteVolume
    -lmeshTools


  • 编译icoFoam时出现没有发现fvCFD.H
    郑 郑澄远

    @sibo fin文件里面有一个lnInclude文件,不是在finiteVolume中


  • 编译icoFoam时出现没有发现fvCFD.H
    郑 郑澄远
    EXE_INC = \
        -I$/home/zcy/openfoam/fin/lnInclude \
        -I$(LIB_SRC)/meshTools/lnInclude
    EXE_LIBS = \
        -lmyfiniteVolume \
        -lmeshTools
    

    这是我的InInclude

  • 登录

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