Average histories in the element nodes for each nodal variable originally requested in elements.
dump_to_vtk(filename, output_filename_trunk=None, step0=0, steps=None, fields=None, linearization=None)¶
Dump a multi-time-step results file into a sequence of VTK files.
extract_time_history(filename, extract, verbose=True)¶
Extract time history of a variable from a multi-time-step results file.
The name of file to extract from.
The description of what to extract in a string of comma-separated description items. A description item consists of: name of the variable to extract, mode (‘e’ for elements, ‘n’ for nodes), ids of the nodes or elements (given by the mode). Example: ‘u n 10 15, p e 0’ means variable ‘u’ in nodes 10, 15 and variable ‘p’ in element 0.
The time histories in a dict with variable names as keys. If a nodal variable is requested in elements, its value is a dict of histories in the element nodes.
- tsTimeStepper instance
The time stepping information.
Read true time step data from individual time steps.
The time steps.
The times of the time steps.
The normalized times of the time steps, in [0, 1].
The true time deltas.
Given a vector of times in seconds, return suitable time units and new vector of times suitable for plotting.
The vector of times in seconds.
The vector of times in units.
The time units.
save_time_history(ths, ts, filename_out)¶
Save time history and time-stepping information in a HDF5 file.