turbo_moc.fluent.stage.document module#

Report content as ordered blocks, rendered to Markdown and to a print-ready HTML page and PDF.

A block is a tuple whose first item is its kind: title, kpis, h2, bullets, note, table, figure or columns. Tables and figures are numbered in rendering order.

turbo_moc.fluent.stage.document.browser()[source]#
turbo_moc.fluent.stage.document.design_conditions(results, figures)[source]#

Inlet state, rotor starting and unique incidence: blocks for the design-conditions section.

turbo_moc.fluent.stage.document.final_residuals(results)[source]#
turbo_moc.fluent.stage.document.highlights(results, lookup)[source]#
turbo_moc.fluent.stage.document.mesh_table(results)[source]#
turbo_moc.fluent.stage.document.minus(text)[source]#
turbo_moc.fluent.stage.document.number(value, spec)[source]#
turbo_moc.fluent.stage.document.performance_table(performance)[source]#
turbo_moc.fluent.stage.document.pseudo_time_rows(reports)[source]#

Final pseudo-time scale and explicit relaxation factors, when the extraction recorded them.

turbo_moc.fluent.stage.document.render_html(blocks, report_dir, text_width_mm=182.0)[source]#
turbo_moc.fluent.stage.document.render_markdown(blocks, counters=None)[source]#
turbo_moc.fluent.stage.document.report_blocks(results, figures, options)[source]#

Ordered document content for the stage report.

turbo_moc.fluent.stage.document.setup_table(results)[source]#
turbo_moc.fluent.stage.document.station_table(results)[source]#
turbo_moc.fluent.stage.document.write_documents(blocks, report_dir)[source]#
turbo_moc.fluent.stage.document.write_pdf(html_file)[source]#

Print the HTML page to PDF with a headless Chromium browser; None when no browser is installed.