bim2sim.plugins.PluginOpenFOAM.test.regression package
Submodules
bim2sim.plugins.PluginOpenFOAM.test.regression.test_openfoam module
- class bim2sim.plugins.PluginOpenFOAM.test.regression.test_openfoam.RegressionTestOpenFOAM
Bases:
RegressionTestBaseClass to set up and run CFD regression tests.
- create_regression_setup()
- generate_html_diff_report(new_dir: Path, ref_dir: Path, output_html: str, context_lines: int = 5, truncate: str = None)
Recursively compare reference vs generated directories and produce an HTML report. Returns a tuple (has_diffs: bool, html_path: str).
- make_table_with_timeout(ref_lines, gen_lines, desc_from: str, desc_to: str, context_lines: int, timeout_s: float = 10.0) str | None
- run_regression_test()
- setUp()
- table_from_truncated_files(ref_lines, gen_lines, desc_from: str, desc_to: str, context_lines: int, truncated: bool)
- tearDown()
- static truncate_html_tables(table_html: str, section_html: str)
Truncate individual html tables after MAX_LINES rows.
- class bim2sim.plugins.PluginOpenFOAM.test.regression.test_openfoam.TestRegressionOpenFOAMCase(methodName='runTest')
Bases:
RegressionTestOpenFOAM,TestCaseRegression tests for PluginOpenFOAM.
- test_regression_AC20_FZK_Haus()
Run PluginOpenFOAM regression test with AC20-FZK-Haus.ifc.
- test_regression_DigitalHub_SB89()
Run PluginOpenFOAM regression test with DigitalHub.