|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Jyothis Arumughan
Join Date: Nov 2023
Posts: 2
Rep Power: 0 ![]() |
Hi foamers,
I was looking at incompressibleDriftFlux.C to understand how the scalar equation for alpha is solved. void Foam::solvers::incompressibleDriftFlux: ![]() { VoFSolver: ![]() 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 |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
The alphaeqn in 2 phase incomprossible flow (driftFluxFoam) | Elol | OpenFOAM Running, Solving & CFD | 2 | March 16, 2022 12:40 |
driftFluxFoam viscosity model modification problem | dleduc | OpenFOAM Programming & Development | 15 | October 1, 2018 09:37 |
buoyantKEpsilon in driftFluxFoam | randolph | OpenFOAM Running, Solving & CFD | 1 | July 3, 2018 13:53 |
wall BC driftFluxFOAM | Arne87 | OpenFOAM Running, Solving & CFD | 0 | March 17, 2016 03:00 |
Potential bug(s) in driftFluxFoam viscosityModel code | Astrodan | OpenFOAM Programming & Development | 0 | August 11, 2014 04:13 |