# -*- coding: utf-8 -*-
#
# This file is subject to the terms and conditions defined in
# file 'LICENSE.txt', which is part of this source code package.
#
"""Gmsh tools
"""
import Muscat.Containers.ElementsDescription as ED
gmshName = {}
gmshName[ED.Bar_2] = '1'
gmshName[ED.Triangle_3] = '2'
gmshName[ED.Quadrangle_4] = '3'
gmshName[ED.Tetrahedron_4] = '4'
gmshName[ED.Hexahedron_8] = '5'
gmshName[ED.Wedge_6] = '6'
gmshName[ED.Pyramid_5] = '7'
gmshName[ED.Bar_3] = '8'
gmshName[ED.Triangle_6] = '9'
gmshName[ED.Quadrangle_9] = '10'
gmshName[ED.Tetrahedron_10] = '11'
gmshName[ED.Point_1] = '15'
gmshName[ED.Quadrangle_8] = '16'
gmshName[ED.Hexahedron_20] = '17'
gmshName[ED.Wedge_15] = '18'
gmshName[ED.Pyramid_13] = '19'
gmshNumber = {}
gmshNumber['1'] = ED.Bar_2
gmshNumber['2'] = ED.Triangle_3
gmshNumber['3'] = ED.Quadrangle_4
gmshNumber['4'] = ED.Tetrahedron_4
gmshNumber['5'] = ED.Hexahedron_8
gmshNumber['6'] = ED.Wedge_6
gmshNumber['7'] = ED.Pyramid_5
gmshNumber['8'] = ED.Bar_3
gmshNumber['9'] = ED.Triangle_6
gmshNumber['10'] = ED.Quadrangle_9
gmshNumber['11'] = ED.Tetrahedron_10
gmshNumber['15'] = ED.Point_1
gmshNumber['16'] = ED.Quadrangle_8
gmshNumber['17'] = ED.Hexahedron_20
gmshNumber['18'] = ED.Wedge_15
gmshNumber['19'] = ED.Pyramid_13
PermutationGmshToMuscat = {}
PermutationGmshToMuscat[ED.Tetrahedron_10] = [2, 0, 1, 3, 6, 4, 5, 8, 7, 9]
PermutationGmshToMuscat[ED.Hexahedron_20] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 13, 9, 16, 18, 19, 17, 10, 12, 14, 15]
PermutationGmshToMuscat[ED.Wedge_15] = [0, 1, 2, 3, 4, 5, 6, 9, 7, 12, 14, 13, 8, 10, 11]
PermutationGmshToMuscat[ED.Pyramid_13] = [0, 1, 2, 3, 4, 5, 8, 10, 6, 7, 9, 11, 12]
[docs]def CheckIntegrity():
return "OK"