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:
@ -83,11 +83,19 @@ void Foam::pairPatchAgglomeration::setBasedEdgeWeights()
|
||||
facePairWeight_[edgeCommon] = -1.0;
|
||||
}
|
||||
}
|
||||
else if (eFaces.size() == 3)
|
||||
else
|
||||
{
|
||||
facePairWeight_.insert(edge(eFaces[1], eFaces[0]), -1.0);
|
||||
facePairWeight_.insert(edge(eFaces[2], eFaces[0]), -1.0);
|
||||
facePairWeight_.insert(edge(eFaces[1], eFaces[2]), -1.0);
|
||||
forAll(eFaces, j)
|
||||
{
|
||||
for (label k = j+1; k<eFaces.size(); k++)
|
||||
{
|
||||
facePairWeight_.insert
|
||||
(
|
||||
edge(eFaces[j], eFaces[k]),
|
||||
-1.0
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -154,11 +162,20 @@ void Foam::pairPatchAgglomeration::setEdgeWeights
|
||||
facePairWeight_[edgeCommon] = -1.0;
|
||||
}
|
||||
}
|
||||
else if (eFaces.size() == 3)
|
||||
else
|
||||
{
|
||||
facePairWeight_.insert(edge(eFaces[1], eFaces[0]), -1.0);
|
||||
facePairWeight_.insert(edge(eFaces[2], eFaces[0]), -1.0);
|
||||
facePairWeight_.insert(edge(eFaces[1], eFaces[2]), -1.0);
|
||||
// Set edge as barrier by setting weight to -1
|
||||
forAll(eFaces, j)
|
||||
{
|
||||
for (label k = j+1; k<eFaces.size(); k++)
|
||||
{
|
||||
facePairWeight_.insert
|
||||
(
|
||||
edge(eFaces[j], eFaces[k]),
|
||||
-1.0
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -200,7 +200,7 @@ void Foam::radiation::viewFactor::initialise()
|
||||
{
|
||||
sumF += Fmatrix_()[i][j];
|
||||
}
|
||||
scalar delta = 1.0 - sumF;
|
||||
scalar delta = sumF - 1.0;
|
||||
for (label j=0; j<totalNCoarseFaces_; j++)
|
||||
{
|
||||
Fmatrix_()[i][j] *= (1.0 - delta/(sumF + 0.001));
|
||||
|
||||
Reference in New Issue
Block a user