|
[Sponsors] | |||||
MPPICInterFoam how to update alpha1 and alpha2 from updated alphac? |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Member
Huan Zhang
Join Date: Nov 2020
Posts: 55
Rep Power: 7 ![]() |
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 |
|
|
|
|
|
|
|
|
#2 |
|
Member
Huan Zhang
Join Date: Nov 2020
Posts: 55
Rep Power: 7 ![]() |
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();
}
|
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Formulation in compressibleInterFoam | scttmllr | OpenFOAM Running, Solving & CFD | 74 | July 10, 2025 05:09 |