|
[Sponsors] |
March 15, 2019, 13:02 |
InterPhaseChangeFoam, alpha Eqn.
|
#1 |
Member
Philipp
Join Date: Feb 2019
Posts: 35
Rep Power: 7 |
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(); } 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) 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! |
|
May 29, 2020, 07:17 |
|
#2 |
Member
Philipp
Join Date: Feb 2019
Posts: 35
Rep Power: 7 |
I am still interested in solving this problem =)
|
|
|
|
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 |