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

副教授

私有

帖子


  • PIMPLE发散, PISO就发散
    星 星星星星晴

    Hi,

    我这现在在做欧拉拉格朗日模拟,2-way。然后在模拟中途就爆掉了。。检查了一下flow,发现整个flow都乱掉了,因为parcel的聚集,毕竟两者是相互影响的。

    但是神奇的是,同事把PIMPLE改为了PISO就过了。
    理解不了为什么。

    flow.0068.png

    flow.0069.png

    flow.0070.png

    flow.0071.png

    flow.0072.png

    flow.0073.png

    下面两个图是根据log文件画的,pimple 的拟合造成了温度场和压力场的变化?理解不了?求解惑

    WhatsApp Image 2025-09-25 at 12.08.19.jpeg

    WhatsApp Image 2025-09-25 at 12.08.07.jpeg


  • Openfoam全系统在vscode下的版本切换问题
    星 星星星星晴

    把你的默认of改一下 因为每开一个terminal 就要读~/.bashrc文件


  • 拉格朗日injection model的自编译
    星 星星星星晴

    你这个方法我不太了解。我在添加injection model的时候就是修改好程序以后在makeParcelInjectionModels.H添加模型。没用过你这个方法


  • OF13 源代码编译 找不到scotch.h
    星 星星星星晴

    ubuntu 24.04 OF13 编译 找不到scotch.h
    解决办法:https://bugs.openfoam.org/view.php?id=4270
    安装bison


  • 拉格朗日injection model的自编译
    星 星星星星晴

    因为你没有在makeParcelInjectionModels.H 添加你的模型


  • ubuntu 24 使用OF4
    星 星星星星晴

    最近开始用正经超算跑程序了,记录一下Singularity配置和运行OF4。
    下面是为什么不能使用docker的原因

    Singularity or Docker
    Docker images provide a means to gain root access to the system they are running on. For this reason Docker is not available on the PC2 clusters. Singularity is compatible with all Docker images and it can be used with GPUs and MPI applications. Here is a comparision between virtual machines, Docker and Singularity.
    
    Singularity images are stored as a single file which makes them easily shareable. You can host your images on the Singularity Cloud Library for others to download. You could also make it available by putting it on a web server like any other file. Singularity can be used to run massively-parallel applications which leverage fast interconnects like InfiniBand and GPUs. These applications suffer minimal performance loss since Singularity was designed to run "close to the hardware".
    

    根据说明,Singularity 可以无痛转换docker 镜像

    因此,
    OF4的原生docker地址
    https://hub.docker.com/r/openfoam/openfoam4-paraview50

    执行下面命令即可,然后就是等待

    singularity pull docker://openfoam/openfoam4-paraview50
    

    然后就可以得到openfoam4-paraview50_latest.sif 文件

    执行和测试运行下面命令即可。

    singularity run ./openfoam4-paraview50_latest.sif
    

    但是如果使用自己编译的程序的话,会有寻找不到路径的情况,就要根据自己的情况处理。

    可以在.bashrc文件中添加下面的内容

    # User specific aliases and functions
    export WM_PROJECT_USER_DIR="/xxxxx/xxx/path"
    

    配合SLRUM的话,因为OF4版本太老,没有找到其他使用外部系统高版本的MPI的解决办法。所以只能使用自带的内部MPI运行。

    #!/bin/bash
    #SBATCH ... 根据自己情况配置
    
    module 自己配置
    
    singularity exec ~/openfoam4-paraview50_latest.sif ./run_OF4.sh
    

    下面的脚本内容

    #!/bin/bash
    
    source /opt/openfoam4/etc/bashrc 
    bash
    
    rm -rf processor*
    decomposePar
    mpirun -np 32 reactingParcelFoam -parallel
    

  • interPhaseChangeFoam求解器找不到
    星 星星星星晴

    因为他就不再of13里~你安装错了版本


  • ubuntu 24 使用OF4
    星 星星星星晴

    用docker~


  • rhoPimpleFoam求解器中EEqn.H能量方程具体形式是什么?
    W wangfei9088

    @AppleKiller
    李老师的书《无痛苦N-S方程笔记》第226页有推导。http://www.dyfluid.com/theory.pdf


  • 请问sprayFoam可以实现两种不同燃料从两个位置喷注嘛?类似下图示意
    星 星星星星晴

    @孟豪龙 还有一个可能的解决方案,你得修改喷射模型,你可以设置 p.Y() 的组分。在injectionmodel里,添加关于组分的判断语句,然后让他读取到什么字符,就可以喷射什么组分的颗粒

成员列表

W wangfei9088
yhdthuY yhdthu
星 星星星星晴
bestucanB bestucan
散漫守望2016散 散漫守望2016
马乔马 马乔
R random_ran
  • 登录

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