BasicTools.IO.OdbReader module

Odb file reader (Abaqus result file)

BasicTools.IO.OdbReader.CheckIntegrity(GUI=False)[source]
class BasicTools.IO.OdbReader.OdbReader[source]

Bases: BaseOutputObject

Obd Reader class

ConvertInstanceToBasicTools(instance)[source]

Converts odb instance to BasicTools objects

Parameters:

instance (odb.rootAssembly.instances) – odb instance

Returns:

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

Return type:

UnstructuredMesh, 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:

UnstructuredMesh

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 ConvertInstanceToBasicTools

  • elemMap (dict) – element map generated by ConvertInstanceToBasicTools

  • res (UnstructuredMesh) – unstructured mesh generated by ConvertInstanceToBasicTools

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