openfoam从9还是10开始,编译需要超大内存。那次大版本更新一堆编译爆了的。要么增加内存条或者swap,要么编译的时候不要直接 -j 用上所有的核,用少一些核,内存占用会降低,只是编译速度慢点。
可以编译的时候开着系统资源管理器看着内存占用,是不是到100%之后猛的下降。
openfoam从9还是10开始,编译需要超大内存。那次大版本更新一堆编译爆了的。要么增加内存条或者swap,要么编译的时候不要直接 -j 用上所有的核,用少一些核,内存占用会降低,只是编译速度慢点。
可以编译的时候开着系统资源管理器看着内存占用,是不是到100%之后猛的下降。
确定是“自动关机”而不是“自动重启”?如果只是自动重启,兴许只是内存满了,把GUI撑爆了,GUI自动重启了。
如果确定是自动关机的故障就别开机了。自动关机的时候估计哪里电流过载之类的,多冲几次就成永久故障了。
@ann ECN网站现在可以进去了。
@钟余 如果 $\nu$ 和 $\varepsilon$ 边界条件都没有设置为 0,那就要试试一个核跑去慢慢 debug 了。
@钟余 边界条件里湍动能 $k$ 给一个很小的值,不要设置为0。EDC模型里需要把 $k$ 作为分母。
@Afr1yne 可以的。可以参考溃坝算例里设定水的区域和含水量
tutorials/multiphase/interFoam/laminar/damBreak
@世界函数 画网格的时候、计算的时候都可以修改。在fluent里,网格那一栏。有检查网格质量、防缩网格尺寸,也有整体移动网格的。把网格的一个边界点对到原点上就行了。
OpenFOAM里有个setFields,就像fluent里的path。
第一个坐标是16.
1026-16=1010
这些是内部函数,只有头文件里有声明。是常见的商业软件保密方法。(只发布头文件和源代码编译成的动态链接库)
如果要使用,
第一步,包含定义该函数的头文件
第二步,编译的时候链接到包含该函数定义的动态链接库。
可以使用grep找到包含该函数的声明头文件和各状况下的动态链接库。
can@M320:/ansys_inc> sudo grep -r Alloc_Storage_Vars .
grep: ./v231/fluent/fluent23.1.0/linmic/3ddp_node/fluent_mpi.23.1.0: binary file matches
grep: ./v231/fluent/fluent23.1.0/linmic/2ddp_node/fluent_mpi.23.1.0: binary file matches
grep: ./v231/fluent/fluent23.1.0/linmic/2d_node/fluent_mpi.23.1.0: binary file matches
grep: ./v231/fluent/fluent23.1.0/linmic/3d_node/fluent_mpi.23.1.0: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/mhd/lnamd64/3ddp_host/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/mhd/lnamd64/3ddp_node/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/mhd/lnamd64/2ddp_node/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/mhd/lnamd64/3d_host/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/mhd/lnamd64/2d_node/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/mhd/lnamd64/2d_host/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/mhd/lnamd64/2ddp_host/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/mhd/lnamd64/3d_node/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/msmdbatt/lnamd64/3ddp_node/cae_batt.o: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/msmdbatt/lnamd64/3ddp_node/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/msmdbatt/lnamd64/3d_node/cae_batt.o: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/msmdbatt/lnamd64/3d_node/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/htc/lnamd64/3ddp_node/libhtcns.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/htc/lnamd64/2ddp_node/libhtcns.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/htc/lnamd64/2d_node/libhtcns.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/htc/lnamd64/3d_node/libhtcns.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/fensapice/lnamd64/3ddp_node/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/fensapice/lnamd64/3d_node/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/rom/lnamd64/3ddp_host/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/rom/lnamd64/3ddp_node/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/rom/lnamd64/2ddp_node/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/rom/lnamd64/3d_host/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/rom/lnamd64/2d_node/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/rom/lnamd64/2d_host/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/rom/lnamd64/2ddp_host/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/rom/lnamd64/3d_node/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/adjoint/lnamd64/3ddp_host/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/adjoint/lnamd64/3ddp_node/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/adjoint/lnamd64/2ddp_node/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/adjoint/lnamd64/3d_host/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/adjoint/lnamd64/2d_node/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/adjoint/lnamd64/2d_host/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/adjoint/lnamd64/2ddp_host/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/adjoint/lnamd64/3d_node/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/mpm/lnamd64/3ddp_node/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/mpm/lnamd64/2ddp_node/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/mpm/lnamd64/2d_node/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/addons/mpm/lnamd64/3d_node/libudf.so: binary file matches
grep: ./v231/fluent/fluent23.1.0/lnamd64/3ddp_host/fluent.23.1.0: binary file matches
grep: ./v231/fluent/fluent23.1.0/lnamd64/3ddp_node/fluent_mpi.23.1.0: binary file matches
grep: ./v231/fluent/fluent23.1.0/lnamd64/2ddp_node/fluent_mpi.23.1.0: binary file matches
grep: ./v231/fluent/fluent23.1.0/lnamd64/3d_host/fluent.23.1.0: binary file matches
grep: ./v231/fluent/fluent23.1.0/lnamd64/2d_node/fluent_mpi.23.1.0: binary file matches
grep: ./v231/fluent/fluent23.1.0/lnamd64/2d_host/fluent.23.1.0: binary file matches
grep: ./v231/fluent/fluent23.1.0/lnamd64/2ddp_host/fluent.23.1.0: binary file matches
grep: ./v231/fluent/fluent23.1.0/lnamd64/3d_node/fluent_mpi.23.1.0: binary file matches
./v231/fluent/fluent23.1.0/src/storage/storage.h:FLUENT_EXPORT void Alloc_Storage_Vars(Domain *, ...);
./v231/fluent/fluent23.1.0/src/storage/storage.h:FLUENT_EXPORT void MD_Alloc_Storage_Vars(Domain *, ...);