Skip to content

Commit 11e07ee

Browse files
author
Emmanuel Branlard
committed
Adding VTK readers and writers
1 parent d1504ac commit 11e07ee

12 files changed

+1224
-1
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# MATLAB Toolbox for OpenFAST, including MBC3
22
A collection of MATLAB tools developed for use with OpenFAST, including
3-
a MATLAB®-based postprocessor for Multi-Blade Coordinate transformation of
3+
readers/writers (input/output), various utilities,
4+
and a MATLAB®-based postprocessor for Multi-Blade Coordinate transformation of
45
wind turbine state-space models.
56

67
## Download
@@ -25,7 +26,9 @@ use MATLAB.
2526
The scripts are organized in the following folders:
2627
- `Campbell`: contains scripts to produce a Campbell diagram (work in progress, see [here](#campbell-diagram).
2728
- `ConvertFASTversions:` scripts to convert input files from different versions of OpenFAST (in particular FAST7 and FAST8, some scripts are not up to date for the latest OpenFAST)
29+
- `data`: Data used to test the different scripts
2830
- `FAST2MATLAB` and `MATLAB2FAST`: scripts to read and write FAST input files
31+
- `io`: input-output scripts. (NOTE: a lot of input output scripts are still in `Utilities`) (see [examples](io/examples/))
2932
- `MBC`: scripts to perform the multi-blade coordinate transformation (see [here](#MBC))
3033
- `Plots`: plotting scripts
3134
- `ProgrammingTools`: tools for OpenFAST developers
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# vtk DataFile Version 2.0
2+
Lines polydata, typical of OLAF Sgmt output
3+
ASCII
4+
5+
DATASET POLYDATA
6+
POINTS 2 double
7+
-1.0 -0.25 0.19
8+
-2.0 -0.24 0.19
9+
10+
LINES 1 2
11+
2 0 1
12+
13+
CELL_DATA 2
14+
SCALARS Gamma double
15+
LOOKUP_TABLE default
16+
1.00000000E+000
17+
2.00000000E+000
18+
SCALARS Epsilon double
19+
LOOKUP_TABLE default
20+
0.5
21+
0.6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# vtk DataFile Version 2.0
2+
Polydata polygons, typical of OLAF Panels outputs. One square made of two triangles
3+
ASCII
4+
5+
DATASET POLYDATA
6+
POINTS 4 float
7+
0.0 -0.5 0.0
8+
0.0 0.5 0.0
9+
0.0 0.5 1.0
10+
0.0 -0.5 1.0
11+
12+
POLYGONS 2 8
13+
3 0 1 2
14+
3 0 2 3
15+
16+
CELL_DATA 2
17+
SCALARS Intensities double
18+
LOOKUP_TABLE default
19+
0.49347106E-001
20+
0.59010081E-001
21+
22+
VECTORS F double
23+
0.00000000E+000 -0.00000000E+000 -0.41357944E+002
24+
0.00000000E+000 -0.00000000E+000 -0.96074734E+001
25+
SCALARS BodyID int
26+
LOOKUP_TABLE default
27+
0
28+
0
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# vtk DataFile Version 2.0
2+
Domain Extent
3+
ASCII
4+
5+
DATASET RECTILINEAR_GRID
6+
DIMENSIONS 2 2 2
7+
X_COORDINATES 2 double
8+
-15.0
9+
15.0
10+
Y_COORDINATES 2 double
11+
-20.0
12+
60.0
13+
Z_COORDINATES 2 double
14+
0.0
15+
30.0
16+
17+
18+
POINT_DATA 8
19+
SCALARS Temperature float
20+
LOOKUP_TABLE default
21+
1 0
22+
0 2
23+
3 4
24+
5 6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# vtk DataFile Version 3.0
2+
Velocity on structured grid, typical of OLAF or FAST.Farm outputs
3+
ASCII
4+
5+
DATASET STRUCTURED_POINTS
6+
DIMENSIONS 3 2 1
7+
ORIGIN 0.00 0.00 0.00
8+
SPACING 20 10.00 10.00
9+
POINT_DATA 6
10+
SCALARS Intensity float
11+
LOOKUP_TABLE default
12+
0.00
13+
30.00
14+
40.00
15+
0.00
16+
20.00
17+
45.00
18+
VECTORS Velocity float
19+
0.00 0.00 1.00
20+
30.00 0.00 0.00
21+
40.00 0.00 3.00
22+
0.00 10.00 0.00
23+
20.00 10.00 0.00
24+
45.00 10.00 2.00
25+
+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# vtk DataFile Version 2.0
2+
Plane
3+
ASCII
4+
5+
DATASET STRUCTURED_POINTS
6+
DIMENSIONS 4 1 6
7+
ORIGIN -10.00000000 0.00000000 0.00000000
8+
SPACING 6.66666667 0.00000000 6.00000000
9+
POINT_DATA 24
10+
VECTORS Velocity double
11+
0.00000000E+000 0.00000000E+000 0.00000000E+000
12+
0.00000000E+000 0.00000000E+000 0.00000000E+000
13+
0.00000000E+000 0.00000000E+000 0.00000000E+000
14+
0.00000000E+000 0.00000000E+000 0.00000000E+000
15+
0.91244354E+001 0.00000000E+000 0.00000000E+000
16+
0.91244354E+001 0.00000000E+000 0.00000000E+000
17+
0.91244354E+001 0.00000000E+000 0.00000000E+000
18+
0.91244354E+001 0.00000000E+000 0.00000000E+000
19+
0.97793277E+001 0.00000000E+000 0.00000000E+000
20+
0.97793277E+001 0.00000000E+000 0.00000000E+000
21+
0.97793277E+001 0.00000000E+000 0.00000000E+000
22+
0.97793277E+001 0.00000000E+000 0.00000000E+000
23+
0.10183994E+002 0.00000000E+000 0.00000000E+000
24+
0.10183994E+002 0.00000000E+000 0.00000000E+000
25+
0.10183994E+002 0.00000000E+000 0.00000000E+000
26+
0.10183994E+002 0.00000000E+000 0.00000000E+000
27+
0.10481224E+002 0.00000000E+000 0.00000000E+000
28+
0.10481224E+002 0.00000000E+000 0.00000000E+000
29+
0.10481224E+002 0.00000000E+000 0.00000000E+000
30+
0.10481224E+002 0.00000000E+000 0.00000000E+000
31+
0.10717735E+002 0.00000000E+000 0.00000000E+000
32+
0.10717735E+002 0.00000000E+000 0.00000000E+000
33+
0.10717735E+002 0.00000000E+000 0.00000000E+000
34+
0.10717735E+002 0.00000000E+000 0.00000000E+000
35+
36+
37+
SCALARS Misc double
38+
0
39+
1
40+
2
41+
3
42+
4
43+
5
44+
6
45+
7
46+
8
47+
9
48+
10
49+
11
50+
12
51+
13
52+
14
53+
15
54+
16
55+
17
56+
18
57+
19
58+
20
59+
21
60+
22
61+
23
62+
24

0 commit comments

Comments
 (0)