|
[Sponsors] |
MPPICInterFoam how to update alpha1 and alpha2 from updated alphac? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 27, 2022, 06:57 |
MPPICInterFoam how to update alpha1 and alpha2 from updated alphac?
|
#1 |
Member
Huan Zhang
Join Date: Nov 2020
Posts: 55
Rep Power: 6 |
Dear all, I am looking at the creatFields.H in MPPICInterFoam, a part of the codes are shown below:
Code:
volScalarField alphac ( IOobject ( "alphac", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE ), mesh, dimensionedScalar(dimless, Zero), zeroGradientFvPatchScalarField::typeName ); alphac.oldTime(); volScalarField alphacRho(alphac*rho); alphacRho.oldTime(); Info<< "Constructing kinematicCloud " << endl; basicKinematicMPPICCloud kinematicCloud ( "kinematicCloud", rho, U, mu, g ); // Particle fraction upper limit scalar alphacMin ( 1.0 - ( kinematicCloud.particleProperties().subDict("constantProperties") .get<scalar>("alphaMax") ) ); // Update alphac from the particle locations alphac = max(1.0 - kinematicCloud.theta(), alphacMin); alphac.correctBoundaryConditions(); Thanks for your help, Jasper |
|
April 28, 2022, 05:27 |
|
#2 |
Member
Huan Zhang
Join Date: Nov 2020
Posts: 55
Rep Power: 6 |
After looking at the alphaEqn.H, alpha1 can be calculated via the following codes:
Code:
else { alphaPhi10 = talphaPhi1Un; MULES::explicitSolve ( alphac, alpha1, phiCN, alphaPhi10, Sp, (Su + divU*min(alpha1(), scalar(1)))(), oneField(), zeroField() ); } alpha2 = 1.0 - alpha1; mixture.correct(); } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Formulation in compressibleInterFoam | scttmllr | OpenFOAM Running, Solving & CFD | 72 | June 26, 2023 08:42 |