Source code for Muscat.IO.AnsysTools

# -*- 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.
#

"""Ansys tools
"""

import Muscat.Containers.ElementsDescription as ED

PermutationAnsysToMuscat = {}
PermutationAnsysToMuscat[ ED.Tetrahedron_10 ] = [2, 0, 1, 3, 6, 4, 5, 9, 7, 8]

# conversion from Muscat Element to Anasys Finit Element
MuscatToAnsysFormulation = {}
solid3D = {}
solid3D[ED.Tetrahedron_4] = "185" # SOLID185
solid3D[ED.Hexahedron_8] = "185" # SOLID185
solid3D[ED.Hexahedron_20] = "186" # SOLID186
solid3D[ED.Tetrahedron_10] = "187" # SOLID187
MuscatToAnsysFormulation["SOLID3D"] = solid3D


solid2D = {}
solid2D[ED.Quadrangle_4] = "182" # PLANE182
solid2D[ED.Triangle_3] = "182" # PLANE182
solid2D[ED.Quadrangle_8] = "183" # PLANE183
solid2D[ED.Triangle_6] = "183" # PLANE183
MuscatToAnsysFormulation["SOLID2D"] = solid2D



[docs]def CheckIntegrity(): return "OK"