4.1.1.1.1.2. pyfem.core.cli module
Command-line entry point for running a PyFEM analysis.
This module provides the main function used by the console script to initialize input/output managers and the selected solver and then execute the analysis loop until completion.
The function intentionally keeps orchestration logic minimal: input parsing and object factories are delegated to InputReader, Solver and OutputManager.
- main(argv: list[str] | None = None) None[source]
Run a PyFEM analysis from the command line.
- Parameters:
argv – Optional list of command-line arguments. If None, the program will use sys.argv. The actual parsing and interpretation of the arguments is performed by InputReader so main simply forwards the arguments to that component.
Notes
This function is an orchestration entry point; it does not perform any heavy computation itself. The created props and globdat objects are used to instantiate the Solver and OutputManager which perform the analysis and output duties respectively.