le

[en] [fr] [ru]


LEPARAGLIDING 3.15
PRE-PROCESSOR OF GEOMETRY 1.6 (OPTIONAL)



GEOMETRY PRE-PROCESSOR for use with leparagliding.txt input file of LEparagliding
Version 1.0 "Kemerovo" (2013-06-16)
Version 1.1 "Kemerovo" (2013-06-24)
Version 1.2 "Gurzuf" (2015-09-05)
Version 1.3 "Utah" (2016-04-17)
Version 1.4 "Escaules" (2016-08-24)
Version 1.5 "Baldiri" (2018-12-07)
Version 1.6 "Canigó" (2021-01-17)

1. INTRODUCTION
2. DESCRIPTION OF THE INPUT DATA FILE pre-data.txt
3. EXAMPLE OF A TYPICAL INPUT DATA FILE pre-data.txt (version 1.6):
4. RUN THE PROGRAM
5. RESULTS
6. MORE NOTES AND FIGURES

1. INTRODUCTION

This
preprocessor is an optional module
(but very useful) for use with LEparagliding. Only serves to help generate the geometry matrix of the wing, which can also be generated by drawing directly into a CAD program or even manually with pencil and paper. Its main application is in the definition of paragliders with many cells, where there is a lot of manual work definition. To generate complex geometries (different from normal) is always necessary manual labor, but the array generated can serve as a basis.

BASIC INSTRUCTIONS:

INPUT FILE:

    pre-data.txt 

Fill in the data file with the geometric parameters (
details below) that define the main curves of the wing, leading edge, trailing edge, and main vault.
Choose and define a distribution of cells along span.


OUTPUT FILES:

    geometry.dxf --> DXF containig planview, and distribution of cells, main vault

    geometry-out.txt --> TXT file containig matrix of geometry for use with LEparagliding input file leparagliding.txt section 1. GEOMETRY
                                       Auxiliar geometry matrix for use with LEparagliding 2.2:
                                       Rib    x-rib      y-LE       y-TE       xp    z    beta      RP        Washin


SOURCE CODE:

    pre-processor.f --> GNU Fortran source code

