wolfhece.report.simplesimgpu
Create a report on a simple simulation from wolfgpu
Module Contents
- wolfhece.report.simplesimgpu.cm2pts(cm)[source]
Convert centimeters to points for PyMuPDF.
One point equals 1/72 inches.
- wolfhece.report.simplesimgpu.A4_rect()[source]
Return the A4 rectangle in PyMuPDF units.
(0, 0) is the top-left corner in PyMuPDF coordinates.
- wolfhece.report.simplesimgpu.rect_cm(x, y, width, height)[source]
Create a rectangle in PyMuPDF units from centimeters.
(0, 0) is the top-left corner in PyMuPDF coordinates.
- wolfhece.report.simplesimgpu.get_rect_from_text(text, width, fontsize=10, padding=5)[source]
Get a rectangle that fits the text in PyMuPDF units.
- Parameters:
text – The text to fit in the rectangle.
width – The width of the rectangle in centimeters.
fontsize – The font size in points.
padding – Padding around the text in points.
- Returns:
A PyMuPDF rectangle that fits the text.
- wolfhece.report.simplesimgpu.list_to_html(list_items, font_size='10pt', font_family='Helvetica')[source]
- wolfhece.report.simplesimgpu.list_to_html_aligned(list_items, font_size='10pt', font_family='Helvetica')[source]
- class wolfhece.report.simplesimgpu.SimpleSimGPU_Report(sim: wolfgpu.simple_simulation.SimpleSimulation | pathlib.Path | str, **kwargs)[source]
-
- _summary_boundary_conditions()[source]
Return the summary of the boundary conditions of the simulation
- _summary_infiltration()[source]
Return the summary of the infiltration conditions of the simulation
- _summary_initial_conditions()[source]
Return the summary of the initial conditions of the simulation
- class wolfhece.report.simplesimgpu.SimpleSimGPU_Report_wx(sim: wolfgpu.simple_simulation.SimpleSimulation | pathlib.Path | str, **kwargs)[source]
Bases:
wolfhece.report.pdf.PDFViewer
A sized frame.
Controls added to its content pane will automatically be added to the panes sizer.
- class wolfhece.report.simplesimgpu.SimpleSimGPU_Reports_wx(dir_or_sims: list[wolfgpu.simple_simulation.SimpleSimulation | pathlib.Path | str] | pathlib.Path, show: bool = True, **kwargs)[source]
List of Simple Simulations GPU
- class wolfhece.report.simplesimgpu.SimpleSimGPU_Report_Compare(sims: list[wolfgpu.simple_simulation.SimpleSimulation | pathlib.Path | str] | pathlib.Path, **kwargs)[source]
Compare Multiple Simple Simulations GPU
- _sims: list[wolfgpu.simple_simulation.SimpleSimulation][source]
- _summary_boundary_conditions()[source]
Return the summary of the boundary conditions of the simulations
- class wolfhece.report.simplesimgpu.SimpleSimGPU_Report_Compare_wx(sims: list[wolfgpu.simple_simulation.SimpleSimulation | pathlib.Path | str], **kwargs)[source]
Bases:
wolfhece.report.pdf.PDFViewer
A sized frame.
Controls added to its content pane will automatically be added to the panes sizer.