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

G

Guoguo

@Guoguo
关于
帖子
7
主题
4
群组
0
粉丝
0
关注
0

帖子

最新

  • Openfoam安装报错失败
    G Guoguo

    @李东岳 李老师,您好,在我将./Allwmake -j改为./Allwmake -j8后不再出现这个问题,但是出现了另一个问题

    sed: can't read /home/guo/.bashrc: No such file or directory
    

    使用的安装命令还是您提供的命令,我是需要新建一个.bashrc文件吗?

    命令如下:

    cd $HOME &&
    if [ ! -d "OpenFOAM" ];then mkdir OpenFOAM; fi &&
    sudo apt update &&
    sudo apt-get install -y build-essential flex bison git-core cmake zlib1g-dev libboost-system-dev libboost-thread-dev libopenmpi-dev openmpi-bin gnuplot libreadline-dev libncurses-dev libxt-dev &&
    cd OpenFOAM &&
    git clone https://e.coding.net/dyfluid/OpenFOAM/OpenFOAM-10.git &&
    git clone https://e.coding.net/dyfluid/OpenFOAM/ThirdParty-10.git &&
    source OpenFOAM-10/etc/bashrc &&
    cd OpenFOAM-10 &&
    ./Allwmake -j8 &&
    sed -i '$a source $HOME/OpenFOAM/OpenFOAM-10/etc/bashrc' $HOME/.bashrc
    

  • Openfoam安装报错失败
    G Guoguo

    使用李老师给的安装方法安装openfoam10的时候会出现以下报错:

    g++: fatal error: Killed signal terminated program cc1plus
    compilation terminated.
    make: *** [/home/guo/OpenFOAM/OpenFOAM-10/wmake/rules/General/transform:26: /home/guo/OpenFOAM/OpenFOAM-10/platforms/linux64GccDPInt32Opt/src/finiteVolume/interpolation/surfaceInterpolation/schemes/pointLinear/pointLinear.o] Error 1
    make: *** Waiting for unfinished jobs....
    

    求大神指导是什么原因,使用的是win11系统,ubuntu 22.04.5 LTS,内存16GB,是不是内存太少不够用?


  • 这种三维速度云图是如何后处理得到的?
    G Guoguo

    看论文的时候看到了这种速度云图,有大神知道是如何后处理得到的吗,可以通过tecplot实现吗?
    屏幕截图 2024-04-29 102300.png


  • pimplefoam在瞬态模拟过程中库朗数突然增大然后报错停止
    G Guoguo

    @李东岳 李老师你好,我将时间步长调小后依然会出现库朗数增大的情况,但是我发现每次都在迭代到0.23s左右出现这种情况,这是否与我入口速度的边界条件有关?
    Figure_1.png
    这是我入口速度的波形图


  • pimplefoam在瞬态模拟过程中库朗数突然增大然后报错停止
    G Guoguo

    最近在使用openFOAM对下肢血管进行血流动力学模拟,为了更准确所以在入口处使用了随时间变化的边界条件,但计算一段时间后,库朗数会突然增大,然后程序报错停止,有没有大神可以帮忙看看应该如何修改设置。
    版本:openfoam 10
    求解器:pimpleFoam
    U文件,入口速度方向是z轴的负方向

    boundaryField
    {
        WALL
        {
            type            noSlip;
        }
    
        INLET
        {
            type			uniformFixedValue;
    		uniformValue	
    		{
    			type		tableFile;
    			file		"v.txt";
    		}
    		value			(0 0 -0.032180);
        }
    
        OUTLET1
        {
            type            zeroGradient;   
        }
    
       OUTLET2
        {
            type            zeroGradient;   
        }
    

    controlDict文件

    application     pimpleFoam;
    
    startFrom       startTime;
    
    startTime       0;
    
    stopAt          endTime;
    
    endTime         0.7;
    
    deltaT          1e-5;
    
    writeControl    adjustableRunTime;
    
    writeInterval   0.01;
    
    purgeWrite      0;
    

    fvSolution文件

    solvers
    {
        p
        {
            solver           GAMG;
            tolerance        1e-7;
            relTol           0.1;
    	preconditioner  DIC;
            smoother        symGaussSeidel;
    	nCellsInCoarsestLevel    10;
    	mergeLevels      1;
        }
    
        pFinal
        {
            $p;
            relTol          0.1;
        }
    
        U
        {
            solver          smoothSolver;
            smoother        symGaussSeidel;
            tolerance       1e-05;
            relTol          0.1;
        }
    
        UFinal
        {
            $U;
            relTol          0.1;
        }
    }
    

    fvSchemes文件

    ddtSchemes
    {
        default         Euler;
    }
    
    gradSchemes
    {
        default         Gauss linear;
    }
    
    divSchemes
    {
        default             none;
    
        div(phi,U)          Gauss linearUpwind grad(U);
    
        div((nuEff*dev2(T(grad(U))))) Gauss linear;
    }
    
    laplacianSchemes
    {
        default         Gauss linear corrected;
    }
    
    interpolationSchemes
    {
        default         linear;
    }
    
    snGradSchemes
    {
        default         corrected;
    }
    

  • pimpleFoam报错
    G Guoguo

    @李东岳 李老师你好,我又检查了一下,发现这个应该不是报错的主要原因,完整的报错如下

    Courant Number mean: 46953315.2932 max: 138977110367
    Time = 0.015s
    
    [10] #0  Foam::error::printStack(Foam::Ostream&) at ??:?
    [10] #1  Foam::sigFpe::sigHandler(int) at ??:?
    [10] #2  ? in "/lib/x86_64-linux-gnu/libc.so.6"
    [10] #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 ??:?
    [10] #4  Foam::symGaussSeidelSmoother::smooth(Foam::Field<double>&, Foam::Field<double> const&, unsigned char, int) const at ??:?
    [10] #5  Foam::smoothSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:?
    [10] #6  ? in "/home/g/OpenFOAM/OpenFOAM-10/platforms/linux64GccDPInt32Opt/bin/pimpleFoam"
    [10] #7  ? in "/home/g/OpenFOAM/OpenFOAM-10/platforms/linux64GccDPInt32Opt/bin/pimpleFoam"
    [10] #8  ? in "/home/g/OpenFOAM/OpenFOAM-10/platforms/linux64GccDPInt32Opt/bin/pimpleFoam"
    [10] #9  ? in "/home/g/OpenFOAM/OpenFOAM-10/platforms/linux64GccDPInt32Opt/bin/pimpleFoam"
    [10] #10  ? in "/lib/x86_64-linux-gnu/libc.so.6"
    [10] #11  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
    [10] #12  ? in "/home/g/OpenFOAM/OpenFOAM-10/platforms/linux64GccDPInt32Opt/bin/pimpleFoam"
    [DESKTOP-PM8FS88:01170] *** Process received signal ***
    [DESKTOP-PM8FS88:01170] Signal: Floating point exception (8)
    [DESKTOP-PM8FS88:01170] Signal code:  (-6)
    [DESKTOP-PM8FS88:01170] Failing at address: 0x3e800000492
    [DESKTOP-PM8FS88:01170] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f9e44753520]
    [DESKTOP-PM8FS88:01170] [ 1] /lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x12c)[0x7f9e447a79fc]
    [DESKTOP-PM8FS88:01170] [ 2] /lib/x86_64-linux-gnu/libc.so.6(raise+0x16)[0x7f9e44753476]
    [DESKTOP-PM8FS88:01170] [ 3] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f9e44753520]
    [DESKTOP-PM8FS88:01170] [ 4] /home/g/OpenFOAM/OpenFOAM-10/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam22symGaussSeidelSmoother6smoothERKNS_4wordERNS_5FieldIdEERKNS_9lduMatrixERKS5_RKNS_10FieldFieldIS4_dEERKNS_8UPtrListIKNS_17lduInterfaceFieldEEEhi+0x40c)[0x7f9e4519c36c]
    [DESKTOP-PM8FS88:01170] [ 5] /home/g/OpenFOAM/OpenFOAM-10/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZNK4Foam22symGaussSeidelSmoother6smoothERNS_5FieldIdEERKS2_hi+0x2c)[0x7f9e4519c71c]
    [DESKTOP-PM8FS88:01170] [ 6] /home/g/OpenFOAM/OpenFOAM-10/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZNK4Foam12smoothSolver5solveERNS_5FieldIdEERKS2_h+0x3b9)[0x7f9e45192759]
    [DESKTOP-PM8FS88:01170] [ 7] pimpleFoam(+0x7c88d)[0x55846bbec88d]
    [DESKTOP-PM8FS88:01170] [ 8] pimpleFoam(+0x8a03a)[0x55846bbfa03a]
    [DESKTOP-PM8FS88:01170] [ 9] pimpleFoam(+0x8a305)[0x55846bbfa305]
    [DESKTOP-PM8FS88:01170] [10] pimpleFoam(+0x31f00)[0x55846bba1f00]
    [DESKTOP-PM8FS88:01170] [11] /lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7f9e4473ad90]
    [DESKTOP-PM8FS88:01170] [12] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7f9e4473ae40]
    [DESKTOP-PM8FS88:01170] [13] pimpleFoam(+0x34c85)[0x55846bba4c85]
    [DESKTOP-PM8FS88:01170] *** End of error message ***
    --------------------------------------------------------------------------
    Primary job  terminated normally, but 1 process returned
    a non-zero exit code. Per user-direction, the job has been aborted.
    --------------------------------------------------------------------------
    --------------------------------------------------------------------------
    mpirun noticed that process rank 10 with PID 0 on node DESKTOP-PM8FS88 exited on signal 8 (Floating point exception).
    --------------------------------------------------------------------------
    /*---------------------------------------------------------------------------*\
      =========                 |
      \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
       \\    /   O peration     | Website:  https://openfoam.org
        \\  /    A nd           | Version:  10
         \\/     M anipulation  |
    \*---------------------------------------------------------------------------*/
    Build  : 10-03dd22794e29
    Exec   : reconstructPar
    Date   : Feb 22 2024
    Time   : 20:42:13
    Host   : "DESKTOP-PM8FS88"
    PID    : 1244
    I/O    : uncollated
    Case   : /mnt/e/guo/cfd/openfoam
    nProcs : 1
    sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
    fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
    allowSystemOperations : Allowing user-supplied system call operations
    

    中间好像提到了浮点数的问题,这是由于网格质量的原因导致的报错吗?


  • pimpleFoam报错
    G Guoguo

    在使用pimpleFoam进行瞬态仿真时,运行过程中发生如下报错,求大神解答是什么原因造成

    --> FOAM Warning :
        From function static Foam::instantList Foam::timeSelector::select0(Foam::Time&, const Foam::argList&)
        in file db/Time/timeSelector.C at line 269
        No time specified or available, selecting 'constant'
    
  • 登录

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