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. OpenFOAM
  3. extra term twophasesystem.C

extra term twophasesystem.C

已定时 已固定 已锁定 已移动 OpenFOAM
20 帖子 4 发布者 11.5k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
回复
  • 在新帖中回复
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • 李东岳李 在线
    李东岳李 在线
    李东岳 管理员
    写于 最后由 编辑
    #3

    The equation you posted is not correct. Also, it looks like a constrain condition rather than a transport equation.

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

    K 1 条回复 最后回复
  • K 离线
    K 离线
    kimy
    在 中回复了 李东岳 最后由 kimy 编辑
    #4

    @东岳 Thanks dongyue. I am not sure you are saying which transport equation. However the equation in the image, this is the continuity equation in spalding's IPSA method and we published a lot of paper in which this equation used.

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

    替代文字

    The first term is a second rank tensor, the second term is a scalar, they are inconsistent.

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

    K 1 条回复 最后回复
  • K 离线
    K 离线
    kimy
    在 中回复了 李东岳 最后由 编辑
    #6

    @东岳 ed9efe4c-136f-45e9-8590-980ed552d851-image.png

    1 条回复 最后回复
  • K 离线
    K 离线
    kimy
    写于 最后由 编辑
    #7

    Dongyue, I understood what you mean but I also found the solution procedure of alpha transport equation in Passalacqua's paper, like following, both of them include the term of fraction gradient.
    fb85c24f-5537-4f96-84cd-cdf146f8121f-image.png

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

    @kimy You can have a look at alphaEqn of driftFluxFoam. A similar alpha equation with diffusion term was implemented.

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

    1 条回复 最后回复
  • K 离线
    K 离线
    kimy
    写于 最后由 编辑
    #9

    @东岳 在 extra term twophasesystem.C 中说:

    driftFluxFoam

    Thank you for your advice. The problem is that there is no alphaEqu.H in twophaseeulerfoam and only the code lines related to "alpha1Eqn" are given in twophasesystem.C file as I mentioned in top. I am confused that why no convective term in that equation. And after I compile this twophasesystem.C file, how can I link it to the solver file?

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

    I am confused that why no convective term in that equation.

    Don't bother with the convection term. It was handled by explicit FCT scheme. So if you manage to add the diffusion term, it should work.

    And after I compile this twophasesystem.C file, how can I link it to the solver file?

    If you modify the original file, you dont need to link it, it is linked automatically

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

    1 条回复 最后回复
  • K 离线
    K 离线
    kimy
    写于 最后由 编辑
    #11

    Really thank you. Usually, if we would like to add a new model, such as a turbulence model, we need to compile it as a user's library and then include the path "lib***" in the system/controdict. Here, I am not sure what I should do agter I compile "twophasesysterm.C".
    2bd91ed2-546f-4d37-9f0f-cdb134b09233-image.png

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

    Yes you can do it. twoPhaseSystem is a combined lib. It combines lots of class into one lib. Its difficult to explain here. I would suggest you modify the original file directly to see if it works. If it works, then you can consider to build your own lib.

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

    K 2 条回复 最后回复
  • K 离线
    K 离线
    kimy
    写于 最后由 编辑
    #13

    I see. Great!
    Grazie mille.

    1 条回复 最后回复
  • K 离线
    K 离线
    kimy
    在 中回复了 李东岳 最后由 编辑
    #14

    @东岳 Hi Dongyue, it works. Now I am trying to add it into user's library. I changed the Make/files as following and I include "libmycompressibleTwoPhaseSystem" in system/controDict, but the solver neglect it. I really don't know how to make the solver to call the modified "twophasesystem.C", or I need to change the name of "twophasesystem.C". Do you have any suggestion? Thanks.

    LIB = $(FOAM_USER_LIBBIN)/libmycompressibleTwoPhaseSystem
    
    X 1 条回复 最后回复
  • X 离线
    X 离线
    xpqiu 超神
    在 中回复了 kimy 最后由 编辑
    #15

    @kimy 在 extra term twophasesystem.C 中说:
    but the solver neglect it.

    Is there any error message, like "cannot find dynamic library..." or "duplicate entry ..." ?

    K 1 条回复 最后回复
  • K 离线
    K 离线
    kimy
    在 中回复了 xpqiu 最后由 编辑
    #16

    @xpqiu Thanks for your reply. In fact, There is no error for the compilation and simulation. I don't know how to link the new modified twophasesystem.C to the solver.

    1 条回复 最后回复
  • K 离线
    K 离线
    kimy
    写于 最后由 编辑
    #17

    Anyone has suggestion about how to link the revised twophasesystem.C to the solver as a user's library?

    1 条回复 最后回复
  • K 离线
    K 离线
    kimy
    在 中回复了 李东岳 最后由 编辑
    #18

    @东岳 Hi, dongyue. I tried many ways to reach my goal, such as create a newtwophasesystem.C (I found this file in the reactingtwophaseeulerfoam, so it should be possible to use a new one) and compile. But I still cannot link the new file to the solver if I put it in the user's library. Do you have any suggestion? Many Thanks.

    1 条回复 最后回复
  • bestucanB 离线
    bestucanB 离线
    bestucan 版主 大神
    写于 最后由 编辑
    #19

    the easy way:

    cd \$FOAM_LIBBIN/ 
    mv libcompressibleTwoPhaseSystem.so libcompressibleTwoPhaseSystem.so.bk
    cp \$FOAM_USER_LIBBIN/libmycompressibleTwoPhaseSystem.so ./libcompressibleTwoPhaseSystem.so
    

    the best best way:

    add below line in solver's Make/options file

    -L$(FOAM_USER_LIBBIN) \
    -lmycompressibleTwoPhaseSystem
    

    make sure every line have "\" end except last line.

    滚来滚去……~(~o ̄▽ ̄)~o 滚来滚去都不能让大家看出来我不是老师么 O_o

    异步沟通方式(《posting style》from wiki)(下载后打开):
    https://www.jianguoyun.com/p/Dc52X2sQsLv2BRiqnKYD
    提问的智慧(github在gitee的镜像):
    https://gitee.com/bestucan/How-To-Ask-Questions-The-Smart-Way

    1 条回复 最后回复
  • K 离线
    K 离线
    kimy
    写于 最后由 编辑
    #20

    Thanks a lot. The problem was solved.

    1 条回复 最后回复

  • 登录

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