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
Copy file name to clipboardExpand all lines: README.md
+29-14Lines changed: 29 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,26 +29,38 @@ Furthermore, the package `ControlPlots` must be installed globally:
29
29
julia -e 'using Pkg; Pkg.add("ControlPlots")'
30
30
```
31
31
32
-
Before installing this software it is suggested to create a new project, for example like this:
32
+
Before installing this software it is suggested to create a new project, for
33
+
example like this:
34
+
33
35
```bash
34
36
mkdir vsm
35
37
cd vsm
36
38
julia --project=.
37
39
```
38
-
Then add VortexStepMethod from Julia's package manager, by typing:
40
+
41
+
Then add VortexStepMethod from Julia's package manager, by typing `]` to enter
42
+
the package manager (`pkg>` prompt), then:
43
+
39
44
```julia
40
-
using Pkg
41
-
pkg"add VortexStepMethod"
42
-
```
43
-
at the Julia prompt. You can run the unit tests with the command:
45
+
(vsm) pkg> add VortexStepMethod
46
+
```
47
+
48
+
Press backspace to return to the `julia>` prompt. You can run the unit tests
49
+
from the `pkg>` prompt with:
50
+
44
51
```julia
45
-
pkg"test VortexStepMethod"
52
+
(vsm) pkg>test VortexStepMethod
46
53
```
47
-
To run the examples, type:
54
+
55
+
You can also type `?` to enter help mode (`help?>` prompt) to look up
56
+
documentation for any function.
57
+
58
+
To run the examples, type at the `julia>` prompt:
59
+
48
60
```julia
49
-
using VortexStepMethod
50
-
VortexStepMethod.install_examples()
51
-
include("examples/menu.jl")
61
+
julia>using VortexStepMethod
62
+
julia>VortexStepMethod.install_examples()
63
+
julia>include("examples/menu.jl")
52
64
```
53
65
or, for using the ControlPlots library (faster time-to-first-plot):
54
66
```
@@ -99,7 +111,7 @@ Three kinds of input data is needed:
99
111
- how many panels
100
112
--> two sections make a panel.
101
113
102
-
Apart from the wing geometry there is no input file yet, the input has to be defined in the code.
114
+
Wing geometry can also be loaded from YAML files or `.obj` files. See the examples for details.
103
115
104
116
### Example for defining the required input:
105
117
```julia
@@ -126,12 +138,15 @@ add_section!(wing,
126
138
[chord, -span/2, 0.0], # Right tip TE
127
139
INVISCID)
128
140
141
+
# Refine the mesh
142
+
refine!(wing)
143
+
129
144
# Step 3: Initialize aerodynamics
130
145
body_aero =BodyAerodynamics([wing])
131
146
132
147
# Set inflow conditions
133
148
vel_app = [cos(alpha), 0.0, sin(alpha)] .* v_a
134
-
set_va!(wa, vel_app)
149
+
set_va!(body_aero, vel_app)
135
150
```
136
151
It is possible to import the wing geometry using an `.obj` file as shown in the example `ram_air_kite.jl`. During the import the polars are calculated automatically using XFoil. This approach is valid for rigid wings and ram-air kites, but not for leading edge inflatable kites.
Copy file name to clipboardExpand all lines: docs/src/index.md
+33-15Lines changed: 33 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,64 +13,80 @@ The software presented here includes a couple of examples: a rectangular wing, a
13
13
This package was translated from the Python code version 1.0.0 available at [https://github.com/ocayon/Vortex-Step-Method](https://github.com/ocayon/Vortex-Step-Method) with some extensions as documented in [News.md](https://github.com/OpenSourceAWE/VortexStepMethod.jl/blob/main/NEWS.md).
0 commit comments