Skip to content
  • 最新
  • Categories
  • 东岳流体
  • 随机看[请狂点我]
Skins
  • 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

  • Default (No Skin)
  • No Skin
Collapse
CFD中文网

CFD中文网

  1. CFD中文网
  2. OpenFOAM
  3. reactingtwophaseeulerfoam?

reactingtwophaseeulerfoam?

Scheduled Pinned Locked Moved OpenFOAM
23 Posts 2 Posters 17.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kimy
    replied to 李东岳 on last edited by
    #3

    @东岳 在 reactingtwophaseeulerfoam? 中说:

    t is a laplacian term. A positive laplacian term u

    Thanks a lot, dongyue. I check the term I implemented are both the positive and negative values. Why minus has no problem and plus occurs the problem. Sorry, what do you mean follow my step to introduce a dispersion force as source term? and Another operator is?How to split ? One thing needs to be clear, here I did not use Sp or SuSp, but do you think it will lead different results?

    1 Reply Last reply
  • K Offline
    K Offline
    kimy
    replied to 李东岳 on last edited by
    #4

    @东岳 !Picture1.png
    This is the mass conservation equation I am using. The sign of laplacian term here is minus. However, as your page http://dyfluid.com/reactingTwoPhaseEulerFoam.html in equation(24), it should be plus I think if I understand well. I am confused that the sign of source term will induce large different result or no?

    1 Reply Last reply
  • 李东岳李 Online
    李东岳李 Online
    李东岳 管理员
    wrote on last edited by 李东岳
    #5

    The source term in Eq. (24) does not come from the laplacian term. It comes from the convection term. Eq. (24) is not related to your posted equations. The laplacian terms in your posted image are turbulent dispersion terms. In OpenFOAM they are not implemented in this manner.

    9月CFD算法编程课: http://dyfluid.com/class.html

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

    K 2 Replies Last reply
  • K Offline
    K Offline
    kimy
    replied to 李东岳 on last edited by
    #6

    @东岳 If I understand well, equation (24) was changed by the sum of two mass conservation equation. However I must add that term in the mass conservation equation. So the position I implemented the laplacian term is right? The mass conservation equation shown in picture is our own equation.

    1 Reply Last reply
  • 李东岳李 Online
    李东岳李 Online
    李东岳 管理员
    wrote on last edited by
    #7

    If you sum them up, $-\nabla\cdot(\nabla\alpha_l+\nabla\alpha_s)=0$ This term disappears.

    9月CFD算法编程课: http://dyfluid.com/class.html

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

    K 1 Reply Last reply
  • K Offline
    K Offline
    kimy
    replied to 李东岳 on last edited by
    #8

    @东岳 Thanks, if the sum of that two term is zero, so there cannot exist any problem during the simulation. why I use the sign "plus", it crashed while 'minus' run well? And if I changed the phase2.turbulence.nut() to be nu() a constant, "plus" has no problem?

    1 Reply Last reply
  • 李东岳李 Online
    李东岳李 Online
    李东岳 管理员
    wrote on last edited by
    #9

    why I use the sign "plus", it crashed while 'minus' run well? And if I changed the phase2.turbulence.nut() to be nu() a constant, "plus" has no problem?

    Do you obtain physically reasonable results? or just not blowing up.

    9月CFD算法编程课: http://dyfluid.com/class.html

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

    K 1 Reply Last reply
  • K Offline
    K Offline
    kimy
    replied to 李东岳 on last edited by
    #10

    @东岳 Frankly, I use the minus sign and I got the results however they doesn't agree well with the results from PHOENICS. The velocity profile seems shift in some degree. So I would like to try "plus" this term. I am not sure the place I added is right or not. When I change one to be plus and the other to be minus, it runs well and the results seems better.

    1 Reply Last reply
  • 李东岳李 Online
    李东岳李 Online
    李东岳 管理员
    wrote on last edited by
    #11

    You cannot implement equations as you want. What you implement should obey physics. Otherwise even you get "reasonable" results, its just coincidence.

    9月CFD算法编程课: http://dyfluid.com/class.html

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

    K 2 Replies Last reply
  • K Offline
    K Offline
    kimy
    replied to 李东岳 on last edited by
    #12

    @东岳 I see. That is the reason why I post here. I wanna be sure that term should be implemented in which place. This is what I expect. Do you have any idea?

    1 Reply Last reply
  • K Offline
    K Offline
    kimy
    replied to 李东岳 on last edited by
    #13

    @东岳 I am using IPSA model (lauder and spalding). In all of equation used, the alpha term has been introduced inside.
    http://www.cham.co.uk/phoenics/d_polis/d_lecs/ipsa/ipsa.htm#11

    1 Reply Last reply
  • K Offline
    K Offline
    kimy
    replied to 李东岳 on last edited by 李东岳
    #14

    @东岳 Sorry. I am still confused that how the equation(24) mentioned in your page could be solved in OpenFoam. In the source code:

            solve
            (
                pEqnComp1() + pEqnComp2() + pEqnIncomp,
                mesh.solver(p_rgh.select(pimple.finalInnerIter()))
            );
    

    why pEqnComp1() + pEqnComp2() + pEqnIncomp ranther than - pEqnComp1() - pEqnComp2() + pEqnIncomp. Because in your equation(24), pEqnComp1() + pEqnComp2() in the right side while pEqnIncomp in the left side.

    1 Reply Last reply
  • 李东岳李 Online
    李东岳李 Online
    李东岳 管理员
    wrote on last edited by 李东岳
    #15

    Thanks for your feedback. The R.H.S. of the following equation should be a - sign. It was corrected.
    \begin{equation}\label{comp_nablaU}
    \underset{\mathrm{pEqnIncomp}}{\underbrace{\nabla\cdot\left(\alpha_\rd\bfU_\rd+\alpha_\rc\bfU_\rc\right)}}=\underset{\mathrm{\color{red}{-}pEqnComp1\color{red}{-}pEqnComp2}}{\underbrace{-\frac{\alpha_\rd}{\rho_\rd}\frac{\rD\rho_\rd}{\rD t}-\frac{\alpha_\rc}{\rho_\rc}\frac{\rD\rho_\rc}{\rD t} }}.
    \end{equation}

    What is the first term? Its a second order tensor which is not consistent with the second term (scalar).

    替代文字

    9月CFD算法编程课: http://dyfluid.com/class.html

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

    K 2 Replies Last reply
  • K Offline
    K Offline
    kimy
    replied to 李东岳 on last edited by
    #16

    @东岳 So if I wanna add the term related to the gradient alpha in the continuity equation, in which place should I put the term?

    1 Reply Last reply
  • K Offline
    K Offline
    kimy
    replied to 李东岳 on last edited by
    #17

    @东岳 Thanks, Dongyue. I am still confused that why I add the same term in the pEqnComp1 and pEqnComp2, or pEqnIncomp leads to the different results?

    1 Reply Last reply
  • 李东岳李 Online
    李东岳李 Online
    李东岳 管理员
    wrote on last edited by
    #18

    So if I wanna add the term related to the gradient alpha in the continuity equation, in which place should I put the term?

    You should implement it in the alpha equation.

    9月CFD算法编程课: http://dyfluid.com/class.html

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

    K 1 Reply Last reply
  • K Offline
    K Offline
    kimy
    replied to 李东岳 on last edited by
    #19

    @东岳 Sorry, to my knowledge alpha equation dosn't exsist in the twophaseeulerfoam? How can I realize it?

    1 Reply Last reply
  • 李东岳李 Online
    李东岳李 Online
    李东岳 管理员
    wrote on last edited by
    #20

    alpha field was solved by MULES algorithm. You can add something after MULES procedure as follows:

    solve(fvm::ddt(alpha) - fvm::laplacian(D, alpha) = fvc::ddt(alpha);
    

    9月CFD算法编程课: http://dyfluid.com/class.html

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

    K 1 Reply Last reply
  • K Offline
    K Offline
    kimy
    replied to 李东岳 on last edited by
    #21

    @东岳Thanks. however MULES is not implemented in twophaseeulerfoam. As mentioned before, the term must be added into the continuity equation rather than alpha equa, which is the Spalding's IPSA solver in PHOENICS.

    K 1 Reply Last reply
  • K Offline
    K Offline
    kimy
    replied to kimy on last edited by
    #22

    @kimy Sorry, I mean where is the MULES in the twophaseeulerfoam, which I did not find but I found MULES in the terminal during calculation.

    1 Reply Last reply

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • 最新
  • Categories
  • 东岳流体
  • 随机看[请狂点我]