EXECUTABLE FILES:

    pre-1.6.exe (windows version, use with cygwin dll's in the same directory)

    pre-1.6.out (GNU/Linux)

    Download all files and executable here:


Linux

 pre-processor1.6-lin64.zip

 Compiled for Linux 64bit

Windows

pre-processor1.6-win64.zip

Compiled for Windows 64bit

Mac

pre-processor1.6-mac.zip

Help me to compile!



2. DESCRIPTION OF THE INPUT DATA FILE pre-data.txt

The leading edge section looks like:

**********************************
* 1. Leading edge parameters
**********************************
1
a1= 641.92
b1= 194.02
x1= 340
x2= 490
xm= 527
c01= 28
ex1= 2.8
c02= 12
ex2= 4.0

Explanation: The first "1" means defining a leading edge type 1. The leading edge is defined by an ellipse (x*x/(a1*a1))+(y*y/(b1*b1))=1 of horizontal semiaxis a1 and vertical semiaxis b1. Ellipse centered at the point (0,0), and xm is half span. Is possible to modify the ellipse shape with two exponetial corrections. The first correction begins at the point x1 and allows a deflection c01, according the formula y=k1*(x-x1)^ex1 where (k1=c01/((xm-x1)^ex1).The second correction begins at the point x2 and allows a deflection c02, according the formula y=k2*(x-x2)^ex2 where (k2=c02/((xm-x2)^ex2).

1.5
Figure 1. Leading edge and trailing edge definition and corrections in pre-processor version >= 1.5

The trailig edge section:

**********************************
* 2. Trailing edge parameters
**********************************
1
a1= 643.28
b1= 140.5
x1= 180
xm= 527
c0= -8.9
y0= 88.06
exp= 1.5

Explanation: The first "1" means defining a trailing edge type 1. The trailing edge is defined by an ellipse (x*x/(a1*a1))+(y*y/(b1*b1))=1 of horizontal semiaxis a1 and vertical semiaxis b1. Ellipse centered at the point (0,y0), and xm is half span. Is possible to modify the ellipse shape with one exponetial correction. The correction begins at the point x1 and allows a deflection c0, according the formula y=k*(x-x1)^ex1 where (k=c0/((xm-x1)^exp).

The vault section (type 1):

**********************************
* 3. Vault
**********************************
1
a1= 414.2901
b1= 237.4300
x1= 265.3489
c1= 28.22

Explanation: The first "1" means defining a vault type 1. The vault of the wing is defined by means of an ellipse, of horizontal semiaxis a1 and vertical semiaxis b1, with a cosenoidal modification starting from the point x1, which allows a positive or negative horizontal deflection c. The formula is a bit tricky, but it works! :) See diagrams and formula in the website manual.

The vault section (type 2):

**********************************
* 3. Vault
**********************************
2
640.56    20.35
480.47    21.367
229.50    18.925
99.26     28.349

Explanation: The first "2" means defining a trailing edge type 2. This type is more intuitive. It consists of defining the shape of the vault by means of 4 arcs of circle, tangent to each other. Each of the four lines listed below defines the radius of the arc and its angle with respect to its center, starting from the center toward the wingtip. The program ensures that the 4 arcs are tangent to each other. See website figures to better understand.

The general scale of the vault type 1 or type 2 does not matter, since the program is in charge internally to adjust the development of the arc, so that it matches exactly with the wingspan 2*xm.

The cells distribution section (4 cases):

Cells distribution type 1:

**********************************
* 4. Cells distribution
**********************************
1
45

If first number is "1", put below the total number of cells, and an uniform cells distribution is set (all cells have same width: 2*xm/numcells).

Cells distribution type 2:

**********************************
* 4. Cells distribution
**********************************
2
0.7
40

If first number is "2" then a linear cells distribution is set. Put below a coefficient between "0.0" and "1.0", and below the total number of cells. Cells width are linearly reduced according distance from center tot wingtip. If coeeficient is set to 1.0, then the distribuition is uniform, is set to 0.0 the width of last cell is minimum.

Cells distribution type 3:

**********************************
* 4. Cells distribution
**********************************
3
0.3
33

If first number "3" indicates cell width proportional to chord. Second number is a coefficient between "0.0" and "1.0". If coefficient is "0" then cell width is estrictly proportional to the local chord. If coefficient is set to "1.0", then cell width is uniform. Use intermediate values as you need. Third number is the total cells number.

Cells distribution type 4:

**********************************
* 4. Cells distribution
**********************************
4
17
1     38
2     38
3     38
4     38
5     38
6     37
7     37
8     37
9     36
10    35
11    35
12    30
13    28
14    27
15    25
16    24
17    20.2

If first number is "4" then we use explicit width of each cell (cm), with automatic adjustement. If the total widts sum not match the span, the widts are autoatically scaled to match te total wingspan 2*xm. The second number is the "total ribs number in half-wing". We define the widths of each cell only half-wing, counting ribs from the center to the wingtip. If the total number of cells is odd, the central cell will be the number 1, the next the 2, and so on until the wingtip, we will indicate the widths in cm. If the total number of cells in our wing is even, we will consider a central virtual cell of zero width, so the first line of the list will be will be "1  0.0". It is necessary for the program logic to detect that it is a paraglider with a total number of cells even. In the example above we have defined a 33 cells paraglider. In the example below we have defined a 18 cells paraglider.

**********************************
* 4. Cells distribution
**********************************
4
10
1    0.0
2    38
3    38
4    38
5    38
6    37
7    37
8    37
9    36
10   35

In general, if the "total ribs number in half-wing" is RHW, then:

If total cells is odd, the total cells: TCELLS = 2*RHW - 1
If total cells is even, the total cells: TCELLS = (RHW - 1)*2

General notes:
It is mandatory to use at least one space between the sign "=" and the parameter.
Recommended units cm and degrees (0-360º).


 3. EXAMPLE OF A TYPICAL INPUT DATA FILE pre-data.txt (version 1.6):


**********************************
LEPARAGLIDING
GEOMETRY PRE-PROCESSOR     v1.6
**********************************
gnuGUI-test
**********************************
* 1. Leading edge parameters
**********************************
1
a1= 710.21
b1= 243.11
x1= 375.0
x2= 475.0
xm= 575.5
c01= 48.30
ex1= 2.0
c02= 0.0
ex2= 2.0
**********************************
* 2. Trailing edge parameters
**********************************
1
a1= 903.01
b1= 243.11
x1= 372.50
xm= 575.5
c0= -2.45
y0= 215.20
exp= 2.0
**********************************
* 3. Vault
**********************************
2
746.10    15.33
527.47  20.44
373.09  18.62
104.64  35.38
**********************************
* 4. Cells distribution
**********************************
3
0.6
45


4. RUN THE PROGRAM

If you use a precompiled version, you don't need to do anything special. If you want to compile the fortran file yourself you need install the gfortran compiler and write in a console:

gfortran pre-processor.f

Be sure you have the data-pre.txt data file in the same folder as the pre-processor executable.

Linux:
------

If the name of your executable file is pre-1.6-lin64.out (or similar names like a.out pre-1.6.out ...) then run in a console like:

./pre-1.6-lin64.out

Windows:
--------

Be sure you have the corrects cygwin dll's in the same worwing folder, or if you have compiled yourself, have removed all cygwins dll's. Then:

Double click on pre-1.6-win64.exe
or type in your cywin console ./pre-1.6-win64.exe

5. RESULTS

Nothing spectacular happens! :)

But in your working directory, the following files should appear:

geometry.dxf --> DXF containig planform, vault, and cells distribution

geometry-out --> TXT file containig matrix of geometry for use with LEparagliding input file leparagliding.txt section 1. GEOMETRY.

ltv.txt --> list of leading edge, trailing edge, and vault coordinates (optional file, nou used).


6. MORE NOTES AND FIGURES (SOME OUTDATED! BECAUSE REFERS TO OLD VERSION 1.4)

pre-data.txt Example NOTES:
pre-data example The first step is to draw on a CAD program (or even manually with pencil and paper), the main curves of the wing: leading edge, trailing edge, vault, and then deduce the geometric parameters to insert in the input file pre-data.txt.

The program includes a routine to automatically adjust the length of the vault to the length of the wing in planview (span). So if the length of the vault is introduced slightly larger or smaller than the total width of the wing, does not matter, because it is adjusted to the span=2*Xm.

Then run the program:
a.exe (WIndows 32-bit) or
./a.out (GNU/Linux)

geometry.dxf file is
just to confirm that the data entered are the desired

Then open geometry-output.txt file
and copy (and modify if necessary) the matrix of geometry for use with LEparagliding 2.2 input file (leparagliding.txt section 1. GEOMETRY)

Rib    x-rib      y-LE       y-TE       xp    z    beta      RP        Washin


FIGURES: GEOMETRIC PARAMETERS DETAILS

Note: to complete the pre-data.txt file, you only need to know to identify what are the geometric parameters a1, b1, x1, xm, c, y0 ... indicated in the accompanying figures. The mathematical description is additional detail (just  to satisfy the curiosity of students of mathematics) as implemented in the Fortran source code of the program.

Main parameters for leading edge, trailing edge, and vault:
leading edge
trailing edge

vault

Alternative vault using four tangent circles
Vault 4c

vault 4c
vault 4c
vault 4c

Cell widths proporcional to chord and using control coefficient k from 0.0 (full proportional) to 1.0 (uniform width)
cells distribution
cells distribution
cells distribution
cells distribution
index