You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, we also override the entrypoint in order to execute a bash shell. Note that all changes you make will be lost after you exit the container (except from changes in the working directory). Once in the bash you can simply use an existing or new clone of the repository to compile SU2 [the usual way](/docs_v7/Build-SU2-Linux-MacOS/), run a regression test script, or execute a specific regression test.
70
70
@@ -93,7 +93,7 @@ Instead of checking out a fresh copy of the source code, it is also possible to
93
93
```
94
94
docker run -ti --rm -v ~/Documents/SU2:/workdir/src/SU2 \
Similar to the compilation script, you can use already existing clones of the repositories by mounting them at `<workdir>/src/Tutorials`, `<workdir>/src/SU2`, `<workdir>/src/TestData` and omitting the `-t`, `-b` or `-c` option, respectively.
@@ -119,11 +119,11 @@ The following example will compile SU2 using the `build-su2` container and then
119
119
120
120
```
121
121
docker run -ti --rm -v $PWD:/workdir/ -w /workdir \
It is possible to call SU2 from python by importing it as a module. The first step is to compile SU2 with python wrapper support. For instance if your SU2 repository is in your home directory at *~/SU2*:
The python module will then be available in the installation folder *~/SU2/bin*. To make the SU2 python wrapper available from everywhere in the system, add the installation path to *PYTHONPATH*:
120
+
121
+
Usage: `export PYTHONPATH=~/SU2/bin:$PYTHONPATH`
122
+
123
+
You should now be able to call SU2 from a python file. A quick way to test this is by using the following command:
If you see the message *hello world* without any error messages, you can now try to run the pywrapper examples in the */Testcases/py_wrapper* subdirectory.
128
+
For instance the unsteady flat plate with conjugate heat transfer. Note that the configuration files are inside the SU2 repository and the meshes for the testcases are inside the Testcases repository. We recommend to copy .cfg files to the Testcases repository and run from there.
This section guides you through using the source code to run SU2GUI on your device, enabling custom changes and optimizations.
7
+
8
+
### Minimal Requirements
9
+
10
+
- Python 3
11
+
- SU2 Software
12
+
- Python Libraries listed in [requirements.txt](Link)
13
+
14
+
### Installation and Setup
15
+
16
+
Clone the source code from our [GitHub repository](Link). Navigate to the root folder and run `su2gui.py`. You can also pass additional options or create your custom terminal arguments.
This section explains how to use the configuration file and Config Tab in SU2GUI. For an overview of what a configuration file is, please refer to the [configuration file](../../docs_v7/Configuration-File/) page.
7
+
8
+
## Loading a Configuration File
9
+
SU2GUI allows users to load a configuration file through both the GUI and the terminal. Loading the file is optional, as SU2GUI will create one if the user does not provide it. Before doing so, it is necessary for the user to initialize a Case. It is recommended to load the mesh file before the configuration file to set boundary condition properties and ensure proper functionality.
10
+
11
+
**Steps to load configuration file:**
12
+
13
+
1. Start a new case and load mesh file. Follow these guides for detailed steps on [starting a new case](../Manage-Cases/#starting-a-new-case) and [loading a mesh file](../Mesh-File).
14
+
15
+
16
+
2. Click on the "Load Config File" option. 
17
+
18
+
19
+
3. In the pop-up window, choose the desired configuration file. 
20
+
21
+
22
+
4. The configuration file should now be loaded, and the properties in the GUI should be updated accordingly. 
23
+
24
+
25
+
26
+
For instructions on loading a configuration file through the terminal, refer to the guide on [ Terminal Initialization](./../Terminal-Initialization).
27
+
28
+
## Config Tab
29
+
30
+
The Config Tab allows users to analyze and modify the current state of the Configuration File. It presents the data in JSON format, which is then converted into a configuration file for SU2 when the solver is initiated.
User can add/modify Properties in configuration file using this. Place the Key in key textbox and Value in Value textbox. By default, Key is capitalised and preceding and trailing spaces are removed from the Key. Ways to add Value for property are given below:
37
+
38
+
-**Adding Float/Int**: The system attempts to convert all input into a float. If the conversion fails, it proceeds with other data types.
39
+
40
+
-**Adding Boolean**: The system recognizes "YES," "NO," "TRUE," and "FALSE" in any case (uppercase or lowercase) and stores them as boolean values.
41
+
42
+
-**Adding List**: When a list is added, it creates a list of elements and checks if each element is a digit. Below are examples of correct and incorrect list formats:
0 commit comments