4.1.1.5.1.8. pyfem.io.OutputWriter module
- class OutputWriter(props: Properties, globdat: Any)[source]
Bases:
BaseModuleOutput writer module for writing nodal data to files.
This module handles writing nodal output data to files during finite element analysis. It can write output to both files and screen, and inherits from BaseModule to provide configuration capabilities.
- prefix
Prefix for output filenames (typically globdat.prefix + “_glob”).
- Type:
str
- extension
File extension for output files (default: “.out”).
- Type:
str
- onScreen
Flag to enable/disable screen output (default: False).
- Type:
bool
- filename
Full filename for output (prefix + extension).
- Type:
str
- run(props: Properties, globdat: Any) None[source]
Execute the output writing operation.
This method is called by the solver to write nodal output data. It writes a header with the current cycle number, optionally prints nodes to screen, and always writes nodes to the output file.
- Parameters:
props – Properties object containing configuration parameters.
globdat – Global data object containing solver state, nodes, and output data. Must have: - solverStatus.cycle: Current analysis cycle number - printNodes method: Method to write nodal data
- Returns:
None