mermaid_generator#
Mermaid flowchart generator for OpenMDAO models.
This module provides utilities for generating Mermaid flowchart diagrams from OpenMDAO problems, showing model connectivity and data flow.
Attributes#
Functions#
|
Generate Mermaid flowchart from OpenMDAO problem with full introspection. |
|
Generate Mermaid flowchart from OpenMDAO problem. |
|
Generate Mermaid flowchart from simple lists. |
Module Contents#
- mermaid_generator.generate_problem_graph(prob, output_path='problem_diagram.mmd', show_intermediates=True, title='Problem Architecture')#
Generate Mermaid flowchart from OpenMDAO problem with full introspection.
This function introspects the OpenMDAO problem structure to create an accurate visualization of parameters, models, intermediate variables, and constraints.
- mermaid_generator.generate_model_graph(prob, output_path='model_diagram.mmd', title='Model Connectivity')#
Generate Mermaid flowchart from OpenMDAO problem.
- mermaid_generator.generate_simple_graph(parameters, models, constraints, output_path='model_diagram.mmd')#
Generate Mermaid flowchart from simple lists.
- mermaid_generator.params = ['V (kV)', 'e (mm)', 'd_t (mm)', 'f (kHz)', 'E_p (mJ)']#