-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed major bug with R constraint in GUI, added internal screenshot f…
…eature, added doc pictures
- Loading branch information
Showing
21 changed files
with
380 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
GUI help documentation test: | ||
GUI Help | ||
======== | ||
|
||
.. raw::html | ||
:file: gui_help/test.html | ||
This section contains tutorials and helpful hints for the pymead GUI. | ||
|
||
.. toctree:: | ||
|
||
gui_help/gui_airfoil.rst | ||
gui_help/gui_opt.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
Airfoil Generation | ||
================== | ||
|
||
The following steps show how to create and save an airfoil from the pymead GUI. | ||
|
||
Next, we will insert some ``FreePoint``\ s into the airfoil, which adds additional degrees | ||
of freedom to individual Bézier curves. To insert a ``FreePoint`` from the GUI, right-click | ||
on the desired airfoil in the Parameter Tree, which brings up a context menu as shown below: | ||
|
||
.. image:: ../images/fp_ap_menu_dark.png | ||
:align: center | ||
:class: only-dark | ||
|
||
.. image:: ../images/fp_ap_menu_light.png | ||
:align: center | ||
:class: only-light | ||
|
||
This brings up a dialog as shown below. | ||
|
||
.. image:: ../images/fp_menu_dark.png | ||
:align: center | ||
:class: only-dark | ||
|
||
.. image:: ../images/fp_menu_light.png | ||
:align: center | ||
:class: only-light | ||
|
||
Here is a description of each of the ``FreePoint`` menu items: | ||
|
||
.. list-table:: | ||
:widths: 20 80 | ||
:header-rows: 1 | ||
|
||
* - Item | ||
- Parameter | ||
* - x | ||
- Distance from the origin in the "Geometry" window along the x-axis | ||
* - y | ||
- Distance from the origin in the "Geometry" window along the y-axis | ||
* - Previous Anchor Point | ||
- Parent ``AnchorPoint`` to which this ``FreePoint`` belongs. More specifically, the ``FreePoint`` | ||
will be inserted into the Bézier curve which has this ``AnchorPoint`` as its first ``ControlPoint`` | ||
using counter-clockwise ordering. For an airfoil with no custom ``AnchorPoint``\ s, inserting this | ||
``FreePoint`` with the Previous Anchor Point set to ``"te_1"`` corresponds to adding a control | ||
point to the airfoil's upper surface, while inserting a ``FreePoint`` with the | ||
Previous Anchor Point set to ``"le"`` corresponds to adding a control point to the airfoil's | ||
lower surface. Note that ``"te_1"`` represents the upper trailing edge point, | ||
which is distinct from the lower trailing edge point in the case of an airfoil with a blunt | ||
trailing edge. | ||
* - Previous Free Point | ||
- Similar to the "Previous Anchor Point" item, this item sets the ``FreePoint`` insertion index | ||
within the Bézier curve's control point matrix using counter-clockwise ordering. The | ||
difference here is that an existing ``FreePoint`` is specified, rather than an ``AnchorPoint``. | ||
Note that if no ``FreePoint``\ s have been added yet to the Bézier curve corresponding to the | ||
``AnchorPoint`` specified by "Previous Anchor Point", ``None`` is automatically selected. | ||
|
||
.. image:: ../images/ap_menu_dark.png | ||
:align: center | ||
:class: only-dark | ||
|
||
.. image:: ../images/ap_menu_light.png | ||
:align: center | ||
:class: only-light | ||
|
||
Here is a description of each of the ``AnchorPoint`` menu items: | ||
|
||
.. list-table:: | ||
:widths: 20 80 | ||
:header-rows: 1 | ||
|
||
* - Item | ||
- Parameter | ||
* - x | ||
- Distance from the origin in the "Geometry" window along the x-axis | ||
* - y | ||
- Distance from the origin in the "Geometry" window along the y-axis | ||
* - L | ||
- Distance between the control points located immediately before and after the ``AnchorPoint`` | ||
in the counter-clockwise ordering divided by the chord length of the airfoil. | ||
* - R | ||
- Radius of curvature of the airfoil at the ``AnchorPoint`` divided by the chord length of the | ||
airfoil. | ||
* - r | ||
- Ratio of the distance between the control point immediately upstream of the ``AnchorPoint`` and | ||
the ``AnchorPoint`` itself to the distance between the control points located immediately before | ||
and after the ``AnchorPoint``\ . Here, "upstream" means after the ``AnchorPoint`` in the | ||
counter-clockwise ordering for an ``AnchorPoint`` on the upper surface and before the | ||
``AnchorPoint`` for an ``AnchorPoint`` on the lower surface. This is normally in the | ||
range :math:`[0,1]`; however, this is not enforced. | ||
* - phi | ||
- "Tilt" of the line connecting the control points immediately before and after the ``AnchorPoint``. | ||
Regardless of whether the ``AnchorPoint`` is located on the airfoil upper surface or lower surface, | ||
positive values of "phi" tilt the line toward the leading edge, while negative values of "phi" | ||
tilt the line away from the leading edge. | ||
* - psi1 | ||
- | ||
* - Previous Anchor Point | ||
- Parent ``AnchorPoint`` to which this ``FreePoint`` belongs. More specifically, the ``FreePoint`` | ||
will be inserted into the Bézier curve which has this ``AnchorPoint`` as its first ``ControlPoint`` | ||
using counter-clockwise ordering. For an airfoil with no custom ``AnchorPoint``\ s, inserting this | ||
``FreePoint`` with the Previous Anchor Point set to ``"te_1"`` corresponds to adding a control | ||
point to the airfoil's upper surface, while inserting a ``FreePoint`` with the | ||
Previous Anchor Point set to ``"le"`` corresponds to adding a control point to the airfoil's | ||
lower surface. Note that ``"te_1"`` represents the upper trailing edge point, | ||
which is distinct from the lower trailing edge point in the case of an airfoil with a blunt | ||
trailing edge. | ||
* - Previous Free Point | ||
- Similar to the "Previous Anchor Point" item, this item sets the ``FreePoint`` insertion index | ||
within the Bézier curve's control point matrix using counter-clockwise ordering. The | ||
difference here is that an existing ``FreePoint`` is specified, rather than an ``AnchorPoint``. | ||
Note that if no ``FreePoint``\ s have been added yet to the Bézier curve corresponding to the | ||
``AnchorPoint`` specified by "Previous Anchor Point", ``None`` is automatically selected. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Optimization | ||
============ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"window": { | ||
"label": { | ||
"w": "QLabel", | ||
"text": "Select window", | ||
"grid": [0, 0, 1, 1], | ||
"tool_tip": "Name of the window to screenshot" | ||
}, | ||
"combobox": { | ||
"w": "QComboBox", | ||
"addItems": ["Full Window","Parameter Tree", "Geometry", "Analysis", "Console"], | ||
"grid": [0, 1, 1, 2] | ||
} | ||
}, | ||
"choose_image_file": { | ||
"label": { | ||
"w": "QLabel", | ||
"text": "Choose image file", | ||
"grid": [1, 0, 1, 1], | ||
"tool_tip": "Choose a name for the image file (JPEG format)" | ||
}, | ||
"line": { | ||
"w": "QLineEdit", | ||
"text": "", | ||
"grid": [1, 1, 1, 1] | ||
}, | ||
"button": { | ||
"w": "QPushButton", | ||
"text": "Select", | ||
"grid": [1, 2, 1, 1], | ||
"func": "select_jpg_file" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.