|
[Sponsors] |
July 4, 2016, 12:37 |
|
#21 |
Senior Member
Join Date: Jan 2013
Posts: 372
Rep Power: 14 |
Hi All,
I read the pEqn.H in twoPhaseEulerFoam and have some questions. The openFOAM version is 3.0.0. https://github.com/OpenFOAM/OpenFOAM...Foam/pU/pEqn.H 1, in lines 132 and 141, there are the following source code lines: Code:
- alphaf2*fvc::interpolate(rho1 - rho2)*(g & mesh.Sf()) Code:
- alphaf1*fvc::interpolate(rho2 - rho1)*(g & mesh.Sf()) 2, the pressure "diffusivity" is constructed in line 215, this can be understood since finally the pressure equation has the term of \nabla (\Gamma \nabla p). \Gamma is the "diffusivity", and is predicted with Code:
mag(alphaf1*alpharAUf1 + alphaf2*alpharAUf2) 3, Could anybody give some hints about what is the following lines doing? What does pEqnComp1 stand for? Code:
pEqnComp1 = ( contErr1 - fvc::Sp(fvc::ddt(alpha1) + fvc::div(alphaPhi1), rho1) )/rho1 + (alpha1*psi1/rho1)*correction(fvm::ddt(p_rgh)); Code:
solve ( pEqnComp1() + pEqnComp2() + pEqnIncomp, mesh.solver(p_rgh.select(pimple.finalInnerIter())) ); Code:
while (pimple.correctNonOrthogonal()) {.... } Thank you so much for your help. OFFO |
|
August 17, 2016, 07:30 |
|
#22 |
New Member
Nicoḷ Scapin
Join Date: Apr 2016
Posts: 15
Rep Power: 10 |
Any answer? I have similar doubts.
Thanks in advance. |
|
September 6, 2016, 05:50 |
|
#23 |
Senior Member
Join Date: Jan 2013
Posts: 372
Rep Power: 14 |
Dear Gerhard,
In the twoPhaseEulerFoam, do you have experience to include the radiation model for both phases or for the primary phase? I am considering the possibility of this and need to decide how to proceed. If you have some comments about it, I would really appreciate it. Thank you so much. |
|
May 11, 2017, 06:37 |
|
#24 |
Senior Member
Join Date: Jan 2013
Posts: 372
Rep Power: 14 |
I am using reactingTwoPhaseEulerFoam for simulating particle-laden gas flows with chemical reaction. The Openfoam version is 3.0.1. In this solver, the UEqn, heEqn and YiEqn are written in source files for phaseModel, i.e.
UEqn ---> MovingPhaseModel.C YiEqn ---> MultiComponentPhaseModel.C heEqn ---> AnisothermalPhaseModel.C So when the solver is running, these functions will be called, and then momentum, energy and species mass fraction equations are constructed. In the /phaseModel, there are many classes for phaseModel, however, each model is inherited from BasePhaseModel in a public way. So, what are the relations between these classes for phaseModel in the folder /phaseModel? They are completely parallel, or they are inherited from some others in this folder? Not clear for me now. Anybody knows? Thanks. |
|
July 18, 2017, 15:42 |
|
#25 | |
Member
Hooman
Join Date: Apr 2011
Posts: 35
Rep Power: 15 |
Quote:
Thank you for the tutorial. I had a question, what are phasePressureCoeffs? I have been through so many different documents but no luck yet. For example, if the g0 is found via SinclairJackson, then what is the point of defining a new constant for it? The default is 1000. How do we calculate this? Thank you, |
||
June 6, 2019, 08:43 |
|
#26 | |
New Member
Siqi Ma
Join Date: May 2019
Location: Germany
Posts: 4
Rep Power: 6 |
Quote:
Heyyy, I have the same questions about the residuals of momentum equation. Have you get the residuals and iterations of alpha or velocity? It seems that the momentum equation is not solved... only used as a Momentumpredictor before PIMPLE loop to deal with pressure and velocity coupling... thanks a lot |
||
July 21, 2020, 09:32 |
|
#27 |
Senior Member
|
Hi guys, I have a question that after I changed the twophasesystem.C and compiled it, as the Make/files like "LIB = $(FOAM_USER_LIBBIN)/libmycompressibleTwoPhaseSystem". I include this code in system/controDict. However, the solver neglected it and still used the original twophasesystem.C. If I Make/files like "LIB = $(FOAM_LIBBIN)/libcompressibleTwoPhaseSystem", it surely works. I need to make it into user's library. Do you have any suggestion? Thanks a lot.
|
|
May 2, 2022, 03:00 |
|
#28 |
Member
Huan Zhang
Join Date: Nov 2020
Posts: 55
Rep Power: 5 |
Dear openfoammaofnepo,
Hope all is well! I know this thread is long time ago, but I am also confused with the pressure "diffusivity" in twoPhaseEulerFoam. It should be exactly what you wrote: alpha_1/(rho_1*A_1) + alpha_2/(rho_2*A_2), but the code reads, mag(alphaf1*alpharAUf1 + alphaf2*alpharAUf2), where alpharAUf1 is defined as alpha1f*A_1, which is not consistent with the equation, have you managed this question? Kind regards, Jasper |
|
March 30, 2024, 18:21 |
|
#29 |
New Member
Oscar Zagal
Join Date: Jan 2024
Posts: 10
Rep Power: 2 |
Hi dear all
I saw that knowing the entire code of this solver is very difficult, my question is: why don't the creators of the solver post a description of the goberning equations and other stuff like the pressure diffusivity? I know that OpenFOAM is free, but at least a brief description would be very nice. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
TwoPhaseEulerFoam high courant number | mwaqas | OpenFOAM Running, Solving & CFD | 11 | July 11, 2017 14:19 |
twoPhaseEulerFoam fvOptions for alpha | lavdwall | OpenFOAM Running, Solving & CFD | 8 | October 19, 2015 09:57 |
TwoPhaseEulerFoam alpha "ripples" | MichaelB88 | OpenFOAM Running, Solving & CFD | 1 | July 9, 2015 04:20 |
twoPhaseEulerFoam BC calculated from wall shear and alpha | potac | OpenFOAM Running, Solving & CFD | 0 | October 6, 2014 08:08 |
about bounded alpha equation for bubbleFoam and twoPhaseEulerFoam | kaifu | OpenFOAM | 2 | May 6, 2011 05:33 |