From 7cd8b41f8b6a07bf66ee2008c7332dd7913ff400 Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Fri, 25 Mar 2011 14:10:00 +0000
Subject: [PATCH] ENH: ideasUnvToFoam: added type 118

---
 .../ideasUnvToFoam/ideasUnvToFoam.C           | 33 ++++++++++++++++++-
 1 file changed, 32 insertions(+), 1 deletion(-)

diff --git a/applications/utilities/mesh/conversion/ideasUnvToFoam/ideasUnvToFoam.C b/applications/utilities/mesh/conversion/ideasUnvToFoam/ideasUnvToFoam.C
index c896283e1e6..4e9559a6d1b 100644
--- a/applications/utilities/mesh/conversion/ideasUnvToFoam/ideasUnvToFoam.C
+++ b/applications/utilities/mesh/conversion/ideasUnvToFoam/ideasUnvToFoam.C
@@ -2,7 +2,7 @@
   =========                 |
   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
    \\    /   O peration     |
-    \\  /    A nd           | Copyright (C) 2004-2010 OpenCFD Ltd.
+    \\  /    A nd           | Copyright (C) 2004-2011 OpenCFD Ltd.
      \\/     M anipulation  |
 -------------------------------------------------------------------------------
 License
@@ -377,6 +377,37 @@ void readCells
             cellVerts.append(cellShape(hex, cVerts, true));
             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())
             {
                 Info<< "Line:" << is.lineNumber()
-- 
GitLab