ENH: renumberMesh: added Sloan renumbering

This commit is contained in:
mattijs
2012-02-21 13:00:35 +00:00
parent 245a111235
commit a0597834a9
9 changed files with 430 additions and 11 deletions

View File

@ -0,0 +1,14 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
export SLOAN_LINK_FLAGS=''
if [ -f "${FOAM_LIBBIN}/libSloanRenumber.so" ]
then
echo "Found libSloanRenumber.so -- enabling Sloan renumbering support."
export SLOAN_LINK_FLAGS="-lSloanRenumber"
fi
wmake
# ----------------------------------------------------------------- end-of-file

View File

@ -1,4 +1,5 @@
EXE_INC = \
-DFULLDEBUG -g -O0 \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/dynamicMesh/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
@ -11,4 +12,5 @@ EXE_LIBS = \
-lfiniteVolume \
-lgenericPatchFields \
-lrenumberMethods \
$(SLOAN_LINK_FLAGS) \
-ldecompositionMethods -L$(FOAM_LIBBIN)/dummy -lmetisDecomp -lscotchDecomp

View File

@ -131,9 +131,9 @@ void getBand
forAll(nIntersect, cellI)
{
for (label rowI = cellI-cellBandwidth[cellI]; rowI < cellI; rowI++)
for (label colI = cellI-cellBandwidth[cellI]; colI <= cellI; colI++)
{
nIntersect[rowI]++;
nIntersect[colI]++;
}
}
@ -598,14 +598,6 @@ int main(int argc, char *argv[])
sumSqrIntersect
);
if (band != getBand(mesh.faceOwner(), mesh.faceNeighbour()))
{
FatalErrorIn(args.executable())
<< "band:" << band
<< abort(FatalError);
}
reduce(band, maxOp<label>());
reduce(profile, sumOp<scalar>());
scalar rmsFrontwidth = Foam::sqrt

View File

@ -37,6 +37,7 @@ sortCoupledFaceCells false;
method CuthillMcKee;
//method Sloan;
//method manual;
//method random;
//method spring;
@ -47,7 +48,6 @@ method CuthillMcKee;
// reverse true;
//}
manualCoeffs
{
// In system directory: new-to-original (i.e. order) labelIOList