simloadopts.py

class SimLoadOpts(delimiter=',', coord_header=0, time_header=0, connect_header=None, glob_header=0, node_field_header=0, elem_field_header=0, workers=None)[source]

Bases: object

Dataclass of options for loading simulation data from plain delimited text files.

delimiter

Delimiter used to separate values in the plain text files to read.

coord_header

Row indices to skip reading when loading plain text for the coordinate data file. Defaults to 0 which skips the first row as a header.

time_header

Row indices to skip reading when loading plain text for the time data file. Defaults to 0 which skips the first row as a header.

connect_header

Row indices to skip reading when loading plain text for the connectivity data files. Defaults to 0 which skips the first row as a header.

__init__(delimiter=',', coord_header=0, time_header=0, connect_header=None, glob_header=0, node_field_header=0, elem_field_header=0, workers=None)
glob_header

Row indices to skip reading when loading plain text for the global variable data file. Defaults to 0 which skips the first row as a header.

node_field_header

Row indices to skip reading when loading plain text for the nodal variables data files. Defaults to 0 which skips the first row as a header.

elem_field_header

Row indices to skip reading when loading plain text for the element variables data files. Defaults to 0 which skips the first row as a header.

workers

Number of threads (i.e. multi-processing processes) to use when reading data files. Useful for reading many large data files in parallel. Defaults to None which is single threaded.