Skip to content

Commit 646c757

Browse files
committed
Fix cleanup
1 parent 8d03c1d commit 646c757

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

examples/cleanup.jl

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11

22
# delete the generated polars
3-
# this might be needed when the software or Julia have been updated
4-
# it is also useful if you want to benchmark the polar generation
3+
# it is useful if you want to benchmark the polar generation or if you have changed parameters
54

6-
file1="data/ram_air_kite_body_info.bin"
7-
file2="data/ram_air_kite_foil_polar.bin"
8-
if isfile(file1)
9-
rm(file1)
10-
end
11-
if isfile(file2)
12-
rm(file2)
13-
end
5+
file1="data/ram_air_kite_foil_cl_polar.csv"
6+
file2="data/ram_air_kite_foil_cd_polar.csv"
7+
file3="data/ram_air_kite_foil_cm_polar.csv"
8+
isfile(file1) && rm(file1)
9+
isfile(file2) && rm(file2)
10+
isfile(file3) && rm(file3)

src/polars.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ The first row contains flap deflection angles, first column contains angles of a
184184
- `matrix`: Matrix of aerodynamic coefficients
185185
- `alpha_range`: Vector of angle of attack values in radians
186186
- `delta_range`: Vector of flap deflection angles in radians
187-
- `label`: Coefficient label for the header (default: "C_l")
187+
- `label`: Coefficient label for the header
188188
"""
189189
function write_aero_matrix(filepath::String, matrix::Matrix{Float64},
190190
alpha_range::Vector{Float64}, delta_range::Vector{Float64},

0 commit comments

Comments
 (0)