Commit 830076f1 by Anthony Royer

..

parent c91d487c
Pipeline #1772 passed with stage
in 1 minute 3 seconds
......@@ -1691,6 +1691,9 @@ struct Element {
#define PRISM_2 (1<<13)
#define PYRAMID_2 (1<<14)
#define QUADRANGLE_2_8N (1<<16)
#define LINE_4 (1<<17)
#define TRIANGLE_4 (1<<18)
#define TETRAHEDRON_4 (1<<19)
/* Adapt.Type */
#define P1 1
......
......@@ -124,6 +124,9 @@ struct StringXDefine Element_Type[] = {
{"Triangle2" , TRIANGLE_2},
{"Quadrangle2" , QUADRANGLE_2},
{"Quadrangle2_8N" , QUADRANGLE_2_8N},
{"Line4" , LINE_4},
{"Triangle4" , TRIANGLE_4},
{"Tetrahedron4" , TETRAHEDRON_4},
{NULL , TRIANGLE}
} ;
......
......@@ -194,6 +194,9 @@ int Geo_GetElementType(int Format, int Type)
case 13 : return PRISM_2;
case 14 : return PYRAMID_2;
case 16 : return QUADRANGLE_2_8N;
case 27 : return LINE_4;
case 23 : return TRIANGLE_4;
case 30 : return TETRAHEDRON_4;
default :
Message::Error("Unknown type of Element in Gmsh format (%d)", FORMAT_GMSH);
return -1;
......@@ -226,6 +229,9 @@ int Geo_GetElementTypeInv(int Format, int Type)
case PRISM_2 : return 13;
case PYRAMID_2 : return 14;
case QUADRANGLE_2_8N: return 16;
case LINE_4 : return 27;
case TRIANGLE_4 : return 23;
case TETRAHEDRON_4 : return 30;
default :
Message::Error("Unknown type of Element in Gmsh format");
return -1;
......@@ -256,6 +262,9 @@ int Geo_GetNbNodesPerElement(int Type)
case PRISM_2 : return 15;
case PYRAMID_2 : return 13;
case QUADRANGLE_2_8N: return 8;
case LINE_4 : return 5;
case TRIANGLE_4 : return 15;
case TETRAHEDRON_4 : return 35;
default :
Message::Error("Unknown type of Element");
return -1;
......@@ -281,6 +290,9 @@ int Geo_GetDimOfElement(int Type)
case PRISM_2 : return 3;
case PYRAMID_2 : return 3;
case QUADRANGLE_2_8N: return 2;
case LINE_4 : return 1;
case TRIANGLE_4 : return 2;
case TETRAHEDRON_4 : return 3;
default :
Message::Error("Unknown type of Element");
return -1;
......
Markdown is supported
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