Skip to content

Fluent

Fluent交流区

980 主题 4.4k 帖子
  • 超临界Co2回流

    2
    2 帖子
    95 浏览
    羽之下

    跟出口速度有关系,延长出口计算域试试?

  • FLUENT 计算过程中闪退, Abnormal Exit!

    1
    1 帖子
    240 浏览
    Z

    计算过程中突然闪退,查看日志会出现这样的两条报错:
    Error [node 999999] [time 12/30/24 11:57:27] Abnormal Exit!
    Error [node 0] [time 12/30/24 11:57:27] Abnormal Exit!

    再次打开可以继续执行计算,但是之前的动画似乎没法续上了

    大家有遇到过吗?是怎么解决的呢?

  • UDF函数求助

    5
    5 帖子
    630 浏览
    bestucanB

    这些是内部函数,只有头文件里有声明。是常见的商业软件保密方法。(只发布头文件和源代码编译成的动态链接库)

    如果要使用,

    第一步,包含定义该函数的头文件
    第二步,编译的时候链接到包含该函数定义的动态链接库。

    可以使用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 *, ...);
  • 1 帖子
    97 浏览
    Z

    如题,在FLUENT的用户手册里写到可以在单元区域条件里打开,但是我的2024R2似乎没有或者没找到,我用的是多相流模型

    417c3160-424b-42e4-bbf0-0f81e52c3b97-image.png 说

  • 2 帖子
    1k 浏览
    L

    @冬天大太阳 请问博主找到设置方法了吗?找到了,能不能向您请教一下,有偿答疑,谢谢您,打扰了。

  • 关于化学反应带来的质量源项的udf编写

    2
    2 帖子
    266 浏览
    G

    有一节叫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.

  • 粘性方程中的阻力损失

    1
    1 帖子
    150 浏览
    A

    最近在做过滤器的仿真计算,计算后对得到的压降损失的来源有些疑惑,请问大家我只打开了粘性模型Realizable k -ε,并用了增强壁面函数,计算得到的压降损失都来自哪些?目前我学习到的应该是包括了流动过程中流体微团的变形所损耗的压降,但不知道还有没有其他压降损失来源,主要要的是壁面的摩擦阻力造成的压降损失有没有考虑进去,为此求教下大家

  • 2 帖子
    317 浏览
    M

    fluent边界里是有质量流入和质量流出的,主要是可压问题用。不过理论手册并没有提及是怎么处理的。

  • 质量不守恒

    2
    2 帖子
    305 浏览
    M

    信息太少了

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

    1
    1 帖子
    166 浏览
    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); } } }
  • 请问这是重叠网格什么情况

    1
    1 帖子
    153 浏览
    C

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

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

    2
    2 帖子
    368 浏览
    R

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

  • Fluent版权问题

    2
    2 帖子
    308 浏览
    R

    打电话警告怕啥 先用再说

  • 关于Fluent大涡模拟

    22
    22 帖子
    15k 浏览
    L

    @cccrrryyy 大神,想问问轴向尺寸指的是网格吗还是管道长度呀

  • fluent的壁面如何通过UDS自定义第三类边界条件

    1
    1 帖子
    99 浏览
    S

    有个问题想问问大伙,如题

  • Fluent-DPM颗粒流sample采样报错

    1
    1 帖子
    198 浏览
    L

    Hi 各位大佬,
    请教一个问题,我在使用DPM颗粒流模型模拟烟气扩散的过程中,计算时只要进行sample采样就会报如下错误,导致无法开始计算,不进行sample采样就能正常计算,请问是什么原因呢?如何解决?希望各位大佬能答疑一下,谢谢!
    73db66a8-1cd7-4487-a31e-70b1eb15929d-image.png

  • Fluent里面如何做子弹在来流中空化的现象

    1
    1 帖子
    221 浏览
    C

    自己做了一个300m/s的来流,然后打在一个子弹形状的壁面上,想观察来流经子弹产生空化现象。但是现在问题是,300m/s的来流经过子弹形状的壁面输出压力云图是全蓝的,不知道是哪里设置错误,有没有大佬帮帮我。

  • 翼型升阻力计算

    5
    5 帖子
    643 浏览
    A

    你好,想问一下你升阻力和文献对的上吗,我算的误差有12%

  • Fluent中有类似OpenFOAM的inlet/outlet边界条件么

    9
    9 帖子
    4k 浏览
    K

    那么我的波浪在遇到物体之后形成的反射波也会在inlet边界直接流出吗?还是会产生二次反射呢?

  • 3 帖子
    207 浏览
    2

    我设置了interface,check mesh的时候还是显示Unassigned interface zone detected for这是为什么呢?