Skip to content
Snippets Groups Projects
Commit cfd7d515 authored by mattijs's avatar mattijs
Browse files

Merge branch 'master' of /home/dm4/OpenFOAM/repositories/OpenFOAM-dev

parents dda3459f fbffbdb1
No related merge requests found
......@@ -109,6 +109,16 @@ int main(int argc, char *argv[])
}
}
// - All patches which are not agglomarated are identity for finalAgglom
forAll(boundary, patchId)
{
if (finalAgglom[patchId].size() == 0)
{
finalAgglom[patchId] = identity(boundary[patchId].size());
}
}
// Sync agglomeration across coupled patches
labelList nbrAgglom(mesh.nFaces() - mesh.nInternalFaces(), -1);
......
......@@ -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));
......
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object soot;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 0 0 0 0 0];
internalField uniform 0;
boundaryField
{
".*"
{
type calculate;
}
frontAndBack
{
type empty;
}
}
// ************************************************************************* //
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment