Muscat.IO.OdbReader module

Odb file reader (Abaqus result file)

CheckIntegrity(GUI: bool = False)[source]
class OdbReader[source]

Bases: object

Obd Reader class

ConvertInstanceToMuscat(instance)[source]

Converts odb instance to Muscat objects

Parameters:

instance (odb.rootAssembly.instances) – odb instance

Returns:

conversion of the odb instance in objects that can be handled by Muscat

Return type:

Mesh, dict, dict

GetActiveFrame()[source]

Returns odb active frame

Returns:

active frame

Return type:

odb.steps.frames

GetAvailableTimes()[source]

Returns the reading time

Returns:

reading time

Return type:

int

Open()[source]

Opens odb object using odbAccess

Returns:

odb object

Return type:

Odb

Read()[source]

Function that performs the reading of an odb file

Returns:

output unstructured mesh object containing reading result

Return type:

Mesh

ReadFieldWithMapElement(entityMap, field, s1, s2, mesh)[source]
ReadFieldWithMapNode(entityMap, field, s1, s2)[source]
ReadFields(nodeMap, elemMap, res)[source]

Function that reads the fields defined in an odb file

Parameters:
  • nodeMap (dict) – node map generated by ConvertInstanceToMuscat

  • elemMap (dict) – element map generated by ConvertInstanceToMuscat

  • res (Mesh) – unstructured mesh generated by ConvertInstanceToMuscat

Returns:

fields read from an odb file

Return type:

dict, dict

ReadMetaData(odb=None)[source]

_summary_

Parameters:

odb (Odb, optional) – obd object handled by odbAccess, by default None

Returns:

metadata: time and stepData

Return type:

float, list

Reset()[source]

Resets the reader (field name, instance number, TimeToRead, time and stepata)

SetFieldsNamesToRead(val)[source]

Sets field name to read

Parameters:

val (str) – field name to read

SetFileName(fn)[source]

Sets fileName

Parameters:

fn (str) – fileName to set

SetIntanceNumberToRead(i)[source]

Sets instance number to read

Parameters:

i (int) – instance number to read

SetTimeToRead(time, timeIndex=None)[source]

Sets time to read

Parameters:
  • time (float) – time at which the data are read

  • timeIndex (int, optional) – time index to read, by default None