Muscat.IO.AnsysReader module

Ansys Workbench Mechanical input file reader

class AnsysReader[source]

Bases: ReaderBase

Ansys Reader class

GetIterator()[source]
Read(fileName=None, string=None, out=None)[source]

Function that performs the reading of an Ansys result file

Parameters:
  • fileName (str, optional) – name of the file to be read, by default None

  • string (str, optional) – data to be read as a string instead of a file, by default None

  • out (Mesh, optional) – output unstructured mesh object containing reading result, by default None

Returns:

output unstructured mesh object containing reading result

Return type:

Mesh

CheckIntegrity()[source]
class InputContextManager(reader)[source]

Bases: object

class InputIterator(reader)[source]

Bases: object

ReadAnsys(fileName: str = '', string: str = '', out=None, **kwargs)[source]

Function API for reading an Ansys result file

Parameters:
  • fileName (str, optional) – name of the file to be read, by default “”

  • string (str, optional) – data to be read as a string instead of a file, by default None

  • out (Mesh, optional) – output unstructured mesh object containing reading result, by default None

Returns:

output unstructured mesh object containing reading result

Return type:

Mesh

class Session(iterator, out=None)[source]

Bases: object

GetMesh()[source]
ParseAssignment(args)[source]
ParseCMDefinition(args)[source]
ParseCS(args)[source]
ParseEMODIF(args)[source]
ParseElementBlock(args)[source]
ParseElementTypeDefinition(args)[source]
ParseElementTypeSelection(args)[source]
ParseEselDefinition(args)[source]
ParseGet(args)[source]
ParseLocal(args)[source]

Defines a local coordinate system by a location and orientation. https://www.mm.bme.hu/~gyebro/files/ans_help_v182/ans_cmd/Hlp_C_LOCAL.html

local,19,0,1.00000000000001,3.,3.,90.00000010284,-3.47873168682575e-013,90.0000001028399

ParseN(args)[source]
ParseNodeBlock(args)[source]
ParseTagDefinition(args)[source]
ParseUnblockedElement(args)[source]
ReadEblock(data_parser, max_element_count)[source]
ReadNonSolidEblock(max_element_count)[source]
ReadSolidEblock(max_element_count)[source]
discriminate_shell181(nodes)[source]
discriminate_solid185(nodes)[source]
discriminate_solid186(nodes)[source]
discriminate_solid187(nodes)[source]
discriminate_tri_or_quad(nodes)[source]