ENH: ideasUnvToFoam: added type 118

This commit is contained in:
mattijs
2011-03-25 14:10:00 +00:00
parent 89e5b6ba94
commit 7cd8b41f8b

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -377,6 +377,37 @@ void readCells
cellVerts.append(cellShape(hex, cVerts, true)); cellVerts.append(cellShape(hex, cVerts, true));
cellMaterial.append(physProp); cellMaterial.append(physProp);
if (cellVerts.last().size() != cVerts.size())
{
Pout<< "Line:" << is.lineNumber()
<< " element:" << cellI
<< " type:" << feID
<< " collapsed from " << cVerts << nl
<< " to:" << cellVerts.last()
<< endl;
}
}
else if (feID == 118)
{
// Parabolic Tet
is.getLine(line);
labelList cVerts(4);
label dummy;
{
IStringStream lineStr(line);
lineStr
>> cVerts[0] >> dummy >> cVerts[1] >> dummy >> cVerts[2];
}
is.getLine(line);
{
IStringStream lineStr(line);
lineStr >> dummy>> cVerts[3];
}
cellVerts.append(cellShape(tet, cVerts, true));
cellMaterial.append(physProp);
if (cellVerts.last().size() != cVerts.size()) if (cellVerts.last().size() != cVerts.size())
{ {
Info<< "Line:" << is.lineNumber() Info<< "Line:" << is.lineNumber()