@@ -44,22 +44,22 @@ design.plot()
4444
4545## Prepare the geometry for the simulation
4646
47- The current design is only composed of the airfoil. To prepare the geometry for the simulation, it
48- is necessary that you define the domain around the airfoil. The following code creates a rectangular
47+ The current design is only composed of the airfoil. To prepare the geometry for the simulation,
48+ you must define the domain around the airfoil. The following code creates a rectangular
4949fluid domain around the airfoil.
5050
5151The airfoil has the following dimensions:
5252
5353* Chord length: 1 (X-axis)
54- * Thickness: depends on NACA value (Y-axis)
54+ * Thickness: Depends on NACA value (Y-axis)
5555
56- The fluid domain will be a large box with the following dimensions:
56+ Define the fluid domain as a large box with these dimensions:
5757
5858* Length (X-axis) - 10 times the chord length
5959* Width (Z-axis) - 5 times the chord length
6060* Height (Y-axis) - 4 times the chord length
6161
62- The airfoil will be placed at the center of the fluid domain.
62+ Place the airfoil at the center of the fluid domain.
6363
6464```{code-cell} ipython3
6565from ansys.geometry.core.math import Point2D, Plane, Point3D
@@ -83,18 +83,18 @@ fluid_sketch.box(
8383fluid = design.extrude_sketch("Fluid", fluid_sketch, BOX_WIDTH)
8484```
8585
86- ## Creating named selections
86+ ## Create named selections
8787
8888Named selections are used to define boundary conditions in Fluent. The following code creates named selections for the
8989inlet, outlet, and walls of the fluid domain. The airfoil is also assigned a named selection.
9090
91- The airfoil is aligned with the X- axis. The inlet is located at the left side of the airfoil, the outlet is located at the
91+ The airfoil is aligned with the X axis. The inlet is located at the left side of the airfoil, the outlet is located at the
9292right side of the airfoil, and the walls are located at the top and bottom of the airfoil. The inlet face has therefore
9393a negative X-axis normal vector, and the outlet face has a positive X-axis normal vector. The rest of the faces, therefore,
9494constitute the walls.
9595
9696```{code-cell} ipython3
97- # Create named selections in the fluid domain - inlet, outlet, and surrounding faces
97+ # Create named selections in the fluid domain ( inlet, outlet, and surrounding faces)
9898# Add also the airfoil as a named selection
9999fluid_faces = fluid.faces
100100surrounding_faces = []
@@ -117,8 +117,8 @@ design.create_named_selection("Airfoil Faces", faces=airfoil.faces)
117117## Display the geometry
118118
119119The geometry is now ready for the simulation. The following code displays the geometry in the notebook.
120- This example uses the ``PlotterHelper`` class to display the geometry with different opacity levels for
121- the airfoil and fluid domain, as well as different colors.
120+ This example uses the ``PlotterHelper`` class to display the geometry for
121+ the airfoil and fluid domain in different colors with a specified opacity level .
122122
123123The airfoil is displayed in blue, and the fluid domain is displayed in green with an opacity of 0.25.
124124
@@ -133,18 +133,17 @@ plotter_helper.show_plotter()
133133
134134## Export the geometry
135135
136- The geometry is now exported into a Fluent-compatible format. The following code exports the geometry
136+ Export the geometry into a Fluent-compatible format. The following code exports the geometry
137137into a PMDB file, which retains the named selections.
138138
139139```{code-cell} ipython3
140140# Save the design
141141file = design.export_to_pmdb()
142- print(f"Design saved to {file}")
142+ print(f"Design saved to {file}. ")
143143```
144144
145- The exported PMDB file can now be imported into Fluent to set up the mesh and perform the simulation.
146- An example of how to set up the mesh and boundary conditions in Fluent is provided in the following
147- PyFluent notebook: [Modeling External Compressible Flow](https://fluent.docs.pyansys.com/version/stable/examples/00-fluent/external_compressible_flow.html).
145+ You can import the exported PMDB file into Fluent to set up the mesh and perform the simulation.
146+ For an example of how to set up the mesh and boundary conditions in Fluent, see the [Modeling External Compressible Flow](https://fluent.docs.pyansys.com/version/stable/examples/00-fluent/external_compressible_flow.html) example in the Fluent documentation.
148147
149148The main difference between the Fluent example and this geometry is the coordinate system. The Fluent example
150149defines the airfoil in the XY plane, while this geometry defines the airfoil in the XZ plane.
0 commit comments