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

杜

杜浚平

@杜浚平
关于
帖子
17
主题
4
群组
0
粉丝
0
关注
1

帖子

最新

  • 如何修改并编译kOmegaSSTBase?
    杜 杜浚平

    @hyperLDK 您好,我刚刚实现了v2312版本下的编译,参考了这个case

    但目前我的makeTurbmodels.C文件会有一些waring还不知道该怎样修改,不过模型可以使用了

    makeTurbmodels.C文件为:

    /*---------------------------------------------------------------------------*\
      =========                 |
      \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
       \\    /   O peration     |
        \\  /    A nd           | www.openfoam.com
         \\/     M anipulation  |
    -------------------------------------------------------------------------------
        Copyright (C) 2013-2016 OpenFOAM Foundation
        Copyright (C) 2020 OpenCFD Ltd.
    -------------------------------------------------------------------------------
    License
        This file is part of OpenFOAM.
    
        OpenFOAM is free software: you can redistribute it and/or modify it
        under the terms of the GNU General Public License as published by
        the Free Software Foundation, either version 3 of the License, or
        (at your option) any later version.
    
        OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
        ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
        FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
        for more details.
    
        You should have received a copy of the GNU General Public License
        along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
    
    \*---------------------------------------------------------------------------*/
    
    
    #include "IncompressibleTurbulenceModel.H"
    #include "incompressible/transportModel/transportModel.H"
    #include "addToRunTimeSelectionTable.H"
    #include "makeTurbulenceModel.H"
    
    #include "laminarModel.H"
    #include "RASModel.H"
    
    
    //- Define turbulence model typedefs, with EddyDiffusivity
    #define defineTurbulenceModelTypes(                                            \
        Alpha, Rho, baseModel, BaseModel, Transport)                               \
                                                                                   \
        namespace Foam                                                             \
        {                                                                          \
            typedef TurbulenceModel                                                \
            <                                                                      \
                Alpha,                                                             \
                Rho,                                                               \
                baseModel,                                                         \
                Transport                                                          \
            > Transport##baseModel;                                                \
                                                                                   \
            typedef BaseModel<Transport>                                           \
                Transport##BaseModel;                                              \
                                                                                   \
            typedef RASModel<Transport##BaseModel>                                 \
                RAS##Transport##BaseModel;                                         \
        }
    
    // Legacy name
    #define makeTurbulenceModelTypes(a, b, c, d, e) \
        defineTurbulenceModelTypes(a, b, c, d, e)
    
    
    #define makeBaseTurbulenceModel(Alpha, Rho, baseModel, BaseModel, Transport)   \
        /* Turbulence typedefs */                                                  \
        defineTurbulenceModelTypes(Alpha, Rho, baseModel, BaseModel, Transport)    \
                                                                                   \
        namespace Foam                                                             \
        {                                                                          \
            /* Turbulence selection table */                                       \
            defineTemplateRunTimeSelectionTable                                    \
            (                                                                      \
                Transport##baseModel,                                              \
                dictionary                                                         \
            );                                                                     \
                                                                                   \
            /* RAS models */                                                       \
            defineNamedTemplateTypeNameAndDebug(RAS##Transport##BaseModel, 0);     \
                                                                                   \
            defineTemplateRunTimeSelectionTable                                    \
            (RAS##Transport##BaseModel, dictionary);                               \
                                                                                   \
            addToRunTimeSelectionTable                                             \
            (                                                                      \
                Transport##baseModel,                                              \
                RAS##Transport##BaseModel,                                         \
                dictionary                                                         \
            );                                                                     \
        }
    
    
    #define makeTemplatedTurbulenceModel(BaseModel, SType, Type)                   \
        defineNamedTemplateTypeNameAndDebug                                        \
            (Foam::SType##Models::Type<Foam::BaseModel>, 0);                       \
                                                                                   \
        namespace Foam                                                             \
        {                                                                          \
            namespace SType##Models                                                \
            {                                                                      \
                typedef Type<BaseModel> Type##SType##BaseModel;                    \
                                                                                   \
                addToRunTimeSelectionTable                                         \
                (                                                                  \
                    SType##BaseModel,                                              \
                    Type##SType##BaseModel,                                        \
                    dictionary                                                     \
                );                                                                 \
            }                                                                      \
        }
    
    
    #define makeTurbulenceModel(BaseModel, SType, Type)                            \
        namespace Foam                                                             \
        {                                                                          \
            namespace SType##Models                                                \
            {                                                                      \
                defineTypeNameAndDebug(Type, 0);                                   \
                                                                                   \
                addToRunTimeSelectionTable                                         \
                (                                                                  \
                    SType##BaseModel,                                              \
                    Type,                                                          \
                    dictionary                                                     \
                );                                                                 \
            }                                                                      \
        }
        
    makeTurbulenceModelTypes
    (
        geometricOneField,
        geometricOneField,
        incompressibleTurbulenceModel,
        IncompressibleTurbulenceModel,
        transportModel
    );
    
    #define makeRASModel(Type)                                                     \
        makeTemplatedTurbulenceModel                                               \
        (transportModelIncompressibleTurbulenceModel, RAS, Type)
        
    makeBaseTurbulenceModel
    (
        geometricOneField,
        geometricOneField,
        incompressibleTurbulenceModel,
        IncompressibleTurbulenceModel,
        transportModel
    );
        
        
    // -------------------------------------------------------------------------- //
    // RAS models
    // -------------------------------------------------------------------------- //       
    
    #include "kOmegaSSTV.H"
    makeRASModel(kOmegaSSTV);
    
    // **************************************************************************** //
    
    
    // ************************************************************************* //
    
    

    问题如下:

    Making dependencies: makeTurbModel.C
    g++ -std=c++14 -m64 -pthread -DOPENFOAM=2312 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3  -DNoRepository -ftemplate-depth-100  -I/home/ad/OpenFOAM/OpenFOAM-v2312/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-v2312/src/TurbulenceModels/incompressible/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-v2312/src/transportModels -I/home/ad/OpenFOAM/OpenFOAM-v2312/src/fvOptions/Ininclude -I/home/ad/OpenFOAM/OpenFOAM-v2312/src/finiteVolume/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-v2312/src/meshTools/lnInclude  -iquote. -IlnInclude -I/home/ad/OpenFOAM/OpenFOAM-v2312/src/OpenFOAM/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-v2312/src/OSspecific/POSIX/lnInclude   -fPIC -c makeTurbModel.C -o Make/linux64GccDPInt32Opt/makeTurbModel.o
    makeTurbModel.C:40:0: warning: "defineTurbulenceModelTypes" redefined
     #define defineTurbulenceModelTypes(                                            \
     
    In file included from makeTurbModel.C:33:0:
    /home/ad/OpenFOAM/OpenFOAM-v2312/src/TurbulenceModels/turbulenceModels/lnInclude/makeTurbulenceModel.H:30:0: note: this is the location of the previous definition
     #define defineTurbulenceModelTypes(                                            \
     makeTurbModel.C:65:0: warning: "makeBaseTurbulenceModel" redefined
     #define makeBaseTurbulenceModel(Alpha, Rho, baseModel, BaseModel, Transport)   \
     
    In file included from makeTurbModel.C:33:0:
    /home/ad/OpenFOAM/OpenFOAM-v2312/src/TurbulenceModels/turbulenceModels/lnInclude/makeTurbulenceModel.H:61:0: note: this is the location of the previous definition
     #define makeBaseTurbulenceModel(Alpha, Rho, baseModel, BaseModel, Transport)   \
     
    g++ -std=c++14 -m64 -pthread -DOPENFOAM=2312 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3  -DNoRepository -ftemplate-depth-100  -I/home/ad/OpenFOAM/OpenFOAM-v2312/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-v2312/src/TurbulenceModels/incompressible/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-v2312/src/transportModels -I/home/ad/OpenFOAM/OpenFOAM-v2312/src/fvOptions/Ininclude -I/home/ad/OpenFOAM/OpenFOAM-v2312/src/finiteVolume/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-v2312/src/meshTools/lnInclude  -iquote. -IlnInclude -I/home/ad/OpenFOAM/OpenFOAM-v2312/src/OpenFOAM/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-v2312/src/OSspecific/POSIX/lnInclude   -fPIC -shared -Xlinker --add-needed -Xlinker --no-as-needed  Make/linux64GccDPInt32Opt/makeTurbModel.o -L/home/ad/OpenFOAM/OpenFOAM-v2312/platforms/linux64GccDPInt32Opt/lib \
        -lturbulenceModels -lincompressibleTransportModels -lincompressibleTurbulenceModels -lfvOptions -lfiniteVolume -lmeshTools   -o /home/ad/OpenFOAM/ad-v2312/platforms/linux64GccDPInt32Opt/lib/libMyIncompressiblenceModels.so
    

    希望对你有帮助!


  • 如何修改并编译kOmegaSSTBase?
    杜 杜浚平

    @hyperLDK 您好,请问您实现了Base文件的修改了吗,我也遇到了同样的问题


  • foam-extend-4.1安装出错
    杜 杜浚平

    @李东岳 我把ThirdParty里需要的包都手动添加在了

    foam/foam-extend-4.1/ThirdParty/rpmBuild/SOURCES/
    
    ad@ad:~/foam/foam-extend-4.1/ThirdParty/rpmBuild/SOURCES$ ls
    bison-2.7.tar.gz       openmpi-1.4.1.tar.gz  parmetis-4.0.3.tar.gz
    cmake-3.2.2.tar.gz     openmpi-1.4.3.tar.gz  ParMGridGen-1.0.tar.gz
    hwloc-1.10.1.tar.gz    openmpi-1.5.tar.gz    PyFoam-0.6.4.tar.gz
    hwloc-2.0.1.tar.gz     openmpi-1.6.5.tar.gz  PyFoam-0.6.9.tar.gz
    libccmio-2.6.1.tar.gz  openmpi-1.8.4.tar.gz  scotch-6.0.0.tar.gz
    mesquite-2.1.2.tar.gz  openmpi-1.8.8.tar.gz  scotch_6.0.4.tar.gz
    mesquite-2.3.0.tar.gz  openmpi-3.1.1.tar.gz
    metis-5.1.0.tar.gz     openmpi-4.0.0.tar.gz
    
    

    也编译了scotch6.0.4,但还是会出现找不到decompositionMethod.H文件以及twoDPointCorrector.H文件的问题,还多了一个mgridgen.h文件的问题:

    ad@ad:~/foam/foam-extend-4.1$ fe41
    ad@ad:~/foam/foam-extend-4.1$ echo $WM_THIRD_PARTY_USE_SCOTCH_604
    1
    ad@ad:~/foam/foam-extend-4.1$ ./Allwmake
    make: Nothing to be done for 'all'.
    + wmakePrintBuild -check
    no git description found
    + /bin/rm -f foam/Make/linux64GccDPInt32Opt/global.C foam/Make/linux64GccDPInt32Opt/global.o
    + wmakeLnInclude foam
    + wmakeLnInclude meshTools
    + wmakeLnInclude OSspecific/POSIX
    + wmake libo OSspecific/POSIX
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libOSspecific.o' is up to date.
    + set +x
    
    Note: ignore spurious warnings about missing mpicxx.h headers
    + wmake libso foam
    SOURCE=global/global.Cver ; sed -e 's/VERSION_STRING/4.1/' -e 's/BUILD_STRING/4.1/' $SOURCE > Make/linux64GccDPInt32Opt/global.C; g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -DOMPI_SKIP_MPICXX -I/home/ad/foam/foam-extend-4.1/ThirdParty/packages/openmpi-1.8.8/platforms/linux64GccDPInt32Opt/include     -I/home/ad/foam/foam-extend-4.1/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c Make/linux64GccDPInt32Opt/global.C -o Make/linux64GccDPInt32Opt/global.o
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libfoam.so' is up to date.
    + decompositionMethods/AllwmakeLnInclude
    + wmakeLnInclude decomposeReconstruct
    + wmakeLnInclude decompositionMethods
    + wmakeLnInclude metisDecomp
    + wmakeLnInclude parMetisDecomp
    + wmakeLnInclude scotchDecomp
    + decompositionMethods/Allwmake
    + wmakeLnInclude decompositionMethods
    + wmake libso decompositionMethods
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdecompositionMethods.so' is up to date.
    + wmake libso metisDecomp
    SOURCE=metisDecomp.C ;  g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I     -I../decompositionMethods/lnInclude     -I../scotchDecomp/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/metisDecomp.o
    In file included from metisDecomp.C:26:0:
    metisDecomp.H:38:10: fatal error: decompositionMethod.H: No such file or directory
     #include "decompositionMethod.H"
              ^~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make: *** [metisDecomp.dep:342: Make/linux64GccDPInt32Opt/metisDecomp.o] Error 1
    + wmake libso parMetisDecomp
    SOURCE=parMetisDecomp.C ;  g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -DOMPI_SKIP_MPICXX -I/home/ad/foam/foam-extend-4.1/ThirdParty/packages/openmpi-1.8.8/platforms/linux64GccDPInt32Opt/include     -I     -I../decompositionMethods/lnInclude     -I../metisDecomp/lnInclude     -I../scotchDecomp/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/parMetisDecomp.o
    In file included from parMetisDecomp.C:26:0:
    parMetisDecomp.H:37:10: fatal error: decompositionMethod.H: No such file or directory
     #include "decompositionMethod.H"
              ^~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make: *** [parMetisDecomp.dep:362: Make/linux64GccDPInt32Opt/parMetisDecomp.o] Error 1
    + wmake libso scotchDecomp
    SOURCE=scotchDecomp/scotchDecomp.C ;  g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I     -I../decompositionMethods/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/scotchDecomp.o
    SOURCE=engineScotchDecomp/engineScotchDecomp.C ;  g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I     -I../decompositionMethods/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/engineScotchDecomp.o
    In file included from scotchDecomp/scotchDecomp.C:107:0:
    scotchDecomp/scotchDecomp.H:38:10: fatal error: decompositionMethod.H: No such file or directory
     #include "decompositionMethod.H"
              ^~~~~~~~~~~~~~~~~~~~~~~
    In file included from engineScotchDecomp/engineScotchDecomp.H:49:0,
                     from engineScotchDecomp/engineScotchDecomp.C:26:
    lnInclude/scotchDecomp.H:38:10: fatal error: decompositionMethod.H: No such file or directory
     #include "decompositionMethod.H"
              ^~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    compilation terminated.
    make: *** [scotchDecomp/scotchDecomp.dep:342: Make/linux64GccDPInt32Opt/scotchDecomp.o] Error 1
    make: *** Waiting for unfinished jobs....
    make: *** [engineScotchDecomp/engineScotchDecomp.dep:343: Make/linux64GccDPInt32Opt/engineScotchDecomp.o] Error 1
    + wmake libso lagrangian/basic
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/liblagrangian.so' is up to date.
    + wmake libso edgeMesh
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libedgeMesh.so' is up to date.
    + wmake libso surfMesh
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libsurfMesh.so' is up to date.
    + wmake libso meshTools
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libmeshTools.so' is up to date.
    + wmake libso finiteVolume
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libfiniteVolume.so' is up to date.
    + wmake libso finiteArea
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libfiniteArea.so' is up to date.
    + conversion/Allwmake
    + wmake libso
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libconversion.so' is up to date.
    + wmake libso lduSolvers
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/liblduSolvers.so' is up to date.
    + wmake libso tetFiniteElement
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libtetFiniteElement.so' is up to date.
    + wmake libso decompositionMethods/decomposeReconstruct
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdecomposeReconstruct.so' is up to date.
    + dynamicMesh/AllwmakeLnInclude
    + wmakeLnInclude dynamicMesh
    + wmakeLnInclude dynamicFvMesh
    + wmakeLnInclude topoChangerFvMesh
    + meshMotion/AllwmakeLnInclude
    + wmakeLnInclude solidBodyMotion
    + wmakeLnInclude fvMotionSolver
    + wmakeLnInclude RBFMotionSolver
    + wmakeLnInclude mesquiteMotionSolver
    + dynamicMesh/Allwmake
    + wmake libso dynamicMesh
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdynamicMesh.so' is up to date.
    + meshMotion/Allwmake
    + wmake libso solidBodyMotion
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libsolidBodyMotion.so' is up to date.
    + wmake libso fvMotionSolver
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libfvMotionSolver.so' is up to date.
    + wmake libso RBFMotionSolver
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libRBFMotionSolver.so' is up to date.
    + wmake libso mesquiteMotionSolver
    SOURCE=mesquiteMotionSolver.C ;  g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I     -I/home/ad/foam/foam-extend-4.1/src/meshTools/lnInclude     -I/home/ad/foam/foam-extend-4.1/src/dynamicMesh/dynamicMesh/lnInclude  -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/mesquiteMotionSolver.o
    In file included from mesquiteMotionSolver.H:39:0,
                     from mesquiteMotionSolver.C:26:
    /home/ad/foam/foam-extend-4.1/src/dynamicMesh/dynamicMesh/lnInclude/motionSolver.H:42:10: fatal error: twoDPointCorrector.H: No such file or directory
     #include "twoDPointCorrector.H"
              ^~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make: *** [mesquiteMotionSolver.dep:408: Make/linux64GccDPInt32Opt/mesquiteMotionSolver.o] Error 1
    + wmake libso tetMotionSolver
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libtetMotionSolver.so' is up to date.
    + wmake libso dynamicFvMesh
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdynamicFvMesh.so' is up to date.
    + wmake libso dynamicTopoFvMesh
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdynamicTopoFvMesh.so' is up to date.
    + wmake libso topoChangerFvMesh
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libtopoChangerFvMesh.so' is up to date.
    + wmake libso loadBalanceFvMesh
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libloadBalanceFvMesh.so' is up to date.
    + wmake libso coupledMatrix
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libcoupledLduMatrix.so' is up to date.
    + wmake libso sampling
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libsampling.so' is up to date.
    + wmake libso ODE
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libODE.so' is up to date.
    + wmake libso POD
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libPOD.so' is up to date.
    + wmake libso randomProcesses
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/librandomProcesses.so' is up to date.
    + mesh/Allwmake
    + wmake libso autoMesh
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libautoMesh.so' is up to date.
    + wmake libso blockMesh
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libblockMesh.so' is up to date.
    + wmake libso extrudeModel
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libextrudeModel.so' is up to date.
    + wmake libso cfMesh
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libcfMesh.so' is up to date.
    + thermophysicalModels/Allwmake
    + wmake libso specie
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libspecie.so' is up to date.
    + wmake libso thermophysicalFunctions
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libthermophysicalFunctions.so' is up to date.
    + wmake libso liquids
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libliquids.so' is up to date.
    + wmake libso liquidMixture
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libliquidMixture.so' is up to date.
    + wmake libso solids
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libsolids.so' is up to date.
    + wmake libso solidMixture
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libsolidMixture.so' is up to date.
    + wmake libso basic
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libbasicThermophysicalModels.so' is up to date.
    + wmake libso reactionThermo
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libreactionThermophysicalModels.so' is up to date.
    + wmake libso laminarFlameSpeed
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/liblaminarFlameSpeedModels.so' is up to date.
    + wmake libso chemistryModel
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libchemistryModel.so' is up to date.
    + wmake libso pdfs
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libpdf.so' is up to date.
    + wmake libso radiation
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libradiation.so' is up to date.
    + wmake libso barotropicCompressibilityModel
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libbarotropicCompressibilityModel.so' is up to date.
    + transportModels/Allwmake
    + wmake libso incompressible
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libincompressibleTransportModels.so' is up to date.
    + wmake libso interfaceProperties
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libinterfaceProperties.so' is up to date.
    + wmake libso viscoelastic
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libviscoelasticTransportModels.so' is up to date.
    + turbulenceModels/Allwmake
    + LES/Allwmake
    + wmakeLnInclude ../incompressible/LES
    + wmake libso LESfilters
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libLESfilters.so' is up to date.
    + wmake libso LESdeltas
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libLESdeltas.so' is up to date.
    + incompressible/Allwmake
    + wmake libso turbulenceModel
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libincompressibleTurbulenceModel.so' is up to date.
    + wmake libso RAS
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libincompressibleRASModels.so' is up to date.
    + wmake libso LES
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libincompressibleLESModels.so' is up to date.
    + compressible/Allwmake
    + wmake libso turbulenceModel
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libcompressibleTurbulenceModel.so' is up to date.
    + wmake libso RAS
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libcompressibleRASModels.so' is up to date.
    + wmake libso LES
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libcompressibleLESModels.so' is up to date.
    + lagrangian/Allwmake
    + wmake libso basic
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/liblagrangian.so' is up to date.
    + wmake libso solidParticle
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libsolidParticle.so' is up to date.
    + wmake libso intermediate
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/liblagrangianIntermediate.so' is up to date.
    + wmake libso dieselSpray
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdieselSpray.so' is up to date.
    + wmake libso dsmc
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdsmc.so' is up to date.
    + wmake libso coalCombustion
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libcoalCombustion.so' is up to date.
    + molecularDynamics/Allwmake
    + wmake libso potential
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libpotential.so' is up to date.
    + wmake libso molecularMeasurements
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libmolecularMeasurements.so' is up to date.
    + wmake libso molecule
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libmolecule.so' is up to date.
    + wmake libso conjugateHeatTransfer
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libconjugateHeatTransfer.so' is up to date.
    + postProcessing/Allwmake
    + wmake libo postCalc
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/postCalc.o' is up to date.
    + wmake libso foamCalcFunctions
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libfoamCalcFunctions.so' is up to date.
    + functionObjects/Allwmake
    + wmake libso check
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libcheckFunctionObjects.so' is up to date.
    + wmake libso field
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libfieldFunctionObjects.so' is up to date.
    + wmake libso forces
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libforces.so' is up to date.
    + wmake libso fvTools
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libFVFunctionObjects.so' is up to date.
    + wmake libso IO
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libIOFunctionObjects.so' is up to date.
    + wmake libso jobControl
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libjobControl.so' is up to date.
    + wmake libso systemCall
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libsystemCall.so' is up to date.
    + wmake libso utilities
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libutilityFunctionObjects.so' is up to date.
    + wmake libso errorEstimation
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/liberrorEstimation.so' is up to date.
    + fvAgglomerationMethods/Allwmake
    + wmake libso MGridGenGamgAgglomeration
    SOURCE=MGridGenGAMGAgglomerate.C ;  g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/ad/foam/foam-extend-4.1/src/finiteVolume/lnInclude     -I/Lib        -I/IMlib       -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/MGridGenGAMGAgglomerate.o
    MGridGenGAMGAgglomerate.C:35:13: fatal error: mgridgen.h: No such file or directory
     #   include "mgridgen.h"
                 ^~~~~~~~~~~~
    compilation terminated.
    make: *** [MGridGenGAMGAgglomerate.dep:447: Make/linux64GccDPInt32Opt/MGridGenGAMGAgglomerate.o] Error 1
    + wmake libso pairPatchAgglomeration
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libpairPatchAgglomeration.so' is up to date.
    + wmake libso engine
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libengine.so' is up to date.
    + wmake libso equationReader
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libequationReader.so' is up to date.
    + wmake libso multiSolver
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libmultiSolver.so' is up to date.
    + wmake libso solidModels
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libsolidModels.so' is up to date.
    + wmake libso dbns
    SOURCE=multigrid/mgMeshLevel/mgMeshLevel.C ;  g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/ad/foam/foam-extend-4.1/src/finiteVolume/lnInclude     -I/home/ad/foam/foam-extend-4.1/src/meshTools/lnInclude     -I/home/ad/foam/foam-extend-4.1/src/thermophysicalModels/basic/lnInclude     -I/home/ad/foam/foam-extend-4.1/src/turbulenceModels/compressible/turbulenceModel     -I/IMlib     -I/Lib -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/mgMeshLevel.o
    multigrid/mgMeshLevel/mgMeshLevel.C:31:13: fatal error: mgridgen.h: No such file or directory
     #   include "mgridgen.h"
                 ^~~~~~~~~~~~
    compilation terminated.
    make: *** [multigrid/mgMeshLevel/mgMeshLevel.dep:428: Make/linux64GccDPInt32Opt/mgMeshLevel.o] Error 1
    

    :135:


  • foam-extend-4.1安装出错
    杜 杜浚平

    @李东岳 这里scotchDecomp的编译也会出问题,导致并行运算没法使用scotch,在分块的时候会出现以下问题:

    ad@ad:~/foam/ad-4.1/run/damBreak$ decomposePar 
    /*---------------------------------------------------------------------------*\
    | =========                 |                                                 |
    | \\      /  F ield         | foam-extend: Open Source CFD                    |
    |  \\    /   O peration     | Version:     4.1                                |
    |   \\  /    A nd           | Web:         http://www.foam-extend.org         |
    |    \\/     M anipulation  | For copyright notice see file Copyright         |
    \*---------------------------------------------------------------------------*/
    Build  : 4.1-0de8e022a122
    Exec   : decomposePar
    Date   : Dec 30 2024
    Time   : 13:10:13
    Host   : "ad"
    PID    : 19289
    CtrlDict : "/home/ad/foam/ad-4.1/run/damBreak/system/controlDict"
    Case   : /home/ad/foam/ad-4.1/run/damBreak
    nProcs : 1
    sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
    allowSystemOperations : Disallowing user-supplied system call operations
    
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    Create time
    
    Time = 0
    Create mesh for region region0
    
    Calculating distribution of cells
    --> FOAM Warning : 
        From function void* Foam::dlOpen(const Foam::fileName&, bool)
        in file POSIX.C at line 1204
        dlopen error : libscotchDecomp.so: cannot open shared object file: No such file or directory
    --> FOAM Warning : 
        From function bool Foam::dlLibraryTable::open(const Foam::fileName&, bool)
        in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 97
        could not load "libscotchDecomp.so"
    --> FOAM Warning : 
        From function decompositionMethod::loadExternalLibraries()
        in file decompositionMethod/decompositionMethod.C at line 520
        Loading of decomposition library libscotchDecomp.so unsuccesful. Some decomposition methods may not be  available
    --> FOAM Warning : 
        From function void* Foam::dlOpen(const Foam::fileName&, bool)
        in file POSIX.C at line 1204
        dlopen error : libmetisDecomp.so: cannot open shared object file: No such file or directory
    --> FOAM Warning : 
        From function bool Foam::dlLibraryTable::open(const Foam::fileName&, bool)
        in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 97
        could not load "libmetisDecomp.so"
    --> FOAM Warning : 
        From function decompositionMethod::loadExternalLibraries()
        in file decompositionMethod/decompositionMethod.C at line 520
        Loading of decomposition library libmetisDecomp.so unsuccesful. Some decomposition methods may not be  available
    --> FOAM Warning : 
        From function void* Foam::dlOpen(const Foam::fileName&, bool)
        in file POSIX.C at line 1204
        dlopen error : libparMetisDecomp.so: cannot open shared object file: No such file or directory
    --> FOAM Warning : 
        From function bool Foam::dlLibraryTable::open(const Foam::fileName&, bool)
        in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 97
        could not load "libparMetisDecomp.so"
    --> FOAM Warning : 
        From function decompositionMethod::loadExternalLibraries()
        in file decompositionMethod/decompositionMethod.C at line 520
        Loading of decomposition library libparMetisDecomp.so unsuccesful. Some decomposition methods may not be  available
    Selecting decompositionMethod scotch
    
    
    --> FOAM FATAL ERROR: 
    Unknown decompositionMethod scotch
    
    Valid decompositionMethods are : 
    
    4
    (
    hierarchical
    manual
    patchConstrained
    simple
    )
    
    
        From function decompositionMethod::New(const dictionary& decompositionDict, const polyMesh& mesh)
        in file decompositionMethod/decompositionMethod.C at line 496.
    
    FOAM exiting
    

  • foam-extend-4.1安装出错
    杜 杜浚平

    仅编译src/decompositionMethods文件夹:

    ad@ad:~/foam/foam-extend-4.1/src/decompositionMethods$ ./Allwmake
    + wmakeLnInclude decompositionMethods
    + wmake libso decompositionMethods
    Making dependency list for source file decompositionMethod/decompositionMethod.C
    Making dependency list for source file manualDecomp/manualDecomp.C
    Making dependency list for source file geomDecomp/geomDecomp.C
    Making dependency list for source file patchConstrainedDecomp/patchConstrainedDecomp.C
    Making dependency list for source file hierarchGeomDecomp/hierarchGeomDecomp.C
    Making dependency list for source file simpleGeomDecomp/simpleGeomDecomp.C
    SOURCE=decompositionMethod/decompositionMethod.C ;  g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200  -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/decompositionMethod.o
    SOURCE=manualDecomp/manualDecomp.C ;  g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200  -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/manualDecomp.o
    SOURCE=geomDecomp/geomDecomp.C ;  g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200  -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/geomDecomp.o
    SOURCE=simpleGeomDecomp/simpleGeomDecomp.C ;  g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200  -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/simpleGeomDecomp.o
    SOURCE=hierarchGeomDecomp/hierarchGeomDecomp.C ;  g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200  -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/hierarchGeomDecomp.o
    SOURCE=patchConstrainedDecomp/patchConstrainedDecomp.C ;  g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200  -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/patchConstrainedDecomp.o
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdecompositionMethods.so' is up to date.
    + wmake libso metisDecomp
    Making dependency list for source file metisDecomp.C
    could not open file metis.h for source file metisDecomp.C
    SOURCE=metisDecomp.C ;  g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I     -I../decompositionMethods/lnInclude     -I../scotchDecomp/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/metisDecomp.o
    In file included from metisDecomp.C:26:0:
    metisDecomp.H:38:10: fatal error: decompositionMethod.H: No such file or directory
     #include "decompositionMethod.H"
              ^~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make: *** [metisDecomp.dep:342: Make/linux64GccDPInt32Opt/metisDecomp.o] Error 1
    + wmake libso parMetisDecomp
    Making dependency list for source file parMetisDecomp.C
    could not open file parmetis.h for source file parMetisDecomp.C
    SOURCE=parMetisDecomp.C ;  g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -DOMPI_SKIP_MPICXX -I/usr/lib/x86_64-linux-gnu/openmpi/include -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi     -I     -I../decompositionMethods/lnInclude     -I../metisDecomp/lnInclude     -I../scotchDecomp/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/parMetisDecomp.o
    In file included from parMetisDecomp.C:26:0:
    parMetisDecomp.H:37:10: fatal error: decompositionMethod.H: No such file or directory
     #include "decompositionMethod.H"
              ^~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make: *** [parMetisDecomp.dep:362: Make/linux64GccDPInt32Opt/parMetisDecomp.o] Error 1
    + wmake libso scotchDecomp
    Making dependency list for source file scotchDecomp/scotchDecomp.C
    Making dependency list for source file engineScotchDecomp/engineScotchDecomp.C
    could not open file scotch.h for source file scotchDecomp/scotchDecomp.C
    SOURCE=scotchDecomp/scotchDecomp.C ;  g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I     -I../decompositionMethods/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/scotchDecomp.o
    SOURCE=engineScotchDecomp/engineScotchDecomp.C ;  g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I     -I../decompositionMethods/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/engineScotchDecomp.o
    In file included from scotchDecomp/scotchDecomp.C:107:0:
    scotchDecomp/scotchDecomp.H:38:10: fatal error: decompositionMethod.H: No such file or directory
     #include "decompositionMethod.H"
              ^~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    In file included from engineScotchDecomp/engineScotchDecomp.H:49:0,
                     from engineScotchDecomp/engineScotchDecomp.C:26:
    lnInclude/scotchDecomp.H:38:10: fatal error: decompositionMethod.H: No such file or directory
     #include "decompositionMethod.H"
              ^~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make: *** [scotchDecomp/scotchDecomp.dep:342: Make/linux64GccDPInt32Opt/scotchDecomp.o] Error 1
    make: *** Waiting for unfinished jobs....
    make: *** [engineScotchDecomp/engineScotchDecomp.dep:343: Make/linux64GccDPInt32Opt/engineScotchDecomp.o] Error 1
    

  • foam-extend-4.1安装出错
    杜 杜浚平

    在文件中存在decompositionMethod.H文件以及twoDPointCorrector.H文件,
    decompositionMethod.H位置为src/decompositionMethods/decompositionMethod/decompositionMethod.H;
    twoDPointCorrector.H位置为src/meshTools/twoDPointCorrector/twoDPointCorrector.H,
    编译还是显示无法找到


  • foam-extend-4.1安装出错
    杜 杜浚平

    针对mpi.h文件,参考了这个帖子,再开始编译前输入了以下代码:

    echo "export WM_THIRD_PARTY_USE_BISON_27=1" > etc/prefs.sh 
    echo "export WM_MPLIB=SYSTEMOPENMPI" >> etc/prefs.sh 
    echo "export OPENMPI_DIR=/usr" >> etc/prefs.sh 
    echo "export OPENMPI_BIN_DIR=\$OPENMPI_DIR/bin" >> etc/prefs.sh 
    

    在之后的编译中mpi.h文件的问题不在出现,但decompositionMethod.H文件以及twoDPointCorrector.H文件的问题依然存在


  • foam-extend-4.1安装出错
    杜 杜浚平

    @李东岳 东岳老师,输入后显示这个

    ad@ad:~$ which mpirun
    /usr/bin/mpirun
    
    

  • foam-extend-4.1安装出错
    杜 杜浚平

    在ubuntu20.04中按照教程安装时出现以下问题:

    SOURCE=db/dictionary/dictionaryEntry/dictionaryEntry.C ;  g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -DOMPI_SKIP_MPICXX -I/include     -I/home/ad/foam/foam-extend-4.1/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/dictionaryEntry.o
    db/IOstreams/Pstreams/IPread.C:29:10: fatal error: mpi.h: No such file or directory
     #include "mpi.h"
              ^~~~~~~
    db/IOstreams/Pstreams/OPwrite.C:29:10: fatal error: mpi.h: No such file or directory
     #include "mpi.h"
              ^~~~~~~
    db/IOstreams/Pstreams/PstreamReduceOps.C:26:10: fatal error: mpi.h: No such file or directory
     #include "mpi.h"
              ^~~~~~~
    db/IOstreams/Pstreams/Pstream.C:26:10: fatal error: mpi.h: No such file or directory
     #include "mpi.h"
              ^~~~~~~
    compilation terminated.
    compilation terminated.
    compilation terminated.
    compilation terminated.
    In file included from db/IOstreams/Pstreams/PstreamGlobals.C:26:0:
    db/IOstreams/Pstreams/PstreamGlobals.H:39:10: fatal error: mpi.h: No such file or directory
     #include "mpi.h"
              ^~~~~~~
    compilation terminated.
    make: *** [db/IOstreams/Pstreams/Pstream.dep:170: Make/linux64GccDPInt32Opt/Pstream.o] Error 1
    make: *** Waiting for unfinished jobs....
    make: *** [db/IOstreams/Pstreams/PstreamReduceOps.dep:148: Make/linux64GccDPInt32Opt/PstreamReduceOps.o] Error 1
    make: *** [db/IOstreams/Pstreams/PstreamGlobals.dep:114: Make/linux64GccDPInt32Opt/PstreamGlobals.o] Error 1
    make: *** [db/IOstreams/Pstreams/IPread.dep:136: Make/linux64GccDPInt32Opt/IPread.o] Error 1
    make: *** [db/IOstreams/Pstreams/OPwrite.dep:136: Make/linux64GccDPInt32Opt/OPwrite.o] Error 1
    + decompositionMethods/AllwmakeLnInclude
    + wmakeLnInclude decomposeReconstruct
    + wmakeLnInclude decompositionMethods
    + wmakeLnInclude metisDecomp
    + wmakeLnInclude parMetisDecomp
    + wmakeLnInclude scotchDecomp
    + decompositionMethods/Allwmake
    + wmakeLnInclude decompositionMethods
    + wmake libso decompositionMethods
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdecompositionMethods.so' is up to date.
    + wmake libso metisDecomp
    SOURCE=metisDecomp.C ;  g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I     -I../decompositionMethods/lnInclude     -I../scotchDecomp/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/metisDecomp.o
    In file included from metisDecomp.C:26:0:
    metisDecomp.H:38:10: fatal error: decompositionMethod.H: No such file or directory
     #include "decompositionMethod.H"
              ^~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make: *** [metisDecomp.dep:342: Make/linux64GccDPInt32Opt/metisDecomp.o] Error 1
    + wmake libso parMetisDecomp
    SOURCE=parMetisDecomp.C ;  g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -DOMPI_SKIP_MPICXX -I/include     -I     -I../decompositionMethods/lnInclude     -I../metisDecomp/lnInclude     -I../scotchDecomp/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/parMetisDecomp.o
    In file included from parMetisDecomp.C:26:0:
    parMetisDecomp.H:37:10: fatal error: decompositionMethod.H: No such file or directory
     #include "decompositionMethod.H"
              ^~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make: *** [parMetisDecomp.dep:362: Make/linux64GccDPInt32Opt/parMetisDecomp.o] Error 1
    + wmake libso scotchDecomp
    SOURCE=scotchDecomp/scotchDecomp.C ;  g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I     -I../decompositionMethods/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/scotchDecomp.o
    SOURCE=engineScotchDecomp/engineScotchDecomp.C ;  g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I     -I../decompositionMethods/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/engineScotchDecomp.o
    In file included from scotchDecomp/scotchDecomp.C:107:0:
    scotchDecomp/scotchDecomp.H:38:10: fatal error: decompositionMethod.H: No such file or directory
     #include "decompositionMethod.H"
              ^~~~~~~~~~~~~~~~~~~~~~~
    In file included from engineScotchDecomp/engineScotchDecomp.H:49:0,
                     from engineScotchDecomp/engineScotchDecomp.C:26:
    lnInclude/scotchDecomp.H:38:10: fatal error: decompositionMethod.H: No such file or directory
     #include "decompositionMethod.H"
              ^~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    compilation terminated.
    make: *** [engineScotchDecomp/engineScotchDecomp.dep:343: Make/linux64GccDPInt32Opt/engineScotchDecomp.o] Error 1
    make: *** Waiting for unfinished jobs....
    make: *** [scotchDecomp/scotchDecomp.dep:342: Make/linux64GccDPInt32Opt/scotchDecomp.o] Error 1
    + wmake libso lagrangian/basic
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/liblagrangian.so' is up to date.
    + wmake libso edgeMesh
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libedgeMesh.so' is up to date.
    + wmake libso surfMesh
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libsurfMesh.so' is up to date.
    + wmake libso meshTools
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libmeshTools.so' is up to date.
    + wmake libso finiteVolume
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libfiniteVolume.so' is up to date.
    + wmake libso finiteArea
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libfiniteArea.so' is up to date.
    + conversion/Allwmake
    + wmake libso
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libconversion.so' is up to date.
    + wmake libso lduSolvers
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/liblduSolvers.so' is up to date.
    + wmake libso tetFiniteElement
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libtetFiniteElement.so' is up to date.
    + wmake libso decompositionMethods/decomposeReconstruct
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdecomposeReconstruct.so' is up to date.
    + dynamicMesh/AllwmakeLnInclude
    + wmakeLnInclude dynamicMesh
    + wmakeLnInclude dynamicFvMesh
    + wmakeLnInclude topoChangerFvMesh
    + meshMotion/AllwmakeLnInclude
    + wmakeLnInclude solidBodyMotion
    + wmakeLnInclude fvMotionSolver
    + wmakeLnInclude RBFMotionSolver
    + wmakeLnInclude mesquiteMotionSolver
    + dynamicMesh/Allwmake
    + wmake libso dynamicMesh
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdynamicMesh.so' is up to date.
    + meshMotion/Allwmake
    + wmake libso solidBodyMotion
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libsolidBodyMotion.so' is up to date.
    + wmake libso fvMotionSolver
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libfvMotionSolver.so' is up to date.
    + wmake libso RBFMotionSolver
    '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libRBFMotionSolver.so' is up to date.
    + wmake libso mesquiteMotionSolver
    SOURCE=mesquiteMotionSolver.C ;  g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I     -I/home/ad/foam/foam-extend-4.1/src/meshTools/lnInclude     -I/home/ad/foam/foam-extend-4.1/src/dynamicMesh/dynamicMesh/lnInclude  -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/mesquiteMotionSolver.o
    In file included from mesquiteMotionSolver.H:39:0,
                     from mesquiteMotionSolver.C:26:
    /home/ad/foam/foam-extend-4.1/src/dynamicMesh/dynamicMesh/lnInclude/motionSolver.H:42:10: fatal error: twoDPointCorrector.H: No such file or directory
     #include "twoDPointCorrector.H"
              ^~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    
    

    貌似是无法找到mpi.h文件、decompositionMethod.H文件以及twoDPointCorrector.H文件,我是应该自己添加这些文件然后重新编译吗?


  • foam-extend4.1并行分块无法使用scotch
    杜 杜浚平

    对fe41自身算力damBreak使用simple进行分块,也会出现同样的warning:

    /*---------------------------------------------------------------------------*\
    | =========                 |                                                 |
    | \\      /  F ield         | foam-extend: Open Source CFD                    |
    |  \\    /   O peration     | Version:     4.1                                |
    |   \\  /    A nd           | Web:         http://www.foam-extend.org         |
    |    \\/     M anipulation  | For copyright notice see file Copyright         |
    \*---------------------------------------------------------------------------*/
    Build  : 4.1-70b064d0f326
    Exec   : decomposePar
    Date   : Dec 14 2024
    Time   : 20:51:03
    Host   : "ad"
    PID    : 222209
    CtrlDict : "/home/ad/foam/ad-4.1/run/damBreak/system/controlDict"
    Case   : /home/ad/foam/ad-4.1/run/damBreak
    nProcs : 1
    sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
    allowSystemOperations : Disallowing user-supplied system call operations
    
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    Create time
    
    Time = 0
    Create mesh for region region0
    
    Calculating distribution of cells
    --> FOAM Warning :
        From function void* Foam::dlOpen(const Foam::fileName&, bool)
        in file POSIX.C at line 1204
        dlopen error : libscotchDecomp.so: cannot open shared object file: No such file or directory
    --> FOAM Warning :
        From function bool Foam::dlLibraryTable::open(const Foam::fileName&, bool)
        in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 97
        could not load "libscotchDecomp.so"
    --> FOAM Warning :
        From function decompositionMethod::loadExternalLibraries()
        in file decompositionMethod/decompositionMethod.C at line 520
        Loading of decomposition library libscotchDecomp.so unsuccesful. Some decomposition methods may not be  available
    --> FOAM Warning :
        From function void* Foam::dlOpen(const Foam::fileName&, bool)
        in file POSIX.C at line 1204
        dlopen error : libmetisDecomp.so: cannot open shared object file: No such file or directory
    --> FOAM Warning :
        From function bool Foam::dlLibraryTable::open(const Foam::fileName&, bool)
        in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 97
        could not load "libmetisDecomp.so"
    --> FOAM Warning :
        From function decompositionMethod::loadExternalLibraries()
        in file decompositionMethod/decompositionMethod.C at line 520
        Loading of decomposition library libmetisDecomp.so unsuccesful. Some decomposition methods may not be  available
    --> FOAM Warning :
        From function void* Foam::dlOpen(const Foam::fileName&, bool)
        in file POSIX.C at line 1204
        dlopen error : libparMetisDecomp.so: cannot open shared object file: No such file or directory
    --> FOAM Warning :
        From function bool Foam::dlLibraryTable::open(const Foam::fileName&, bool)
        in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 97
        could not load "libparMetisDecomp.so"
    --> FOAM Warning :
        From function decompositionMethod::loadExternalLibraries()
        in file decompositionMethod/decompositionMethod.C at line 520
        Loading of decomposition library libparMetisDecomp.so unsuccesful. Some decomposition methods may not be  available
    Selecting decompositionMethod simple
    
    Finished decomposition in 0 s
    
    Constructing processor meshes
    
    Processor 0
        Number of cells = 575
        Number of faces shared with processor 1 = 26
        Number of faces shared with processor 2 = 24
        Number of processor patches = 2
        Number of processor faces = 50
        Number of boundary faces = 1198
    
    Processor 1
        Number of cells = 559
        Number of faces shared with processor 0 = 26
        Number of faces shared with processor 3 = 23
        Number of processor patches = 2
        Number of processor faces = 49
        Number of boundary faces = 1183
    
    Processor 2
        Number of cells = 559
        Number of faces shared with processor 0 = 24
        Number of faces shared with processor 3 = 25
        Number of processor patches = 2
        Number of processor faces = 49
        Number of boundary faces = 1165
    
    Processor 3
        Number of cells = 575
        Number of faces shared with processor 2 = 25
        Number of faces shared with processor 1 = 23
        Number of processor patches = 2
        Number of processor faces = 48
        Number of boundary faces = 1198
    
    Number of processor faces = 98
    Max number of processor patches = 2
    Max number of faces between processors = 50
    
    Processor 0: field transfer
    Processor 1: field transfer
    Processor 2: field transfer
    Processor 3: field transfer
    
    End.
    
    

    :135:


  • foam-extend4.1并行分块无法使用scotch
    杜 杜浚平

    貌似是因为自定义了湍流模型后,挂库出现了问题?


  • foam-extend4.1并行分块无法使用scotch
    杜 杜浚平

    在Ubuntu20.04按照教程安装完foam-extend-4.1后尝试并行计算时出现问题:

    /*---------------------------------------------------------------------------*\
    | =========                 |                                                 |
    | \\      /  F ield         | foam-extend: Open Source CFD                    |
    |  \\    /   O peration     | Version:     4.1                                |
    |   \\  /    A nd           | Web:         http://www.foam-extend.org         |
    |    \\/     M anipulation  | For copyright notice see file Copyright         |
    \*---------------------------------------------------------------------------*/
    Build  : 4.1-70b064d0f326
    Exec   : decomposePar
    Date   : Dec 14 2024
    Time   : 16:52:09
    Host   : "ad"
    PID    : 216409
    CtrlDict : "/home/ad/foam/ad-4.1/run/qianyuan/case1/line2/20241209/try/21.6/system/controlDict"
    Case   : /home/ad/foam/ad-4.1/run/qianyuan/case1/line2/20241209/try/21.6
    nProcs : 1
    sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
    allowSystemOperations : Disallowing user-supplied system call operations
    
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    Create time
    
    --> FOAM Warning :
        From function void* Foam::dlOpen(const Foam::fileName&, bool)
        in file POSIX.C at line 1204
        dlopen error : /home/ad/foam/ad-4.1/lib/linux64GccDPInt32Opt/libvorticityTurbulence.so: undefined symbol: _ZNK4Foam14incompressible9RASModels10kOmegaSSTV10divDevReffEv
    --> FOAM Warning :
        From function bool Foam::dlLibraryTable::open(const Foam::fileName&, bool)
        in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 97
        could not load "libvorticityTurbulence.so"
    Time = 63000
    Create mesh for region region0
    
    Calculating distribution of cells
    --> FOAM Warning :
        From function void* Foam::dlOpen(const Foam::fileName&, bool)
        in file POSIX.C at line 1204
        dlopen error : libscotchDecomp.so: cannot open shared object file: No such file or directory
    --> FOAM Warning :
        From function bool Foam::dlLibraryTable::open(const Foam::fileName&, bool)
        in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 97
        could not load "libscotchDecomp.so"
    --> FOAM Warning :
        From function decompositionMethod::loadExternalLibraries()
        in file decompositionMethod/decompositionMethod.C at line 520
        Loading of decomposition library libscotchDecomp.so unsuccesful. Some decomposition methods may not be  available
    --> FOAM Warning :
        From function void* Foam::dlOpen(const Foam::fileName&, bool)
        in file POSIX.C at line 1204
        dlopen error : libmetisDecomp.so: cannot open shared object file: No such file or directory
    --> FOAM Warning :
        From function bool Foam::dlLibraryTable::open(const Foam::fileName&, bool)
        in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 97
        could not load "libmetisDecomp.so"
    --> FOAM Warning :
        From function decompositionMethod::loadExternalLibraries()
        in file decompositionMethod/decompositionMethod.C at line 520
        Loading of decomposition library libmetisDecomp.so unsuccesful. Some decomposition methods may not be  available
    --> FOAM Warning :
        From function void* Foam::dlOpen(const Foam::fileName&, bool)
        in file POSIX.C at line 1204
        dlopen error : libparMetisDecomp.so: cannot open shared object file: No such file or directory
    --> FOAM Warning :
        From function bool Foam::dlLibraryTable::open(const Foam::fileName&, bool)
        in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 97
        could not load "libparMetisDecomp.so"
    --> FOAM Warning :
        From function decompositionMethod::loadExternalLibraries()
        in file decompositionMethod/decompositionMethod.C at line 520
        Loading of decomposition library libparMetisDecomp.so unsuccesful. Some decomposition methods may not be  available
    Selecting decompositionMethod scotch
    
    
    --> FOAM FATAL ERROR:
    Unknown decompositionMethod scotch
    
    Valid decompositionMethods are :
    
    4
    (
    hierarchical
    manual
    patchConstrained
    simple
    )
    
    
        From function decompositionMethod::New(const dictionary& decompositionDict, const polyMesh& mesh)
        in file decompositionMethod/decompositionMethod.C at line 496.
    
    FOAM exiting
    
    

    请问各位大佬有没有遇见过类似问题,我该如何解决?


  • CFD周边笔记本
    杜 杜浚平

    @李东岳 好嘞,感谢信任,我是很喜欢咱们的笔记本,希望做得更好:146:


  • CFD周边笔记本
    杜 杜浚平

    @李东岳 是这样的,我就是摊平写的然后掉页,想着买个文件夹收一下,结果发现尺寸不对。

    期待笔记本早日上架:140:


  • CFD周边笔记本
    杜 杜浚平

    参加2024CFD培训获得了几个笔记本,但发现了一个小问题:
    笔记本上两孔的距离大概是87mm,而市面上普遍卖的双孔文件夹的孔间距是80mm,岳父会在后面的产品中修改吗?或者再出一款CFD双孔文件夹?:chouchou:


  • 修改boundary文件中的类型导致错误
    杜 杜浚平

    @李东岳 好的,谢谢东岳老师!


  • 修改boundary文件中的类型导致错误
    杜 杜浚平

    各位佬,本人初学openfoam,网格划分采用ICEM,做的算例是NACA0018的升阻力系数计算,画的是一个三维网格,想要导入of后将front和back设为empty,以此来进行二维翼型的运算,报错为:
    Number of edges not aligned with or perpendicular to non-empty directions: 8191
    Writing 16382 points on non-aligned edges to set nonAlignedEdges

    网格展向0.01m,划分为一个网格,网格如下:
    naca.png

    在导入后boundary文件如下:

    /*--------------------------------*- C++ -*----------------------------------*\
    | =========                 |                                                 |
    | \\      /  F ield         | foam-extend: Open Source CFD                    |
    |  \\    /   O peration     | Version:     3.2                                |
    |   \\  /    A nd           | Web:         http://www.foam-extend.org         |
    |    \\/     M anipulation  | For copyright notice see file Copyright         |
    \*---------------------------------------------------------------------------*/
    FoamFile
    {
        version     2.0;
        format      ascii;
        class       polyBoundaryMesh;
        location    "constant/polyMesh";
        object      boundary;
    }
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    
    4
    (
        AIRFOIL
        {
            type            wall;
            nFaces          488;
            startFace       124440;
        }
        BACK
        {
            type            symmetryPlane;
            nFaces          62464;
            startFace       124928;
        }
        FRONT
        {
            type            symmetryPlane;
            nFaces          62464;
            startFace       187392;
        }
        FAR
        {
            type            patch;
            nFaces          488;
            startFace       249856;
        }
    )
    
    // ************************************************************************* //
    
    

    checkMesh的结果如下:

    /*---------------------------------------------------------------------------*\
    | =========                 |                                                 |
    | \\      /  F ield         | foam-extend: Open Source CFD                    |
    |  \\    /   O peration     | Version:     3.2                                |
    |   \\  /    A nd           | Web:         http://www.foam-extend.org         |
    |    \\/     M anipulation  | For copyright notice see file Copyright         |
    \*---------------------------------------------------------------------------*/
    Build    : 3.2-0b2838935026
    Exec     : checkMesh
    Date     : Jul 24 2024
    Time     : 13:00:35
    Host     : ad
    PID      : 24129
    CtrlDict : "/home/ad/foam/ad-3.2/run/try4/18/system/controlDict"
    Case     : /home/ad/foam/ad-3.2/run/try4/18
    nProcs   : 1
    SigFpe   : Enabling floating point exception trapping (FOAM_SIGFPE).
    
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    Create time
    
    Create polyMesh for time = 0
    
    Time = 0
    
    Mesh stats
        all points:           125904
        live points:          125904
        all faces:            250344
        live faces:           250344
        internal faces:       124440
        cells:                62464
        boundary patches:     4
        point zones:          0
        face zones:           1
        cell zones:           1
    
    Overall number of cells of each type:
        hexahedra:     62464
        prisms:        0
        wedges:        0
        pyramids:      0
        tet wedges:    0
        tetrahedra:    0
        polyhedra:     0
    
    Checking topology...
        Boundary definition OK.
        Point usage OK.
        Upper triangular ordering OK.
        Face vertices OK.
        Number of regions: 1 (OK).
    
    Checking patch topology for multiply connected surfaces ...
        Patch               Faces    Points   Area [m^2]  Surface topology                  
        AIRFOIL             488      976      0.0207938   ok (non-closed singly connected)  
        BACK                62464    62952    737.046     ok (non-closed singly connected)  
        FRONT               62464    62952    737.046     ok (non-closed singly connected)  
        FAR                 488      976      0.962719    ok (non-closed singly connected)  
    
    Checking geometry...
        This is a 3-D mesh
        Overall domain bounding box (-14.9955 -15.3298 -1.43395e-42) (15.9509 14.9979 0.01)
        Mesh (non-empty, non-wedge) directions (1 1 1)
        Mesh (non-empty) directions (1 1 1)
        Mesh (non-empty, non-wedge) dimensions 3
        Boundary openness (-1.86694e-20 -1.04152e-19 -4.57649e-15) Threshold = 1e-06 OK.
        Max cell openness = 2.46007e-15 OK.
        Max aspect ratio = 381.414 OK.
        Minumum face area = 3.3198e-09. Maximum face area = 0.100407.  Face area magnitudes OK.
        Min volume = 3.3198e-11. Max volume = 0.00100407.  Total volume = 7.37046.  Cell volumes OK.
        Mesh non-orthogonality Max: 44.6101 average: 9.96793 Threshold = 70
        Non-orthogonality check OK.
        Face pyramids OK.
        Max skewness = 0.733611 OK.
    
    Mesh OK.
    
    End
    
    
    

    将boundary文件修改为:

    /*--------------------------------*- C++ -*----------------------------------*\
    | =========                 |                                                 |
    | \\      /  F ield         | foam-extend: Open Source CFD                    |
    |  \\    /   O peration     | Version:     3.2                                |
    |   \\  /    A nd           | Web:         http://www.foam-extend.org         |
    |    \\/     M anipulation  | For copyright notice see file Copyright         |
    \*---------------------------------------------------------------------------*/
    FoamFile
    {
        version     2.0;
        format      ascii;
        class       polyBoundaryMesh;
        location    "constant/polyMesh";
        object      boundary;
    }
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    
    4
    (
        AIRFOIL
        {
            type            wall;
            nFaces          488;
            startFace       124440;
        }
        BACK
        {
            type            empty;
            nFaces          62464;
            startFace       124928;
        }
        FRONT
        {
            type            empty;
            nFaces          62464;
            startFace       187392;
        }
        FAR
        {
            type            patch;
            nFaces          488;
            startFace       249856;
        }
    )
    
    // ************************************************************************* //
    
    

    checkMesh得到:

    /*---------------------------------------------------------------------------*\
    | =========                 |                                                 |
    | \\      /  F ield         | foam-extend: Open Source CFD                    |
    |  \\    /   O peration     | Version:     3.2                                |
    |   \\  /    A nd           | Web:         http://www.foam-extend.org         |
    |    \\/     M anipulation  | For copyright notice see file Copyright         |
    \*---------------------------------------------------------------------------*/
    Build    : 3.2-0b2838935026
    Exec     : checkMesh
    Date     : Jul 24 2024
    Time     : 13:02:01
    Host     : ad
    PID      : 24163
    CtrlDict : "/home/ad/foam/ad-3.2/run/try4/18/system/controlDict"
    Case     : /home/ad/foam/ad-3.2/run/try4/18
    nProcs   : 1
    SigFpe   : Enabling floating point exception trapping (FOAM_SIGFPE).
    
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    Create time
    
    Create polyMesh for time = 0
    
    Time = 0
    
    Mesh stats
        all points:           125904
        live points:          125904
        all faces:            250344
        live faces:           250344
        internal faces:       124440
        cells:                62464
        boundary patches:     4
        point zones:          0
        face zones:           1
        cell zones:           1
    
    Overall number of cells of each type:
        hexahedra:     62464
        prisms:        0
        wedges:        0
        pyramids:      0
        tet wedges:    0
        tetrahedra:    0
        polyhedra:     0
    
    Checking topology...
        Boundary definition OK.
        Point usage OK.
        Upper triangular ordering OK.
        Face vertices OK.
        Number of regions: 1 (OK).
    
    Checking patch topology for multiply connected surfaces ...
        Patch               Faces    Points   Area [m^2]  Surface topology                  
        AIRFOIL             488      976      0.0207938   ok (non-closed singly connected)  
        BACK                62464    62952    737.046     ok (non-closed singly connected)  
        FRONT               62464    62952    737.046     ok (non-closed singly connected)  
        FAR                 488      976      0.962719    ok (non-closed singly connected)  
    
    Checking geometry...
        This is a 2-D mesh
        Overall domain bounding box (-14.9955 -15.3298 -1.43395e-42) (15.9509 14.9979 0.01)
        Mesh (non-empty, non-wedge) directions (1 1 0)
        Mesh (non-empty) directions (1 1 0)
        Mesh (non-empty, non-wedge) dimensions 2
     ***Number of edges not aligned with or perpendicular to non-empty directions: 8191
      Writing 16382 points on non-aligned edges to set nonAlignedEdges
        Boundary openness (-1.86694e-20 -1.04152e-19 -4.57649e-15) Threshold = 1e-06 OK.
        Max cell openness = 2.46007e-15 OK.
        Max aspect ratio = 381.414 OK.
        Minumum face area = 3.3198e-09. Maximum face area = 0.100407.  Face area magnitudes OK.
        Min volume = 3.3198e-11. Max volume = 0.00100407.  Total volume = 7.37046.  Cell volumes OK.
        Mesh non-orthogonality Max: 44.6101 average: 9.96793 Threshold = 70
        Non-orthogonality check OK.
        Face pyramids OK.
        Max skewness = 0.733611 OK.
    
    Failed 1 mesh checks.
    
    End
    
    
    

    我该如何修改?:haqi:

  • 登录

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