Skip to content

Commit e2bc87f

Browse files
chore: Correct some typos in repo. (#4535)
## Context There were some imminent typos in some files of the codebase (mostly affecting documentation) ## Change Summary The typos were corrected. ## Rationale 'typo' was run on the code-base and some of the suggestions were implemented. ## Impact Prevent typos in documentation rendering ## In future some tool to be integrated with pre-commit to take care of these automatically like "typo', needs discussion. --------- Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 1c8e65e commit e2bc87f

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

.ci/fluent_test_runner.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ def _run_single_test(
4545
"""
4646
logging.debug(f"journal_file: {journal_file}")
4747
src_pyfluent_dir = str(Path(pyfluent.__file__).parent)
48-
verion_for_file_name = FluentVersion.current_dev().number
49-
dst_pyfluent_dir = f"/ansys_inc/v{verion_for_file_name}/commonfiles/CPython/3_10/linx64/Release/Ansys/PyFluentCore/ansys/fluent/core"
48+
version_for_file_name = FluentVersion.current_dev().number
49+
dst_pyfluent_dir = f"/ansys_inc/v{version_for_file_name}/commonfiles/CPython/3_10/linx64/Release/Ansys/PyFluentCore/ansys/fluent/core"
5050
src_gen_dir = (
5151
Path(pyfluent.__file__).parent / "ansys" / "fluent" / "core" / "generated"
5252
)
53-
dst_gen_dir = f"/ansys_inc/v{verion_for_file_name}/fluent/fluent{FluentVersion.current_dev()!r}/cortex/pylib/flapi/generated"
53+
dst_gen_dir = f"/ansys_inc/v{version_for_file_name}/fluent/fluent{FluentVersion.current_dev()!r}/cortex/pylib/flapi/generated"
5454
dst_test_dir = "/testing"
5555
working_dir = Path(dst_test_dir)
5656
parent = journal_file.parent
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Correct some typos in repo.

doc/settings_rstgen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
-- Populate a parents dictionary with current class file name (not class name) as key and list of parents file names (not class names) as value.
1010
- Recursively Generate the rst files for classes starting with settings.root.
1111
-- Add target reference as the file name for the given class. This is used by other classes to generate hyperlinks
12-
-- Add properties like members, undoc-memebers, show-inheritence to the autoclass directive.
12+
-- Add properties like members, undoc-members, show-inheritance to the autoclass directive.
1313
-- Generate the tables of children, commands, arguments, and parents.
1414
--- Get access to the respective properties and members on the class with get_attr.
1515
--- Use the file name of the child class to generate the hyperlink to that class.
1616
--- Use the __doc__ property to generate the short summary for the corresponding child
17-
--- Use the previously generated perents dict to populate the parents table.
17+
--- Use the previously generated parents dict to populate the parents table.
1818
Usage
1919
-----
2020
python <path to settings_rstgen.py>

examples/00-fluent/lunar_lander_thermal.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -665,13 +665,13 @@ def get_surf_mean_temp(
665665
)
666666

667667
# Simulate closing louvers below 273 K by changing emissivity
668-
rad_emiss = solver_session.setup.boundary_conditions.wall[
668+
radiation_emission = solver_session.setup.boundary_conditions.wall[
669669
"sc-radiator"
670670
].radiation.internal_emissivity_band["thermal-ir"]
671671
if rad_mean_temp < 273:
672-
rad_emiss.value = 0.09
672+
radiation_emission.value = 0.09
673673
else:
674-
rad_emiss.value = 0.70
674+
radiation_emission.value = 0.70
675675

676676
# Run simulation for 1 timestep
677677
solver_session.solution.run_calculation.calculate()

examples/00-fluent/modeling_ablation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
# the damaging effects of external high temperatures caused by shock wave and viscous
3535
# heating. The ablative material is chipped away due to surface reactions that remove a
3636
# significant amount of heat and keep the vehicle surface temperature below the melting
37-
# point. In this tutorial, Fluent ablation model is demonstrated for a re-entry vehicle
37+
# point. In this tutorial, Fluent ablation model is demonstrated for a reentry vehicle
3838
# geometry simplified as a 3D wedge.
3939
#
4040
# This tutorial demonstrates how to do the following:

src/ansys/fluent/core/fluent_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class MonitorThread(threading.Thread):
104104
"""A class used for monitoring a Fluent session.
105105
106106
Daemon thread which will ensure cleanup of session objects, shutdown of
107-
non-deamon threads etc.
107+
non-daemon threads etc.
108108
109109
Attributes
110110
----------

0 commit comments

Comments
 (0)