4.1.1.5.1.3. pyfem.io.GraphWriter module

class GraphWriter(props: Any, globdat: Any)[source]

Bases: BaseModule

Module for writing graph data to files and optionally displaying on screen.

Collects specified output variables at each time step and writes them to a file. Can also display real-time plots using matplotlib.

run(props: Any, globdat: Any) None[source]

Write graph data for the current simulation step.

Collects data from all configured columns and writes them to the output file. If onScreen is enabled, updates the matplotlib plot.

Parameters:
  • props – Properties dictionary (not used in this method).

  • globdat – Global data object containing current simulation state.