|
[Sponsors] |
add a new term in alpha1Equ in twophasesystem.C |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 20, 2020, 04:15 |
add a new term in alpha1Equ in twophasesystem.C
|
#1 |
Senior Member
|
In twophasesystem.C, the following codes are in order to solve the phase fraction, right? but why there is no convective term (alpha1*phi1)?
if (pPrimeByA_.valid()) { fvScalarMatrix alpha1Eqn ( fvm::ddt(alpha1) - fvc::ddt(alpha1) - fvm::laplacian(alpha1alpha2f()*pPrimeByA_(), alpha1, "bounded") ); alpha1Eqn.relax(); alpha1Eqn.solve(); phase1_.alphaPhi() += alpha1Eqn.flux(); } Hi everyone, I have a question that I need to add one term in phase fraction equation (alpha1Eqn), The attachment is my continuity equation. Thus, could I add the term like "fvc::laplacian(phase2.turbulence().nut/mysigma, alpha1)? Thanks for your attention. Another thing is how to use the new twophasesystem.C after I compiled it. Just include the new file into twophaseeulerfoam.C? Thanks for your attention. |
|
July 20, 2020, 10:17 |
|
#2 |
Senior Member
|
Nobody would like to give some suggestions?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to properly add a forcing term to laplaces equation? | KTG | OpenFOAM Programming & Development | 8 | February 24, 2023 01:44 |
add a term in continuity equations for twoPhaseEulerfoam | qi.yang@polimi.it | OpenFOAM Programming & Development | 0 | March 24, 2020 13:59 |
Add different source term in diffusion equation at each time step | Lewis Liang | OpenFOAM Programming & Development | 1 | June 7, 2018 10:10 |
add a source term in kEpsilon model | maurice | OpenFOAM Running, Solving & CFD | 0 | May 18, 2009 07:54 |
add a source term in incompressible k-epsilon model | maurice | OpenFOAM | 0 | May 18, 2009 01:41 |