CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

InterPhaseChangeFoam, alpha Eqn.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2019, 13:02
Default InterPhaseChangeFoam, alpha Eqn.
  #1
Member
 
Philipp
Join Date: Feb 2019
Posts: 35
Rep Power: 7
Phigo90 is on a distinguished road
Hi everyone,

I am trying to understand the equation system, which is solved by the InterCondensatingEvaporatingFoam.

First I want to understand the alphaEqn. The implemented header File ("alphaEqn.h) ist from the "interPhaseChangeFoam" (Path:$(FOAM_SOLVERS)/multiphase/interPhaseChangeFoam)).

However, first of all I try to understand the following part
Code:
  if (MULESCorr)
    {
        fvScalarMatrix alpha1Eqn
        (
            fv::EulerDdtScheme<scalar>(mesh).fvmDdt(alpha1)
          + fv::gaussConvectionScheme<scalar>
            (
                mesh,
                phi,
                upwind<scalar>(mesh, phi)
            ).fvmDiv(phi, alpha1)
          - fvm::Sp(divU, alpha1)
         ==
            fvm::Sp(vDotvmcAlphal, alpha1)
          + vDotcAlphal
        );

        alpha1Eqn.solve();

        Info<< "Phase-1 volume fraction = "
            << alpha1.weightedAverage(mesh.Vsc()).value()
            << "  Min(" << alpha1.name() << ") = " << min(alpha1).value()
            << "  Max(" << alpha1.name() << ") = " << max(alpha1).value()
            << endl;

        talphaPhi = alpha1Eqn.flux();
    }
Does anyone of you know a literature reference within which this part is explained or still better, the whole "alphaEqn.H" file?

If not, can anyone answer the following questions?:

1) Is there a difference between "fvmDdt" and "fvm::ddt". Ddt could be the material derivative (because of the capital "D"), but it does not make sense in this context.

2)The second and third part of the LHS of the alpha equation are:
Code:
+ fv::gaussConvectionScheme<scalar>
            (
                mesh,
                phi,
                upwind<scalar>(mesh, phi)
            ).fvmDiv(phi, alpha1)
          - fvm::Sp(divU, alpha1)
In my view, this lines corresponds to: div(v*alpha)-div(v)*alpha, whereby v is the velocity vector and alpha the phase fraction. With the product rule this term can be rewritten as v*grad(alpha). Is this correct? Can anyone explain this parts? In my view it should be div(v*alpha) without the third term on the RHS.

3) With the above-mentioned comments, the alphaEqn can be written in my view as:

d/dt(alpha)+v*grad(alpha)=V_cond(1-alpha)+V_vap*alpha (Note that d/dt is the partial derivation)

Do I understand this in the right manner?

Kind regards from Germany and thanks for your help!
Phigo90 is offline   Reply With Quote

Old   May 29, 2020, 07:17
Default
  #2
Member
 
Philipp
Join Date: Feb 2019
Posts: 35
Rep Power: 7
Phigo90 is on a distinguished road
I am still interested in solving this problem =)
Phigo90 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
alphaEqn.H in twoPhaseEulerFoam cheng1988sjtu OpenFOAM Bugs 15 May 1, 2016 17:12
How to solve this alpha Eqn using MULES? keepfit OpenFOAM Running, Solving & CFD 3 July 11, 2015 06:57
Implementation of Temperature Eqn in InterPhaseChangeFoam Jibran OpenFOAM Running, Solving & CFD 14 June 17, 2015 11:47
Why we subtract continuity Eqn into momentum Eqn instead of adding it? sharonyue OpenFOAM Programming & Development 7 June 4, 2015 06:20
On the alpha Eqn of VOF method when using Immersed boundary method in OpenFOAM keepfit OpenFOAM 4 January 31, 2014 15:32


All times are GMT -4. The time now is 05:42.