Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/ElmerGUI/samples/in2d/airfoil_naca_0012.in2d
3203 views
# NACA 0012 symmetric airfoil  - .in2d file

# start with keyword splinecurves2dv2 
splinecurves2dv2
# next the refinement factor
1.1

# keyword points
points

# then the details:
# point nr ( need not be ordered )   ---   x-coord   ---   y-coord   ---   flags
# the refinement factor is an optional flag, -ref=factor, default 1
# wing profile points
1 1.00000000	0.00000000
2 0.99726095	0.00038712
3 0.98907380	0.00153653
4 0.97552826	0.00341331
5 0.95677273	0.00596209
6 0.93301270	0.00911073
7 0.90450850	0.01277464
8 0.87157241	0.01686084
9 0.83456530	0.02127128
10 0.79389263	0.02590486
11 0.75000000	0.03065806
12 0.70336832	0.03542434
13 0.65450850	0.04009273
14 0.60395585	0.04454642
15 0.55226423	0.04866201
16 0.50000000	0.05231025
17 0.44773577	0.05535862
18 0.39604415	0.05767604
19 0.34549150	0.05913940
20 0.29663168	0.05964120
21 0.25000000	0.05909742
22 0.20610737	0.05745444
23 0.16543470	0.05469379
24 0.12842759	0.05083398
25 0.09549150	0.04592861
26 0.06698730	0.04006079
27 0.04322727	0.03333431
28 0.02447174	0.02586248
29 0.01092620	0.01775595
30 0.00273905	0.00911102
31 0.00000000	0.00000000
32 0.00273905	-0.00911102
33 0.01092620	-0.01775595
34 0.02447174	-0.02586248
35 0.04322727	-0.03333431
36 0.06698730	-0.04006079
37 0.09549150	-0.04592861
38 0.12842759	-0.05083398
39 0.16543470	-0.05469379
40 0.20610737	-0.05745443
41 0.25000000	-0.05909742
42 0.29663168	-0.05964120
43 0.34549150	-0.05913940
44 0.39604415	-0.05767604
45 0.44773577	-0.05535862
46 0.50000000	-0.05231025
47 0.55226423	-0.04866201
48 0.60395585	-0.04454642
49 0.65450850	-0.04009273
50 0.70336832	-0.03542434
51 0.75000000	-0.03065806
52 0.79389263	-0.02590486
53 0.83456530	-0.02127128
54 0.87157241	-0.01686084
55 0.90450850	-0.01277464
56 0.93301270	-0.00911073
57 0.95677273	-0.00596209
58 0.97552826	-0.00341331
59 0.98907380	-0.00153653
60 0.99726095	-0.00038712
61 1.00000000	0.00000000
62 -5.0 -5.0 
63 5.0  -5.0
64 10.0 -5.0
65 10.0 -2.0 
66 10.0 2.0
67 10.0 5.0
68 5.0 5.0
69 -5.0 5.0
70 -5.0 2.0
71 -5.0 -2.0

# keyword segments for the segments
segments

# then the segment information
# domain in --- domain out --- number of points --- points --- flags
# again, the refinement factor is an optional flag, -ref=factor, default 1
# still on the wishlist: give names to the boundary conditions, and have a default value for non-specified bcs
# (similar to materials in subdomains)

# upper surface, lower surface & bounding box
1 0 2 62 63 -bc=3 -ref=1.0
1 0 2 63 64 -bc=3 -ref=1.0
1 0 2 64 65 -bc=4 -ref=1.0
1 0 2 65 66 -bc=4 -ref=1.0
1 0 2 66 67 -bc=4 -ref=1.0
1 0 2 67 68 -bc=5 -ref=1.0
1 0 2 68 69 -bc=5 -ref=1.0 
1 0 2 69 70 -bc=6 -ref=1.0
1 0 2 70 71 -bc=6 -ref=1.0 
1 0 2 71 62 -bc=6 -ref=1.0 
0 1 3 1 2 3  -bc=1 -ref=50.0	
0 1 3 3 4 5  -bc=1 -ref=50.0	
0 1 3 5 6 7  -bc=1 -ref=50.0	
0 1 3 7 8 9  -bc=1 -ref=50.0	
0 1 3 9 10 11  -bc=1 -ref=50.0	
0 1 3 11 12 13  -bc=1 -ref=50.0	
0 1 3 13 14 15  -bc=1 -ref=50.0	
0 1 3 15 16 17  -bc=1 -ref=50.0	
0 1 3 17 18 19  -bc=1 -ref=50.0	
0 1 3 19 20 21  -bc=1 -ref=50.0	
0 1 3 21 22 23  -bc=1 -ref=50.0	
0 1 3 23 24 25  -bc=1 -ref=50.0	
0 1 3 25 26 27  -bc=1 -ref=50.0	
0 1 3 27 28 29  -bc=1 -ref=50.0	
0 1 3 29 30 31  -bc=1 -ref=50.0	
0 1 3 31 32 33  -bc=2 -ref=50.0
0 1 3 33 34 35  -bc=2 -ref=50.0
0 1 3 35 36 37  -bc=2 -ref=50.0
0 1 3 37 38 39  -bc=2 -ref=50.0
0 1 3 39 40 41 -bc=2 -ref=50.0
0 1 3 41 42 43  -bc=2 -ref=50.0
0 1 3 43 44 45  -bc=2 -ref=50.0
0 1 3 45 46 47  -bc=2 -ref=50.0
0 1 3 47 48 49  -bc=2 -ref=50.0
0 1 3 49 50 51  -bc=2 -ref=50.0
0 1 3 51 52 53  -bc=2 -ref=50.0
0 1 3 53 54 55  -bc=2 -ref=50.0
0 1 3 55 56 57  -bc=2 -ref=50.0
0 1 3 57 58 59  -bc=2 -ref=50.0	
0 1 3 59 60 1   -bc=2 -ref=50.0	


# keyword for materials
materials

# subdomain nr ---- material
# works the same way as materials in 3d csg geometries, 
# non-specified domains get a default value
# maximal meshsize can be given by -maxh=.. flag

1 iron -maxh=1.0