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 Members List Search Today's Posts Mark Forums Read

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
Member
 
yangqi
Join Date: Mar 2019
Posts: 96
Rep Power: 3
qi.yang@polimi.it is on a distinguished road
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, 2 views)
qi.yang@polimi.it is offline   Reply With Quote

Old   July 20, 2020, 10:17
Default
  #2
Member
 
yangqi
Join Date: Mar 2019
Posts: 96
Rep Power: 3
qi.yang@polimi.it is on a distinguished road
Nobody would like to give some suggestions?
qi.yang@polimi.it is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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
how to properly add a forcing term to laplaces equation? KTG OpenFOAM Programming & Development 5 May 22, 2018 10:29
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 03:59.