mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of /home/dm4/OpenFOAM/repositories/OpenFOAM-dev
This commit is contained in:
@ -273,27 +273,34 @@ void Foam::MPPICCloud<CloudType>::info()
|
|||||||
|
|
||||||
tmp<volScalarField> alpha = this->theta();
|
tmp<volScalarField> alpha = this->theta();
|
||||||
|
|
||||||
Info<< " Min cell volume fraction = "
|
const scalar alphaMin = gMin(alpha().internalField());
|
||||||
<< gMin(alpha().internalField()) << endl;
|
const scalar alphaMax = gMax(alpha().internalField());
|
||||||
Info<< " Max cell volume fraction = "
|
|
||||||
<< gMax(alpha().internalField()) << endl;
|
|
||||||
|
|
||||||
label nOutside = 0;
|
Info<< " Min cell volume fraction = " << alphaMin << endl;
|
||||||
|
Info<< " Max cell volume fraction = " << alphaMax << endl;
|
||||||
|
|
||||||
forAllIter(typename CloudType, *this, iter)
|
if (alphaMax < SMALL)
|
||||||
{
|
{
|
||||||
typename CloudType::parcelType& p = iter();
|
return;
|
||||||
const tetIndices tetIs(p.cell(), p.tetFace(), p.tetPt(), this->mesh());
|
|
||||||
nOutside += !tetIs.tet(this->mesh()).inside(p.position());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
reduce(nOutside, plusOp<label>());
|
scalar nMin = GREAT;
|
||||||
|
|
||||||
if (nOutside > 0)
|
forAll(this->mesh().cells(), cellI)
|
||||||
{
|
{
|
||||||
Info<< " Number of parcels outside tets = " << nOutside << endl;
|
const label n = this->cellOccupancy()[cellI].size();
|
||||||
|
const scalar nPack = n*alphaMax/alpha()[cellI];
|
||||||
|
|
||||||
|
if (n > 0 && nPack < nMin)
|
||||||
|
{
|
||||||
|
nMin = nPack;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
reduce(nMin, minOp<scalar>());
|
||||||
|
|
||||||
|
Info<< " Min dense number of parcels = " << nMin << endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -106,7 +106,7 @@ subModels
|
|||||||
type patchInjection;
|
type patchInjection;
|
||||||
parcelBasisType fixed;
|
parcelBasisType fixed;
|
||||||
patchName upperInlet;
|
patchName upperInlet;
|
||||||
U0 (18.7939 6.8404 0);
|
U0 (18.7939 -6.8404 0);
|
||||||
nParticle 1;
|
nParticle 1;
|
||||||
parcelsPerSecond 1390885;
|
parcelsPerSecond 1390885;
|
||||||
sizeDistribution
|
sizeDistribution
|
||||||
|
|||||||
Reference in New Issue
Block a user