Skip to content
  • 0 赞同
    2 帖子
    15 浏览
    学流体的小明

    取一个或多个平行于壁面的面(Kim的图也是不同高度的,y^+=5.39和149.23),使用surfaces工具输出这个面上的速度,然后每个面计算速度的展向、流向空间相关函数就行了。
    可以直接计算二维的相关。
    也可以固定z坐标,一条线一条线地计算流向的相关函数,再做个平均。

  • 量纲不匹配

    OpenFOAM
    5
    0 赞同
    5 帖子
    50 浏览
    学流体的小明

    @bcp 我搞错了,之前没看对你计算rField的公式。我以为是你rField的计算公式不对。

    你把报错代码发一下。
    debug,分别输出rho、U、rField的量纲看一看

  • foam-extend-4.1安装出错

    OpenFOAM
    1
    0 赞同
    1 帖子
    9 浏览

    在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文件,我是应该自己添加这些文件然后重新编译吗?

  • starccm添加oversetPatch导入到OpenFOAM

    OpenFOAM
    1
    0 赞同
    1 帖子
    7 浏览
    Z

    963df654ce25372fc5621513b9fe905.png 如图是blockMesh中创建的oversetPatch,用于触发在任何其他边界条件之前进行重叠(overset)插值。ccmTo.png 这张图的polyMesh是利用ccmToFoam,将starccm网格导入到OpenFoam的,请问如何在starccm里面加上图1中的oversetPatch呢。@李东岳

  • 0 赞同
    1 帖子
    6 浏览
    Z

    如图,在做有关雾化的课题,但是在paraview中不知道怎么复现前辈的论文输出某截面的液相分数微信图片_20241221153039.png 微信图片_20241221153346.png 图片1.png

  • openFoam与Fluent模拟简单的Laval蒸汽喷管

    OpenFOAM
    37
    0 赞同
    37 帖子
    14k 浏览
    李东岳

    我在找bug的时候,在《无痛笔记》更新了一下openfoam无反射边界条件,目前来看植入的没有问题。bug应该不在这里。

  • 拉格朗日边界问题

    OpenFOAM
    2
    0 赞同
    2 帖子
    50 浏览
    李东岳

    是不是边界的名重复了呢

  • 四面体interFoam怎么设置离散格式啊

    OpenFOAM
    3
    0 赞同
    3 帖子
    29 浏览
    李东岳

    算出来的最低温度一直在降

    数值扩散掉了

  • 0 赞同
    4 帖子
    69 浏览
    李东岳

    是不是有什么障碍物之类的那一块没有网格。

    paraview也可以提取,直接花plot over line,然后右边看sheet,export

  • 0 赞同
    17 帖子
    3k 浏览
    S

    @Jimmy-Yao 楼主最开始的是四面体网格吗?

  • phiHbyA边界问题

    OpenFOAM
    12
    0 赞同
    12 帖子
    2k 浏览
    李东岳

    是的,你试试

  • UDF对边界附近的单元赋值

    Fluent
    1
    0 赞同
    1 帖子
    27 浏览
    Z

    请教各位,该怎么对边界附近的单元赋值,比如下面这个UDF.我想将一个区域的 C_UDMI(c, tt, 0)全部设置为0,然后边界附近的 C_UDMI(c, tt, 0)设置为1,该怎么操作?谢谢!

    void set_zone(Thread* t) { cell_t c; real vol; Thread *tt = THREAD_SUPER_THREAD(t); begin_c_loop(c, t) { if (THREAD_ID(t) == 1047) { C_UDMI(c, tt, 0) = 1; } end_c_loop(c, lct) } void set_cells(Thread *t) { Thread *tt = THREAD_SUPER_THREAD(t); face_t f; Thread *t_nbr; cell_t c0, c1; Domain *mix_domain = Get_Domain(1); for (int i = 0; i < num_boundaries; i++) { t_nbr = Lookup_Thread(mix_domain, 1); begin_f_loop(f, t_nbr){ c0 = F_C0(f, t_nbr); c1 = F_C1(f, t_nbr); if (c0 != -1 && THREAD_ID(THREAD_T0(t_nbr)) == 1047) { C_UDMI(c0, tt, 1) = 0.0; } if (c1 != -1 && THREAD_ID(THREAD_T1(t_nbr)) == 1047) { C_UDMI(c1, tt, 1) = 0.0; } } end_f_loop(f, t_nbr) } } DEFINE_ADJUST(aaa, mix_domain) { Thread* mix_thread; int phase_domain_index = 0; thread_loop_c(mix_thread, mix_domain) { Thread* t = THREAD_SUB_THREAD(mix_thread, phase_domain_index); if (t != NULL) { set_capillary_pressure_sources(t); set_boundary_cells(t); } } }
  • 0 赞同
    8 帖子
    86 浏览
    1

    @1064168551 在 求助:在codedict中读取求解器中定义的标量 中说:

    @李东岳 a6bccb55-b62e-4688-bc61-dc2f9e6911e5-image.png 东岳老师,抱歉再打扰您,我现在改成这个样子,还是会报错,dimensionedScalar好像还是无法lookup

    报错在这里,就还是这行const dimensionedScalar vv = mesh.lookupObject<dimensionedScalar>("vv");有问题
    56be09a2-6412-49a3-9c59-598dfb8ef235-image.png

  • 0 赞同
    12 帖子
    5k 浏览
    A

    遇到了类似的问题,就是水平集模拟两相流时,怎么样利用水平集计算的相界面把一个对流扩散方程隔离开,只在一个相内求解对流扩散方程。

  • 请问这是重叠网格什么情况

    Fluent
    1
    0 赞同
    1 帖子
    28 浏览
    C

    想做重叠网格的入水仿真,然后前景网格导入进背景网格后,显示云图时出现弹体之外的网格缺失了。是什么情况,这是负体积么d05b8f7a-a478-4841-8d82-e89bd4f376fb-image.png 290f4ec5-7312-4d2f-bc4a-9233470b86dd-image.png

  • 气泡虚拟质量力系数取舍

    Algorithm
    1
    0 赞同
    1 帖子
    29 浏览
    Y

    有无大佬研究过,或者有相关论文的。关于侧吹的气泡的虚拟质量力系数取舍,我发现侧吹时候,该系数和贯穿深度有关系,所以想看看

  • fluent计算流固耦合时传热太快

    Fluent
    2
    0 赞同
    2 帖子
    177 浏览
    R

    你这一会1250 一会1350 到底多少度的,而且你这个截面是截的多高处的呢,另外得看一下你的残差图

  • Fluent版权问题

    Fluent
    2
    0 赞同
    2 帖子
    100 浏览
    R

    打电话警告怕啥 先用再说

  • fvsolution文件报错

    OpenFOAM
    4
    0 赞同
    4 帖子
    91 浏览
    李东岳

    发散的话就是发散了,问题就很多,需要你详细的debug

  • scalarTransport求解负温问题

    OpenFOAM
    4
    0 赞同
    4 帖子
    61 浏览
    S

    好像是因为我没缩放网格