mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: ideasUnvToFoam: added type 118
This commit is contained in:
@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user