Skip to content

Refactor reverse workflow to use single general template for version 2 #164

@sapiriscfdc

Description

@sapiriscfdc

In branch Issue161

  • One General Template for Reverse Workflow.
Version 2 now uses a single generic Jinja template that dynamically renders the entire input dictionary. No more per-node templates in v2.

  • Use workflow["version"] which set once in the full workflow object. Avoids per-node version checks.

  • Fixed Template Detection in v1 (Major Bug).
JinjaTransform no longer assumes a template field per node. The template path is now inferred from the node’s type.

  • Removed Solver-Specific Logic.

  • Removed Hardcoded Paths.

  • Removed Context Key Promotion.


Due to how PyFoam parses OpenFOAM files, there are some output format differences in the regenerated files:
1 on/off → True/False (Python-style booleans)
2 (1 2 3) → [1, 2, 3] (converted to Python lists)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions