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

driftFluxFOAM

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 25, 2024, 00:59
Default driftFluxFOAM
  #1
New Member
 
Jyothis Arumughan
Join Date: Nov 2023
Posts: 2
Rep Power: 0
JyoCFD is on a distinguished road
Hi foamers,

I was looking at incompressibleDriftFlux.C to understand how the scalar equation for alpha is solved.


void Foam::solvers::incompressibleDriftFlux:rePredict or()
{
VoFSolver:rePredictor();
alphaPredictor();

// Apply the diffusion term separately to allow implicit solution
// and boundedness of the explicit advection
{
fvScalarMatrix alpha1Eqn
(
fvm::ddt(alpha1) - fvc::ddt(alpha1)
- fvm::laplacian(momentumTransport->nut(), alpha1)
);

alpha1Eqn.solve(alpha1.name() + "Diffusion");

alphaPhi1 += alpha1Eqn.flux();
alpha2 = 1.0 - alpha1;

Info<< "Phase-1 volume fraction = "
<< alpha1.weightedAverage(mesh.Vsc()).value()
<< " Min(" << alpha1.name() << ") = " << min(alpha1).value()
<< " Max(" << alpha1.name() << ") = " << max(alpha1).value()
<< endl;
}

mixture.correct();

const dimensionedScalar& rho1 = mixture.rho1();
const dimensionedScalar& rho2 = mixture.rho2();

// Calculate the mass-flux from the accumulated alphaPhi1
rhoPhi = (alphaPhi1*(rho1 - rho2) + phi*rho2);

relativeVelocity->correct();

if (pimple.predictTransport())
{
momentumTransport->predict();
}
}

Could someone help me understand where " alpha1Eqn.solve(alpha1.name() + "Diffusion");" is detailed in the code.

The equation solved is detailed in this literature: https://doi.org/10.1016/j.apm.2019.08.008
JyoCFD 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
The alphaeqn in 2 phase incomprossible flow (driftFluxFoam) Elol OpenFOAM Running, Solving & CFD 2 March 16, 2022 13:40
driftFluxFoam viscosity model modification problem dleduc OpenFOAM Programming & Development 15 October 1, 2018 10:37
buoyantKEpsilon in driftFluxFoam randolph OpenFOAM Running, Solving & CFD 1 July 3, 2018 14:53
wall BC driftFluxFOAM Arne87 OpenFOAM Running, Solving & CFD 0 March 17, 2016 04:00
Potential bug(s) in driftFluxFoam viscosityModel code Astrodan OpenFOAM Programming & Development 0 August 11, 2014 05:13


All times are GMT -4. The time now is 18:44.