.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/gallery/plot_coverage_model_basic_example.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_gallery_plot_coverage_model_basic_example.py: Arc Coverage Model (Basic) =========================== This example demonstrates the basic usage of ArcCoverageModel for gas coverage calculation without plotting, suitable for quick validation. .. GENERATED FROM PYTHON SOURCE LINES 8-46 .. rst-class:: sphx-glr-script-out .. code-block:: none ================================================== Arc Coverage Model - Gas Coverage ================================================== Coverage Fraction: 17.67 Margin: 3.334e-01 m³/s Constraint Satisfied: Yes ================================================== ✓ All gas is treated by the arc | .. code-block:: Python import openmdao.api as om from paroto.models.coverage import ArcCoverageModel # Create OpenMDAO problem prob = om.Problem() prob.model.add_subsystem("coverage", ArcCoverageModel()) prob.setup() # Set parameters for typical operating conditions prob.set_val("coverage.gap_distance", 0.01) # 10 mm prob.set_val("coverage.torch_diameter", 0.02) # 20 mm prob.set_val("coverage.pulse_frequency", 50e3) # 50 kHz prob.set_val("coverage.flow_velocity", 1.0) # 1 m/s prob.set_val("coverage.thermal_diameter", 0.003) # 3 mm arc # Run model prob.run_model() # Extract results coverage = prob.get_val("coverage.coverage_fraction")[0] margin = prob.get_val("coverage.coverage_margin")[0] satisfied = prob.get_val("coverage.coverage_constraint_satisfied")[0] print("=" * 50) print("Arc Coverage Model - Gas Coverage") print("=" * 50) print(f"Coverage Fraction: {coverage:.2f}") print(f"Margin: {margin:.3e} m³/s") print(f"Constraint Satisfied: {'Yes' if satisfied > 0.5 else 'No'}") print("=" * 50) if coverage >= 1.0: print("✓ All gas is treated by the arc") else: print(f"✗ Only {coverage * 100:.1f}% of gas is treated") print(" Increase frequency or arc diameter, or reduce velocity") .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.063 seconds) .. _sphx_glr_download_auto_examples_gallery_plot_coverage_model_basic_example.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_coverage_model_basic_example.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_coverage_model_basic_example.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_coverage_model_basic_example.zip `