服务器的Fluent版本跟调试用的一致吗?
有条件的话可以在服务器上试一下/solve/set/ts
命令
服务器的Fluent版本跟调试用的一致吗?
有条件的话可以在服务器上试一下/solve/set/ts
命令
STAR,400步左右收敛
有一节叫Advanced Multiphase Macro,也许有帮助。
For most standard UDFs written for multiphase models (for example, source term, material property, profile functions), variables that your function needs (domain pointers, thread pointers, and so on) are passed directly to your UDF as arguments by the solver in the solution process. All you need to do is hook the UDF to your model and everything is taken care of. For example, if your multiphase UDF defines a custom profile for a particular boundary zone (using DEFINE_PROFILE) and is hooked to the appropriate phase or mixture in Ansys Fluent in the relevant boundary condition dialog box, then appropriate phase or mixture variables will be passed to your function by the solver at run time.
There may, however, be more complex functions you want to write that require a variable that is not directly passed through its arguments. DEFINE_ADJUST and DEFINE_INIT functions, for example, are passed mixture domain variables only. If a UDF requires a phase domain pointer, instead, then it will need to use macros presented in this section to retrieve it. ON_DEMAND UDFS are not directly passed any variables through their arguments. Consequently, any on demand function that requires access to phase or domain variables will also need to use macros presented in this section to retrieve them.
弧度制角度制的问题?
@cccrrryyy 在 多个作业分配到同一个节点上会导致计算效率大幅降低 中说:
经济上倒是没啥问题,主要感觉这个应该有什么技术手段可以解决。不然一方面是可以大规模并行,一方面又需要单独分配节点,有点矛盾。
需要分析一下效率降低的原因,一种情况是节点间通信开销太大了。我这边是设置了最小分配数(暂且这么叫吧),比如10核的作业,最小按5核调度,那么最多只会分到2个节点上运行,且不会分到有4核或更少空闲核心的节点上运行。
@cccrrryyy 在 多个作业分配到同一个节点上会导致计算效率大幅降低 中说:
10核的机器,2块5核的CPU,如果两个5核作业分别跑在2块CPU上,按道理不至于拖慢速度吧?
不一定,如果其中一个作业把内存占满了,求解速度也会慢。(还有其它情况。)
虽然是句废话,但我还是想说一下.. 经济上可接受的话,每个作业单独分个节点?或者最小按5核分配?
@leilei 那就跟你怎么并行跑OpenFOAM有关了,我以前用的mpirun命令,但没有自己指定过节点,刚看了一下文档(bash下输man mpirun
),似乎可以通过-hostfile
或者其它选项做资源管理。
(你问的不属于OpenFOAM的范畴,纯粹是平台/操作系统的问题,Debian系的Linux系统一般可以用taskset
将进程绑定到特定CPU。)
@cccrrryyy 工程问题中边界的物理属性一般都很直接 —_—
刚突然有个想法,不知道能不能用DEFINE_PROFILE
实现类似的功能
@hustzzw 你这是*
号都被格式化吃掉了吧。。看起来奇奇怪怪的
可以加些输出语句,看看y_h2
这些量算的对不对。(小心除零)
好像只有一些出口边界能给回流条件的,但不能指定速度的大小。。
Fluent貌似不是分物理量设置边界条件
@建筑外环境通风模拟小学生 reference pressure location
怎么定义的?看起来不唯一啊..
不过这是个警告,感觉跟创建point surface的错误无关..
@nikki7 试试mesh/mesh-info
?(我没用过。。)
@李东岳 歪个楼,翻译成“连接”?
@dwp123 UDF的基础就是C,可以直接用C或者C++中的函数/方法生成随机数,再建立从随机数到粒径的映射。比如落在[0, .3)范围内的随机数对应直径1...
DPM的UDF我就不清楚了,可以看看官方的UDF Manual
曲线救国:建一个矢量场函数grad($$Velocity[0])
,再去用这玩意儿的第2个分量..
@jpzhao 有monitor和report的功能,具体看看相应版本的手册哈
信息有点少啊..