spectre.Visualization.Render3D.Domain¶
Functions
|
Renders a 3D domain with elements and grid lines |
- spectre.Visualization.Render3D.Domain.render_domain(xmf_file: str, output: str, hi_res_xmf_file: str | None = None, time_step: int = 0, animate: bool = False, zoom_factor: float = 1.0, camera_theta: float = 0.0, camera_phi: float = 0.0, clip_origin: tuple[float, float, float] = (0.0, 0.0, 0.0), clip_normal: tuple[float, float, float] = (0.0, 0.0, 1.0), slice: bool = False)¶
Renders a 3D domain with elements and grid lines
This rendering is a starting point for visualizations of the domain geometry, e.g. for publications.
XMF_FILE is the path to the XMF file that references the simulation data. It is typically generated by the ‘generate-xdmf’ command. You can also provide a second XMF file with higher resolution data, which is used to render the outlines of elements to make them smoother.