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

  1. CFD中文网
  2. Fluent
  3. 关于在 udf 定义比热参数问题

关于在 udf 定义比热参数问题

已定时 已固定 已锁定 已移动 Fluent
5 帖子 3 发布者 5.9k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
回复
  • 在新帖中回复
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • 两月三年两 离线
    两月三年两 离线
    两月三年
    写于 最后由 编辑
    #1

    在Fluent 中定义物性比热时 有一个特定的函数
    DEFINE_SPECIFIC_HEAT(specific_heat_paddy, T, Tref, h, yi)
    只能传入一些指定参数,而我想通过 uds 传入一部分数据,根本不知道怎么弄?

    下边是ANSYS surpport 关于一个相关问题的答案,看完更加懵逼了,希望有大神可以解释一下,谢谢

    "**Why is the cell data not available in the DEFINE_SPECIFIC_HEAT UDF?**
    The UDF for specific heat is called as part of the material definition in the solver where the cell is not available. This is a limitation for this macro and its Real Gas equivalent.
    Cp is by definition ∂H/∂T, so for it to have other dependencies is not expected by the solver. Since Cp and enthalpy definitions are critical to the stability of the energy equation, a strict format has to be defined so that the UDF doesn't cause instabilities.The only way to vary the Cp at the cell level is via the variation of the mass fractions of a mixture. This is what most users are trying to emulate when they are using a UDS, UDM or similar value to vary Cp. They should instead add a new species (which is not much more expensive than a UDS) to follow the material flow. The species could be a copy of the original species, but with a different Cp. Then, the Cp can be varied by varying the proportions of the species, potentially via source terms driven by UDM values."

    那都是很好很好的,可是我偏不喜欢。

    1 条回复 最后回复
  • 两月三年两 离线
    两月三年两 离线
    两月三年
    写于 最后由 编辑
    #2

    好吧,看来只能在使用比热的时候放弃fluent默认的函数,直接调用自己定义的比热函数了。

    那都是很好很好的,可是我偏不喜欢。

    1 条回复 最后回复
  • 李东岳李 在线
    李东岳李 在线
    李东岳 管理员
    写于 最后由 编辑
    #3

    看起来是编程的问题 :quwan:

    http://dyfluid.com/index.html
    需要帮助debug算例的看这个 https://cfd-china.com/topic/8018

    1 条回复 最后回复
  • AstremonA 离线
    AstremonA 离线
    Astremon
    写于 最后由 编辑
    #4

    你可以用全局变量呀!

    两月三年两 1 条回复 最后回复
  • 两月三年两 离线
    两月三年两 离线
    两月三年
    在 中回复了 Astremon 最后由 编辑
    #5

    @astremon 诶,还没有朝这个方向想过,以前一直udf里面只有只有函数和常量......

    那都是很好很好的,可是我偏不喜欢。

    1 条回复 最后回复

  • 登录

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