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

add a new term in alpha1Equ in twophasesystem.C

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2020, 04:15
Question add a new term in alpha1Equ in twophasesystem.C
  #1
Senior Member
 
kimy
Join Date: Mar 2019
Location: https://t.me/pump_upp
Posts: 164
Rep Power: 7
qi.yang@polimi.it is on a distinguished road
Send a message via ICQ to qi.yang@polimi.it Send a message via AIM to qi.yang@polimi.it Send a message via Yahoo to qi.yang@polimi.it
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.
Attached Images
File Type: png continuity equation.png (4.9 KB, 6 views)
qi.yang@polimi.it is offline   Reply With Quote

Old   July 20, 2020, 10:17
Default
  #2
Senior Member
 
kimy
Join Date: Mar 2019
Location: https://t.me/pump_upp
Posts: 164
Rep Power: 7
qi.yang@polimi.it is on a distinguished road
Send a message via ICQ to qi.yang@polimi.it Send a message via AIM to qi.yang@polimi.it Send a message via Yahoo to qi.yang@polimi.it
Nobody would like to give some suggestions?
qi.yang@polimi.it 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
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


All times are GMT -4. The time now is 04:11.