Skip to content

Commit 33e952e

Browse files
committed
Synchronize README.md and index.md
1 parent 2284849 commit 33e952e

2 files changed

Lines changed: 62 additions & 29 deletions

File tree

README.md

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,38 @@ Furthermore, the package `ControlPlots` must be installed globally:
2929
julia -e 'using Pkg; Pkg.add("ControlPlots")'
3030
```
3131

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+
3335
```bash
3436
mkdir vsm
3537
cd vsm
3638
julia --project=.
3739
```
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+
3944
```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+
4451
```julia
45-
pkg"test VortexStepMethod"
52+
(vsm) pkg> test VortexStepMethod
4653
```
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+
4860
```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")
5264
```
5365
or, for using the ControlPlots library (faster time-to-first-plot):
5466
```
@@ -99,7 +111,7 @@ Three kinds of input data is needed:
99111
- how many panels
100112
--> two sections make a panel.
101113

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.
103115

104116
### Example for defining the required input:
105117
```julia
@@ -126,12 +138,15 @@ add_section!(wing,
126138
[chord, -span/2, 0.0], # Right tip TE
127139
INVISCID)
128140

141+
# Refine the mesh
142+
refine!(wing)
143+
129144
# Step 3: Initialize aerodynamics
130145
body_aero = BodyAerodynamics([wing])
131146

132147
# Set inflow conditions
133148
vel_app = [cos(alpha), 0.0, sin(alpha)] .* v_a
134-
set_va!(wa, vel_app)
149+
set_va!(body_aero, vel_app)
135150
```
136151
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.
137152

@@ -164,4 +179,4 @@ Copyright (c) 2022 Oriol Cayon
164179

165180
Copyright (c) 2024 Oriol Cayon, Jelle Poland, TU Delft
166181

167-
Copyright (c) 2025 Oriol Cayon, Jelle Poland, Bart van de Lint, Uwe Fechner
182+
Copyright (c) 2025, 2026 Oriol Cayon, Jelle Poland, Bart van de Lint, Uwe Fechner

docs/src/index.md

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,64 +13,80 @@ The software presented here includes a couple of examples: a rectangular wing, a
1313
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).
1414

1515
## Installation
16-
Install [Julia 1.10](https://ufechner7.github.io/2024/08/09/installing-julia-with-juliaup.html)
16+
Install [Julia 1.11](https://ufechner7.github.io/2024/08/09/installing-julia-with-juliaup.html)
1717
or later, if you haven't already.
1818

1919
Before installing this software it is suggested to create a new project, for
2020
example like this:
21+
2122
```bash
2223
mkdir vsm
2324
cd vsm
2425
julia --project=.
2526
```
27+
2628
Then add VortexStepMethod from Julia's package manager, by typing `]` to enter
2729
the package manager (`pkg>` prompt), then:
28-
```
30+
31+
```julia
2932
(vsm) pkg> add VortexStepMethod
3033
```
34+
3135
Press backspace to return to the `julia>` prompt. You can run the unit tests
3236
from the `pkg>` prompt with:
33-
```
37+
38+
```julia
3439
(vsm) pkg> test VortexStepMethod
3540
```
41+
3642
You can also type `?` to enter help mode (`help?>` prompt) to look up
3743
documentation for any function.
3844

3945
To run the examples, type at the `julia>` prompt:
46+
4047
```julia
4148
julia> using VortexStepMethod
4249
julia> VortexStepMethod.install_examples()
4350
julia> include("examples/menu.jl")
4451
```
52+
4553
This copies the example scripts to an `examples/` folder and installs the
4654
required packages ([GLMakie](https://docs.makie.org/stable/), CSV, etc.).
4755

4856
## Running the examples as developer
49-
Clone the repository and use the examples project environment:
57+
If you have git installed, check out this repo because it makes it easier to understand the code:
5058
```bash
59+
mkdir repos
60+
cd repos
5161
git clone https://github.com/OpenSourceAWE/VortexStepMethod.jl
52-
cd VortexStepMethod.jl
53-
julia --project=examples
62+
cd VortexStepMethod.jl/bin
63+
./install
5464
```
55-
In the Julia package manager (press `]` for the `pkg>` prompt), install all
56-
dependencies:
65+
You can launch Julia with:
66+
```bash
67+
jl
5768
```
58-
(examples) pkg> dev .
59-
(examples) pkg> instantiate
69+
or with:
70+
```bash
71+
./bin/run_julia
6072
```
61-
Press backspace to return to the `julia>` prompt, then run the interactive
62-
menu:
73+
Then you can display a menu with the available examples using the GLMakie library:
6374
```julia
64-
julia> include("examples/menu.jl")
75+
menu()
6576
```
77+
or using the ControlPlots library (faster time-to-first-plot):
78+
```julia
79+
menu_cp()
80+
```
81+
6682
To browse the code, it is suggested to use
6783
[VSCode](https://code.visualstudio.com/) with the Julia plugin.
6884

6985
## Input
7086
Three kinds of input data is needed:
7187

7288
- The wing geometry, defined by section:
73-
- for the rectangualar wing two sections, two points in CAD reference frame + polars
89+
- for the rectangular wing two sections, two points in CAD reference frame + polars
7490
(three different options to provide them) per section
7591
- kite wing: model of polars included, n sections to define
7692

@@ -85,11 +101,13 @@ Wing geometry can also be loaded from YAML files or `.obj` files. See the exampl
85101

86102
### Example for defining the required input:
87103
```julia
104+
88105
# Step 1: Define wing parameters
89106
n_panels = 20 # Number of panels
90107
span = 20.0 # Wing span [m]
91108
chord = 1.0 # Chord length [m]
92109
v_a = 20.0 # Magnitude of inflow velocity [m/s]
110+
density = 1.225 # Air density [kg/m³]
93111
alpha_deg = 30.0 # Angle of attack [degrees]
94112
alpha = deg2rad(alpha_deg)
95113

@@ -128,7 +146,7 @@ Surfplan files can be converted to an input for `VortexStepMethod.jl` using the
128146

129147
In addition, the spanwise distribution of these and additional values are available.
130148

131-
See also the [documentation](https://opensourceawe.github.io/VortexStepMethod.jl/dev/).
149+
See also the [documentation](https://OpenSourceAWE.github.io/VortexStepMethod.jl/dev/).
132150

133151
## Citation
134152
If you use this project in your research, please consider citing it.

0 commit comments

Comments
 (0)