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

MPPICFoam and cloudSU.source() = Zero;

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By farzadmech

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 6, 2019, 13:11
Default MPPICFoam and cloudSU.source() = Zero;
  #1
Senior Member
 
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 8
farzadmech is on a distinguished road
Dear Foamers
I have a question about MPPICFoam. Why before pimple loop we put cloud.source = Zero??

cccccccccccccccccccccccccccccccccccccccccccccccccc cccccccccccccccccccc
// Update continuous phase volume fraction field
alphac = max(1.0 - kinematicCloud.theta(), alphacMin);
alphac.correctBoundaryConditions();
alphacf = fvc::interpolate(alphac);
alphaPhic = alphacf*phic;

fvVectorMatrix cloudSU(kinematicCloud.SU(Uc));
volVectorField cloudVolSUSu
(
IOobject
(
"cloudVolSUSu",
runTime.timeName(),
mesh
),
mesh,
dimensionedVector
(
"0",
cloudSU.dimensions()/dimVolume,
Zero
),
zeroGradientFvPatchVectorField::typeName
);

cloudVolSUSu.primitiveFieldRef() = -cloudSU.source()/mesh.V();
cloudVolSUSu.correctBoundaryConditions();
cloudSU.source() = Zero;

// --- Pressure-velocity PIMPLE corrector loop
while (pimple.loop())
{
#include "UcEqn.H"

// --- PISO loop
while (pimple.correct())
{
#include "pEqn.H"
}

if (pimple.turbCorr())
{
continuousPhaseTurbulence->correct();
}
}
cccccccccccccccccccccccccccccccccccccccccccccccccc cccccccccccccccccccc
H.Tofighian likes this.
farzadmech is offline   Reply With Quote

Old   February 23, 2024, 12:40
Default
  #2
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18
sharonyue is on a distinguished road
This is the explicit term, it is included in phiForce instead and goes to the pressure equation.
__________________
My OpenFOAM algorithm website: http://dyfluid.com
By far the largest Chinese CFD-based forum: http://www.cfd-china.com/category/6/openfoam
We provide lots of clusters to Chinese customers, and we are considering to do business overseas: http://dyfluid.com/DMCmodel.html
sharonyue is offline   Reply With Quote

Reply

Tags
cloudsu.source, mppicfoam, pimpleloop


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



All times are GMT -4. The time now is 15:56.