.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/multi_blade_row_batch_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_examples_multi_blade_row_batch_example.py: .. _multi_blade_row_batch_example: Multi blade row meshing example ------------------------------- This basic example shows how to set up a multi blade row meshing instance and execute it in parallel. .. GENERATED FROM PYTHON SOURCE LINES 36-40 Perform required imports ~~~~~~~~~~~~~~~~~~~~~~~~ Perform the required imports. It is assumed that the ``ansys-turbogrid-core`` package has been installed. .. GENERATED FROM PYTHON SOURCE LINES 40-46 .. code-block:: Python import os import pathlib from ansys.turbogrid.core.multi_blade_row.multi_blade_row_batch import MultiBladeRow .. GENERATED FROM PYTHON SOURCE LINES 47-50 Create and use a MultiBladeRow instance ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Create a MultiBladeRow instance, set it up for a multi blade row case and execute. .. GENERATED FROM PYTHON SOURCE LINES 50-76 .. code-block:: Python if __name__ == "__main__": # Set working directory. working_directory = os.getcwd() # NDF file for this example. # Credits for the design go to: https://www.conceptsnrec.com/home # © Copyright 2024 Concepts NREC ndf_file_name = "AxialFanMultiRow.ndf" # Build the path to the test data folder test_data_path = pathlib.PurePath(__file__).parent.parent.as_posix() test_data_path = os.path.join(test_data_path, "tests") test_data_path = os.path.join(test_data_path, "ndf") # Create a MultiBladeRow instance. mbr_instance = MultiBladeRow(working_directory, test_data_path, ndf_file_name) # Set up some settings. mbr_instance.set_spanwise_counts(56, 73) mbr_instance.set_global_size_factor(1.5) mbr_instance.set_blade_boundary_layer_offsets(6e-6) mbr_instance.write_tginit_first = True # Call the execute method to perform the meshing. mbr_instance.execute() .. _sphx_glr_download_examples_multi_blade_row_batch_example.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: multi_blade_row_batch_example.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: multi_blade_row_batch_example.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_