From 54391dcccb19c1a28121b9df5711eda69ebe3a1b Mon Sep 17 00:00:00 2001 From: acrovato Date: Thu, 10 Sep 2020 15:36:38 +0200 Subject: [PATCH] Initial commit --- .gitignore | 20 +++ LICENSE | 201 +++++++++++++++++++++++ README.md | 26 +++ cfdutils.m | 32 ++++ examples/onera/cp0.csv | 357 ++++++++++++++++++++++++++++++++++++++++ examples/onera/cp1.csv | 357 ++++++++++++++++++++++++++++++++++++++++ examples/onera/cp2.csv | 359 +++++++++++++++++++++++++++++++++++++++++ examples/onera/cp3.csv | 357 ++++++++++++++++++++++++++++++++++++++++ examples/onera/cp4.csv | 357 ++++++++++++++++++++++++++++++++++++++++ examples/onera/cp5.csv | 359 +++++++++++++++++++++++++++++++++++++++++ examples/onera/cp6.csv | 357 ++++++++++++++++++++++++++++++++++++++++ examples/onera/cp7.csv | 357 ++++++++++++++++++++++++++++++++++++++++ examples/plot_onera.m | 33 ++++ examples/slice_onera.m | 28 ++++ func/cfdloads.m | 45 ++++++ func/cfdplot.m | 56 +++++++ func/cfdread.m | 39 +++++ func/cfdtecslicer.m | 58 +++++++ 18 files changed, 3398 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 cfdutils.m create mode 100644 examples/onera/cp0.csv create mode 100644 examples/onera/cp1.csv create mode 100644 examples/onera/cp2.csv create mode 100644 examples/onera/cp3.csv create mode 100644 examples/onera/cp4.csv create mode 100644 examples/onera/cp5.csv create mode 100644 examples/onera/cp6.csv create mode 100644 examples/onera/cp7.csv create mode 100644 examples/plot_onera.m create mode 100644 examples/slice_onera.m create mode 100644 func/cfdloads.m create mode 100644 func/cfdplot.m create mode 100644 func/cfdread.m create mode 100644 func/cfdtecslicer.m diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..275b3cb --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +# Windows default autosave extension +*.asv + +# OSX / *nix default autosave extension +*.m~ + +# Compiled MEX binaries (all platforms) +*.mex* + +# Simulink Code Generation +slprj/ + +# Session info +octave-workspace + +# Simulink autosave extension +.autosave + +# workspace +workspace/* diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f49a4e1 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..d5a939b --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +# mcfdutils +MATLAB CFD post-processing utilities +Adrien Crovato, 2020 + +Python utilities available [here](https://github.com/acrovato/pycfdutils). + +## Features +mcfdutils can be used to: +- generate a Tecplot macro that creates slices along the span of a given wing +- read sectional pressure data from ASCII (space or comma separated values) files +- compute the sectional aerodynamic loads +- plot the data and the loads + +## Usage +Create a MATLAB function calling the different utilities that you need in your working directory. Examples are given under the directory [examples](examples/). Run the computation by calling `cfdutils('path/to/your_function')`. Note that `cfdutils.m` must be in your MATLAB path. Possible output files will be saved in your current working directory under a `workspace` directory. + +**Known bugs** +- The sign of the aerodynamic loads can be inverted depending on the points ordering + +**Slices creation** +The slices can be created using Tecplot or Paraview. The slices extraction in Tecplot can be automated through a macro that can be generated using `cfdtecslicer.m` (see [this example](examples/slice_onera.m)). The extraction using Paraview has not been automated in MATLAB, but python utilities can be found [here](https://github.com/acrovato/pycfdutils). Alternatively, the slices can extracted by hand using the following procedure: +1) Load the file containing the flow solution on wing surface in Paraview +2) Create a slice +3) Apply consecutively the filters `TriangleStrips`, `CleanToGrid`, `ExtractSurface` and `PlotData` +4) Open the spreadsheet used to plot the data (e.g. by splitting the view then clicking `SpreadSheetView`) +5) Select the variables you want to extract using the `Column visibility` button, and save them using the `Export spreadsheet` button diff --git a/cfdutils.m b/cfdutils.m new file mode 100644 index 0000000..1b650db --- /dev/null +++ b/cfdutils.m @@ -0,0 +1,32 @@ +% Copyright 2020 Adrien Crovato +% +% Licensed under the Apache License, Version 2.0 (the "License"); +% you may not use this file except in compliance with the License. +% You may obtain a copy of the License at +% +% http://www.apache.org/licenses/LICENSE-2.0 +% +% Unless required by applicable law or agreed to in writing, software +% distributed under the License is distributed on an "AS IS" BASIS, +% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +% See the License for the specific language governing permissions and +% limitations under the License. + +function cfdutils(fpath_) +%% cfdutils +% CFD post-processing utilities +% Adrien Crovato +% +% Usage: cfdutils(path/to/param_file) + +% Clear +clearvars -except fpath_; +close all; +% Add to path +[fpath, fname, ~] = fileparts(fpath_); +addpath(fpath, 'func'); +% Call user-defined function +feval(fname, fpath); +% Remove from path +rmpath(fpath, 'func'); +end \ No newline at end of file diff --git a/examples/onera/cp0.csv b/examples/onera/cp0.csv new file mode 100644 index 0000000..aba55d6 --- /dev/null +++ b/examples/onera/cp0.csv @@ -0,0 +1,357 @@ +Points_0,Points_1,Points_2,Pressure_Coefficient +0.0818704,0.01,-0.0286471,0.0779621 +0.0767626,0.01,-0.0280584,0.0869709 +0.0708119,0.01,-0.027337,0.0950104 +0.065235,0.01,-0.0266237,0.102847 +0.0600086,0.01,-0.0259196,0.110059 +0.0551108,0.01,-0.0252265,0.116172 +0.0505209,0.01,-0.0245475,0.119911 +0.0462195,0.01,-0.0238845,0.118109 +0.0421893,0.01,-0.0232342,0.110321 +0.0384154,0.01,-0.0225855,0.0971541 +0.0348859,0.01,-0.0219191,0.0817641 +0.0315914,0.01,-0.021213,0.0705293 +0.0285249,0.01,-0.0204483,0.0688242 +0.0256808,0.01,-0.0196117,0.0823506 +0.023055,0.01,-0.018696,0.113803 +0.0206439,0.01,-0.0177003,0.165632 +0.0184441,0.01,-0.0166289,0.232127 +0.0164505,0.01,-0.0154914,0.310229 +0.0146561,0.01,-0.0143016,0.394145 +0.0130541,0.01,-0.0130718,0.48128 +0.0116364,0.01,-0.0118152,0.564713 +0.0103932,0.01,-0.0105453,0.642665 +0.00931737,0.01,-0.0092719,0.714118 +0.0084013,0.01,-0.00800452,0.777257 +0.00763694,0.01,-0.00675244,0.830356 +0.00701816,0.01,-0.00552327,0.872524 +0.00653597,0.01,-0.00432576,0.901617 +0.0061809,0.01,-0.00316792,0.918241 +0.00594363,0.01,-0.00205683,0.921111 +0.00581241,0.01,-0.000999067,0.91149 +0.0057705,0.01,0,0.892077 +0.00581197,0.01,0.000999085,0.861788 +0.00594401,0.01,0.00205674,0.81897 +0.00618099,0.01,0.0031679,0.762674 +0.00653547,0.01,0.00432592,0.694168 +0.0070179,0.01,0.00552334,0.615643 +0.00763683,0.01,0.00675243,0.527664 +0.00840111,0.01,0.00800456,0.431965 +0.00931732,0.01,0.00927184,0.329723 +0.0103932,0.01,0.0105453,0.221537 +0.0116362,0.01,0.0118152,0.108976 +0.0130541,0.01,0.0130717,-0.00726903 +0.0146561,0.01,0.0143014,-0.124607 +0.0164505,0.01,0.0154913,-0.238559 +0.0184443,0.01,0.0166284,-0.344698 +0.020644,0.01,0.0177001,-0.437222 +0.0230551,0.01,0.0186958,-0.504571 +0.0256809,0.01,0.0196114,-0.536969 +0.028525,0.01,0.0204482,-0.53079 +0.0315916,0.01,0.0212126,-0.492772 +0.034886,0.01,0.021919,-0.440165 +0.0384155,0.01,0.0225853,-0.389372 +0.0421894,0.01,0.0232343,-0.347463 +0.0462196,0.01,0.0238845,-0.3145 +0.0505209,0.01,0.0245479,-0.288556 +0.0551109,0.01,0.0252267,-0.274572 +0.0600088,0.01,0.0259191,-0.269382 +0.0652353,0.01,0.0266233,-0.268508 +0.0708122,0.01,0.027337,-0.269997 +0.0767626,0.01,0.0280584,-0.271764 +0.0818704,0.01,0.0286468,-0.277247 +0.0869821,0.01,0.0292089,-0.280078 +0.0920973,0.01,0.029746,-0.284131 +0.097216,0.01,0.0302593,-0.288043 +0.102338,0.01,0.03075,-0.291969 +0.107463,0.01,0.0312196,-0.29591 +0.112591,0.01,0.0316692,-0.299865 +0.117721,0.01,0.0320997,-0.303832 +0.122852,0.01,0.0325122,-0.307766 +0.127985,0.01,0.0329076,-0.31165 +0.133119,0.01,0.0332866,-0.315495 +0.138254,0.01,0.0336501,-0.319299 +0.14339,0.01,0.0339988,-0.323054 +0.148527,0.01,0.0343333,-0.32678 +0.153665,0.01,0.0346543,-0.330526 +0.158803,0.01,0.0349625,-0.334323 +0.163943,0.01,0.0352582,-0.338158 +0.169083,0.01,0.0355418,-0.342005 +0.174224,0.01,0.0358137,-0.34586 +0.179365,0.01,0.0360742,-0.34971 +0.184507,0.01,0.0363237,-0.353598 +0.189649,0.01,0.0365625,-0.357553 +0.194792,0.01,0.0367908,-0.361599 +0.199935,0.01,0.037009,-0.365768 +0.205079,0.01,0.0372172,-0.370048 +0.210223,0.01,0.0374155,-0.374421 +0.215367,0.01,0.0376039,-0.378859 +0.220512,0.01,0.0377824,-0.383355 +0.225657,0.01,0.037951,-0.387913 +0.230803,0.01,0.0381098,-0.39254 +0.235948,0.01,0.0382588,-0.397253 +0.241094,0.01,0.0383979,-0.402042 +0.246241,0.01,0.0385273,-0.406938 +0.251387,0.01,0.0386469,-0.411942 +0.256534,0.01,0.0387566,-0.417038 +0.261681,0.01,0.0388562,-0.422204 +0.266828,0.01,0.0389457,-0.42743 +0.271975,0.01,0.0390251,-0.432723 +0.277123,0.01,0.0390941,-0.438072 +0.28227,0.01,0.0391528,-0.443461 +0.287418,0.01,0.0392009,-0.448868 +0.292566,0.01,0.0392386,-0.454272 +0.297714,0.01,0.0392655,-0.459714 +0.302861,0.01,0.0392818,-0.465279 +0.308009,0.01,0.0392874,-0.470968 +0.313157,0.01,0.0392821,-0.476782 +0.318305,0.01,0.0392656,-0.482649 +0.323453,0.01,0.0392377,-0.488436 +0.328601,0.01,0.039198,-0.493986 +0.333748,0.01,0.0391466,-0.499232 +0.338896,0.01,0.0390837,-0.504238 +0.344043,0.01,0.0390097,-0.509181 +0.34919,0.01,0.038925,-0.514269 +0.354337,0.01,0.0388298,-0.519646 +0.359484,0.01,0.0387238,-0.525302 +0.364631,0.01,0.0386067,-0.531098 +0.369777,0.01,0.0384781,-0.536871 +0.374923,0.01,0.0383379,-0.542463 +0.380069,0.01,0.0381858,-0.547581 +0.385214,0.01,0.0380222,-0.552257 +0.390359,0.01,0.0378475,-0.557016 +0.395503,0.01,0.0376618,-0.559769 +0.400648,0.01,0.0374654,-0.559572 +0.405791,0.01,0.0372585,-0.57716 +0.410935,0.01,0.0370409,-0.573035 +0.416077,0.01,0.0368128,-0.578971 +0.42122,0.01,0.0365744,-0.578348 +0.426362,0.01,0.036326,-0.592376 +0.431503,0.01,0.0360678,-0.589463 +0.436644,0.01,0.0357998,-0.594048 +0.441784,0.01,0.0355225,-0.593555 +0.446924,0.01,0.0352358,-0.605401 +0.452064,0.01,0.0349401,-0.603149 +0.457203,0.01,0.0346355,-0.603559 +0.462341,0.01,0.0343222,-0.613847 +0.467479,0.01,0.0340005,-0.61163 +0.472616,0.01,0.0336708,-0.616103 +0.477753,0.01,0.0333334,-0.614336 +0.482889,0.01,0.0329885,-0.626614 +0.488025,0.01,0.0326363,-0.620593 +0.493161,0.01,0.0322771,-0.638275 +0.498295,0.01,0.0319111,-0.632016 +0.50343,0.01,0.0315386,-0.646289 +0.508564,0.01,0.0311597,-0.643262 +0.513697,0.01,0.0307748,-0.650433 +0.51883,0.01,0.0303841,-0.654804 +0.523963,0.01,0.0299878,-0.660871 +0.529095,0.01,0.0295861,-0.665303 +0.534227,0.01,0.0291794,-0.667649 +0.539358,0.01,0.0287677,-0.668133 +0.544489,0.01,0.0283512,-0.65914 +0.54962,0.01,0.0279302,-0.681776 +0.55475,0.01,0.0275047,-0.566355 +0.55988,0.01,0.027075,-0.612179 +0.56501,0.01,0.0266412,-0.424442 +0.570139,0.01,0.0262033,-0.405238 +0.575268,0.01,0.0257615,-0.348141 +0.580396,0.01,0.0253157,-0.327022 +0.585525,0.01,0.0248659,-0.303949 +0.590652,0.01,0.0244122,-0.285786 +0.59578,0.01,0.0239547,-0.271457 +0.600907,0.01,0.0234934,-0.258524 +0.606034,0.01,0.0230282,-0.244584 +0.611161,0.01,0.0225592,-0.231997 +0.616287,0.01,0.0220863,-0.223936 +0.621412,0.01,0.0216092,-0.212824 +0.626538,0.01,0.0211279,-0.206346 +0.631663,0.01,0.0206422,-0.194682 +0.636787,0.01,0.020152,-0.184429 +0.641911,0.01,0.019657,-0.178375 +0.647035,0.01,0.0191573,-0.168135 +0.652158,0.01,0.0186525,-0.161969 +0.657281,0.01,0.0181425,-0.149913 +0.662402,0.01,0.017627,-0.144316 +0.667524,0.01,0.0171059,-0.133521 +0.672645,0.01,0.0165789,-0.128219 +0.677765,0.01,0.016046,-0.115854 +0.682885,0.01,0.0155069,-0.109342 +0.688003,0.01,0.0149613,-0.097846 +0.693122,0.01,0.014409,-0.0915599 +0.698239,0.01,0.01385,-0.0795263 +0.703356,0.01,0.0132843,-0.0722297 +0.708472,0.01,0.0127119,-0.0596517 +0.713587,0.01,0.012133,-0.052281 +0.718701,0.01,0.0115464,-0.0396657 +0.723815,0.01,0.0109496,-0.0300606 +0.728926,0.01,0.0103386,-0.0162128 +0.734036,0.01,0.00971065,-0.0036395 +0.739143,0.01,0.00906589,0.0111049 +0.744249,0.01,0.00841172,0.0270009 +0.749355,0.01,0.00775282,0.0420852 +0.75446,0.01,0.00709184,0.058195 +0.759565,0.01,0.00642793,0.0737017 +0.764669,0.01,0.00576108,0.0900463 +0.769774,0.01,0.00509359,0.106479 +0.774878,0.01,0.00442588,0.122694 +0.779983,0.01,0.00375805,0.138546 +0.784581,0.01,0.00315636,0.151882 +0.788582,0.01,0.00263277,0.165015 +0.792065,0.01,0.0021771,0.176583 +0.795096,0.01,0.00178048,0.186685 +0.797734,0.01,0.00143543,0.19587 +0.800027,0.01,0.00113539,0.204177 +0.802021,0.01,0.000874503,0.211693 +0.803755,0.01,0.000647647,0.218474 +0.805263,0.01,0.000450386,0.224707 +0.806575,0.01,0.000278858,0.230698 +0.807715,0.01,0.000129704,0.236394 +0.808706,0.01,0,0.246078 +0.807715,0.01,-0.000129815,0.243153 +0.806575,0.01,-0.000279033,0.235078 +0.805263,0.01,-0.000450578,0.22604 +0.803755,0.01,-0.000647856,0.218239 +0.802021,0.01,-0.000874744,0.210705 +0.800027,0.01,-0.00113564,0.201657 +0.797734,0.01,-0.00143566,0.192174 +0.795096,0.01,-0.00178071,0.182502 +0.792065,0.01,-0.00217729,0.171893 +0.788582,0.01,-0.00263284,0.158151 +0.784581,0.01,-0.00315637,0.144338 +0.779983,0.01,-0.00375805,0.131038 +0.774878,0.01,-0.00442579,0.115205 +0.769774,0.01,-0.00509347,0.0974653 +0.764669,0.01,-0.0057613,0.0819988 +0.759565,0.01,-0.00642807,0.066763 +0.75446,0.01,-0.00709182,0.0520103 +0.749355,0.01,-0.00775272,0.0374342 +0.744249,0.01,-0.00841177,0.0226158 +0.739143,0.01,-0.00906655,0.00789381 +0.734036,0.01,-0.00971077,-0.00579325 +0.728926,0.01,-0.0103388,-0.0175944 +0.723815,0.01,-0.0109497,-0.027456 +0.718701,0.01,-0.0115464,-0.0359502 +0.713587,0.01,-0.0121329,-0.0437736 +0.708472,0.01,-0.0127119,-0.0513377 +0.703356,0.01,-0.0132844,-0.0587589 +0.698239,0.01,-0.0138502,-0.0659313 +0.693122,0.01,-0.0144093,-0.0727686 +0.688004,0.01,-0.0149614,-0.0792294 +0.682885,0.01,-0.0155069,-0.0853538 +0.677765,0.01,-0.0160459,-0.0911784 +0.672645,0.01,-0.0165789,-0.096751 +0.667524,0.01,-0.0171059,-0.102082 +0.662402,0.01,-0.017627,-0.107185 +0.657281,0.01,-0.0181425,-0.112063 +0.652158,0.01,-0.0186525,-0.11674 +0.647035,0.01,-0.0191572,-0.121241 +0.641911,0.01,-0.0196569,-0.125595 +0.636787,0.01,-0.0201517,-0.129833 +0.631663,0.01,-0.0206419,-0.13397 +0.626538,0.01,-0.0211276,-0.13803 +0.621412,0.01,-0.021609,-0.142017 +0.616287,0.01,-0.0220862,-0.145952 +0.611161,0.01,-0.0225592,-0.149839 +0.606034,0.01,-0.0230282,-0.153707 +0.600907,0.01,-0.0234933,-0.157554 +0.59578,0.01,-0.0239545,-0.161398 +0.590652,0.01,-0.0244119,-0.165239 +0.585525,0.01,-0.0248654,-0.169088 +0.580396,0.01,-0.0253152,-0.172931 +0.575268,0.01,-0.025761,-0.176791 +0.570139,0.01,-0.026203,-0.180644 +0.56501,0.01,-0.026641,-0.184515 +0.55988,0.01,-0.0270749,-0.188367 +0.55475,0.01,-0.0275047,-0.192232 +0.54962,0.01,-0.0279302,-0.19606 +0.544489,0.01,-0.0283512,-0.199888 +0.539358,0.01,-0.0287677,-0.20366 +0.534227,0.01,-0.0291794,-0.207415 +0.529095,0.01,-0.0295862,-0.21109 +0.523963,0.01,-0.0299878,-0.214722 +0.51883,0.01,-0.0303841,-0.218248 +0.513697,0.01,-0.0307748,-0.221698 +0.508564,0.01,-0.0311597,-0.225028 +0.50343,0.01,-0.0315386,-0.22823 +0.498295,0.01,-0.0319112,-0.23128 +0.493161,0.01,-0.0322772,-0.234198 +0.488025,0.01,-0.0326365,-0.236821 +0.482889,0.01,-0.0329887,-0.239484 +0.477753,0.01,-0.0333337,-0.2417 +0.472616,0.01,-0.0336711,-0.243815 +0.467479,0.01,-0.0340007,-0.245578 +0.462341,0.01,-0.0343223,-0.247077 +0.457203,0.01,-0.0346355,-0.24829 +0.452064,0.01,-0.0349401,-0.249228 +0.446924,0.01,-0.0352359,-0.249924 +0.441785,0.01,-0.0355226,-0.2503 +0.436644,0.01,-0.0358001,-0.250409 +0.431503,0.01,-0.0360681,-0.250216 +0.426362,0.01,-0.0363264,-0.249711 +0.42122,0.01,-0.0365748,-0.248859 +0.416077,0.01,-0.0368131,-0.24765 +0.410935,0.01,-0.0370411,-0.246085 +0.405791,0.01,-0.0372585,-0.244164 +0.400648,0.01,-0.0374654,-0.241937 +0.395503,0.01,-0.0376617,-0.239484 +0.390359,0.01,-0.0378473,-0.236852 +0.385214,0.01,-0.0380221,-0.234028 +0.380069,0.01,-0.0381858,-0.230952 +0.374923,0.01,-0.0383379,-0.227547 +0.369777,0.01,-0.0384783,-0.223762 +0.364631,0.01,-0.0386069,-0.219623 +0.359484,0.01,-0.038724,-0.215218 +0.354337,0.01,-0.0388298,-0.210707 +0.34919,0.01,-0.038925,-0.206225 +0.344043,0.01,-0.0390097,-0.201811 +0.338896,0.01,-0.0390837,-0.197407 +0.333748,0.01,-0.0391466,-0.192898 +0.328601,0.01,-0.039198,-0.188152 +0.323453,0.01,-0.0392377,-0.183115 +0.318305,0.01,-0.0392656,-0.177823 +0.313157,0.01,-0.0392821,-0.172362 +0.308009,0.01,-0.0392873,-0.166836 +0.302861,0.01,-0.0392818,-0.161296 +0.297714,0.01,-0.0392656,-0.155779 +0.292566,0.01,-0.0392387,-0.150357 +0.287418,0.01,-0.0392013,-0.144817 +0.28227,0.01,-0.0391532,-0.139228 +0.277123,0.01,-0.0390945,-0.133597 +0.271975,0.01,-0.0390254,-0.127939 +0.266828,0.01,-0.0389459,-0.122277 +0.261681,0.01,-0.0388563,-0.116628 +0.256534,0.01,-0.0387566,-0.111002 +0.251387,0.01,-0.0386469,-0.105405 +0.246241,0.01,-0.0385273,-0.0998358 +0.241094,0.01,-0.0383978,-0.0942954 +0.235948,0.01,-0.0382585,-0.0887865 +0.230803,0.01,-0.0381094,-0.0833116 +0.225657,0.01,-0.0379506,-0.0778768 +0.220512,0.01,-0.0377819,-0.0724823 +0.215367,0.01,-0.0376035,-0.0671273 +0.210223,0.01,-0.0374153,-0.0618139 +0.205079,0.01,-0.0372171,-0.0565417 +0.199935,0.01,-0.037009,-0.0513071 +0.194792,0.01,-0.0367908,-0.0461081 +0.189649,0.01,-0.0365623,-0.0409451 +0.184507,0.01,-0.0363233,-0.0358113 +0.179365,0.01,-0.0360737,-0.0307001 +0.174224,0.01,-0.0358131,-0.0256132 +0.169083,0.01,-0.0355412,-0.0205357 +0.163943,0.01,-0.0352578,-0.0154482 +0.158803,0.01,-0.0349622,-0.0103452 +0.153665,0.01,-0.0346542,-0.00521412 +0.148527,0.01,-0.0343333,-4.34825e-05 +0.14339,0.01,-0.0339988,0.00517463 +0.138254,0.01,-0.0336502,0.0104574 +0.133119,0.01,-0.0332868,0.0158225 +0.127985,0.01,-0.0329079,0.0212918 +0.122852,0.01,-0.0325127,0.0268995 +0.117721,0.01,-0.0321002,0.0326697 +0.112591,0.01,-0.0316695,0.0386183 +0.107463,0.01,-0.0312198,0.0447461 +0.102338,0.01,-0.0307501,0.0510493 +0.097216,0.01,-0.0302593,0.0575346 +0.0920973,0.01,-0.0297462,0.0642214 +0.086982,0.01,-0.0292092,0.0712294 diff --git a/examples/onera/cp1.csv b/examples/onera/cp1.csv new file mode 100644 index 0000000..40d8fbc --- /dev/null +++ b/examples/onera/cp1.csv @@ -0,0 +1,357 @@ +Points_0,Points_1,Points_2,Pressure_Coefficient +0.207978,0.24,-0.0261975,-0.0207582 +0.203456,0.24,-0.0256761,-0.0120892 +0.198206,0.24,-0.0250402,-0.00407506 +0.193271,0.24,-0.0244108,0.00368388 +0.188632,0.24,-0.0237887,0.0109991 +0.184271,0.24,-0.0231752,0.0173167 +0.180171,0.24,-0.0225728,0.0210565 +0.176316,0.24,-0.0219833,0.0198968 +0.172691,0.24,-0.021405,0.012251 +0.169284,0.24,-0.0208303,-0.00133616 +0.166084,0.24,-0.0202441,-0.0178497 +0.163084,0.24,-0.0196279,-0.0328141 +0.160276,0.24,-0.0189641,-0.0365849 +0.157657,0.24,-0.018239,-0.0254317 +0.155224,0.24,-0.0174438,0.0043757 +0.152975,0.24,-0.016575,0.053863 +0.150908,0.24,-0.0156337,0.122489 +0.149021,0.24,-0.0146256,0.204845 +0.14731,0.24,-0.0135611,0.295632 +0.14577,0.24,-0.0124512,0.391198 +0.144396,0.24,-0.0113062,0.481884 +0.143182,0.24,-0.0101383,0.568872 +0.14212,0.24,-0.00895686,0.648406 +0.141206,0.24,-0.00777026,0.718785 +0.140436,0.24,-0.00658722,0.777667 +0.139803,0.24,-0.00541513,0.823586 +0.139304,0.24,-0.00426198,0.854519 +0.138932,0.24,-0.00313619,0.86942 +0.138679,0.24,-0.00204547,0.867467 +0.138538,0.24,-0.000997608,0.850367 +0.138492,0.24,0,0.819694 +0.138538,0.24,0.000997597,0.775858 +0.138679,0.24,0.00204545,0.717124 +0.138932,0.24,0.00313618,0.641992 +0.139304,0.24,0.00426199,0.554046 +0.139803,0.24,0.00541511,0.45442 +0.140435,0.24,0.00658718,0.345093 +0.141206,0.24,0.00777022,0.228816 +0.14212,0.24,0.00895682,0.106824 +0.143182,0.24,0.0101382,-0.0198416 +0.144396,0.24,0.0113062,-0.150983 +0.14577,0.24,0.0124512,-0.285245 +0.14731,0.24,0.0135611,-0.418606 +0.149021,0.24,0.0146255,-0.547822 +0.150908,0.24,0.0156337,-0.670823 +0.152975,0.24,0.016575,-0.782214 +0.155224,0.24,0.0174438,-0.8767 +0.157657,0.24,0.018239,-0.951508 +0.160276,0.24,0.0189642,-1.00368 +0.163084,0.24,0.0196279,-1.03439 +0.166084,0.24,0.0202442,-1.04259 +0.169284,0.24,0.0208303,-1.02679 +0.172691,0.24,0.021405,-0.978783 +0.176316,0.24,0.0219833,-0.885959 +0.180171,0.24,0.0225728,-0.774961 +0.184271,0.24,0.0231752,-0.702597 +0.188632,0.24,0.0237887,-0.648316 +0.193271,0.24,0.0244108,-0.577 +0.198206,0.24,0.0250402,-0.501541 +0.203456,0.24,0.0256761,-0.463662 +0.207978,0.24,0.0261975,-0.459214 +0.212523,0.24,0.0266984,-0.463651 +0.217092,0.24,0.0271797,-0.468582 +0.221686,0.24,0.0276422,-0.473171 +0.226307,0.24,0.0280872,-0.475264 +0.230955,0.24,0.0285155,-0.477412 +0.235631,0.24,0.0289279,-0.479968 +0.240317,0.24,0.0293236,-0.482311 +0.245004,0.24,0.0297025,-0.483954 +0.249692,0.24,0.0300657,-0.483355 +0.254382,0.24,0.0304138,-0.482494 +0.259072,0.24,0.0307476,-0.481937 +0.263764,0.24,0.0310679,-0.481806 +0.268456,0.24,0.0313752,-0.481919 +0.27315,0.24,0.0316702,-0.482212 +0.277844,0.24,0.0319532,-0.482614 +0.282538,0.24,0.0322248,-0.483145 +0.287233,0.24,0.0324854,-0.483802 +0.291929,0.24,0.0327353,-0.484623 +0.296626,0.24,0.0329749,-0.485627 +0.301323,0.24,0.0332044,-0.486847 +0.30602,0.24,0.0334242,-0.488283 +0.310718,0.24,0.0336344,-0.48994 +0.315416,0.24,0.0338353,-0.491806 +0.320114,0.24,0.0340269,-0.493877 +0.324813,0.24,0.0342094,-0.496169 +0.329513,0.24,0.0343828,-0.498686 +0.334212,0.24,0.0345473,-0.50142 +0.338912,0.24,0.0347028,-0.504364 +0.343612,0.24,0.0348494,-0.507512 +0.348313,0.24,0.0349872,-0.510861 +0.353013,0.24,0.035116,-0.514395 +0.357714,0.24,0.0352358,-0.518106 +0.362416,0.24,0.0353467,-0.521991 +0.367117,0.24,0.0354485,-0.526045 +0.371818,0.24,0.0355412,-0.530268 +0.37652,0.24,0.0356248,-0.534653 +0.381222,0.24,0.0356991,-0.539181 +0.385924,0.24,0.035764,-0.543833 +0.390626,0.24,0.0358194,-0.548572 +0.395328,0.24,0.0358652,-0.553362 +0.400031,0.24,0.0359013,-0.558187 +0.404733,0.24,0.0359276,-0.563026 +0.409436,0.24,0.0359444,-0.567981 +0.414138,0.24,0.0359514,-0.573189 +0.418841,0.24,0.0359485,-0.578618 +0.423543,0.24,0.0359356,-0.584223 +0.428246,0.24,0.0359122,-0.589855 +0.432948,0.24,0.0358782,-0.595304 +0.43765,0.24,0.0358334,-0.600389 +0.442352,0.24,0.035778,-0.605067 +0.447054,0.24,0.0357125,-0.609467 +0.451756,0.24,0.0356372,-0.613824 +0.456458,0.24,0.0355523,-0.61839 +0.461159,0.24,0.0354577,-0.62329 +0.465861,0.24,0.0353531,-0.62847 +0.470562,0.24,0.0352379,-0.633745 +0.475263,0.24,0.035112,-0.63889 +0.479963,0.24,0.0349754,-0.643719 +0.484663,0.24,0.0348282,-0.648191 +0.489363,0.24,0.0346708,-0.652372 +0.494063,0.24,0.0345035,-0.656305 +0.498762,0.24,0.0343264,-0.660108 +0.50346,0.24,0.0341396,-0.66414 +0.508159,0.24,0.0339432,-0.667678 +0.512857,0.24,0.0337372,-0.671273 +0.517554,0.24,0.0335218,-0.674532 +0.522251,0.24,0.033297,-0.677827 +0.526948,0.24,0.0330632,-0.680717 +0.531644,0.24,0.0328205,-0.683716 +0.53634,0.24,0.0325691,-0.686671 +0.541035,0.24,0.0323093,-0.689756 +0.54573,0.24,0.0320411,-0.69183 +0.550424,0.24,0.0317648,-0.693686 +0.555118,0.24,0.0314806,-0.693765 +0.559812,0.24,0.0311888,-0.694706 +0.564505,0.24,0.0308895,-0.689183 +0.569197,0.24,0.0305831,-0.688589 +0.573889,0.24,0.0302698,-0.670112 +0.578581,0.24,0.0299497,-0.647812 +0.583272,0.24,0.0296232,-0.604967 +0.587963,0.24,0.0292904,-0.561283 +0.592653,0.24,0.0289516,-0.519509 +0.597343,0.24,0.028607,-0.480923 +0.602032,0.24,0.0282568,-0.450572 +0.606721,0.24,0.0279013,-0.41246 +0.61141,0.24,0.0275407,-0.376958 +0.616098,0.24,0.0271751,-0.338791 +0.620786,0.24,0.0268048,-0.303787 +0.625473,0.24,0.02643,-0.274934 +0.630161,0.24,0.0260507,-0.253323 +0.634847,0.24,0.0256673,-0.234562 +0.639534,0.24,0.0252797,-0.216713 +0.64422,0.24,0.0248883,-0.203125 +0.648906,0.24,0.024493,-0.18816 +0.653591,0.24,0.0240939,-0.177178 +0.658276,0.24,0.0236912,-0.167066 +0.662961,0.24,0.023285,-0.158468 +0.667646,0.24,0.0228752,-0.150413 +0.67233,0.24,0.0224619,-0.142952 +0.677014,0.24,0.0220451,-0.135925 +0.681698,0.24,0.0216249,-0.12908 +0.686381,0.24,0.0212011,-0.122311 +0.691064,0.24,0.0207737,-0.115787 +0.695747,0.24,0.0203427,-0.109481 +0.700429,0.24,0.019908,-0.103108 +0.705111,0.24,0.0194695,-0.0968058 +0.709793,0.24,0.019027,-0.0903145 +0.714474,0.24,0.0185805,-0.0839025 +0.719155,0.24,0.0181298,-0.0775972 +0.723835,0.24,0.0176748,-0.071052 +0.728515,0.24,0.0172152,-0.0645332 +0.733195,0.24,0.0167509,-0.057711 +0.737874,0.24,0.0162817,-0.0509675 +0.742552,0.24,0.0158073,-0.043924 +0.74723,0.24,0.0153276,-0.0368958 +0.751908,0.24,0.0148426,-0.0294765 +0.756584,0.24,0.014352,-0.0221299 +0.761261,0.24,0.0138557,-0.0144364 +0.765936,0.24,0.0133533,-0.00669869 +0.770611,0.24,0.0128448,0.00147596 +0.775285,0.24,0.0123299,0.00970564 +0.779959,0.24,0.011809,0.0182889 +0.784632,0.24,0.0112821,0.0268241 +0.789304,0.24,0.0107489,0.0357602 +0.793975,0.24,0.0102074,0.0448219 +0.798645,0.24,0.00965415,0.0545936 +0.803313,0.24,0.00908593,0.0650849 +0.807979,0.24,0.00850216,0.0766549 +0.812644,0.24,0.00790669,0.0889377 +0.817307,0.24,0.00730555,0.101286 +0.821971,0.24,0.00670245,0.113406 +0.826634,0.24,0.00609718,0.125373 +0.831297,0.24,0.00548895,0.137504 +0.83596,0.24,0.00487903,0.150304 +0.840623,0.24,0.00426906,0.161428 +0.845286,0.24,0.00365915,0.174596 +0.84954,0.24,0.00310246,0.184699 +0.853314,0.24,0.00260869,0.194419 +0.856669,0.24,0.00216976,0.203314 +0.859661,0.24,0.00177841,0.211396 +0.862295,0.24,0.0014338,0.218177 +0.864585,0.24,0.00113416,0.224453 +0.866577,0.24,0.000873603,0.230185 +0.868309,0.24,0.000647012,0.23527 +0.869815,0.24,0.000449985,0.240157 +0.871125,0.24,0.000278662,0.245026 +0.872263,0.24,0.000129642,0.249494 +0.873254,0.24,0,0.258465 +0.872263,0.24,-0.000129642,0.256529 +0.871125,0.24,-0.000278662,0.248809 +0.869815,0.24,-0.000449985,0.240352 +0.868309,0.24,-0.000647013,0.233384 +0.866577,0.24,-0.000873603,0.226912 +0.864585,0.24,-0.00113416,0.218718 +0.862295,0.24,-0.0014338,0.210505 +0.859661,0.24,-0.00177841,0.202886 +0.856669,0.24,-0.00216976,0.192204 +0.853314,0.24,-0.00260869,0.181188 +0.84954,0.24,-0.00310246,0.170834 +0.845286,0.24,-0.00365915,0.15914 +0.840623,0.24,-0.00426906,0.14445 +0.83596,0.24,-0.00487903,0.13283 +0.831297,0.24,-0.00548895,0.117906 +0.826634,0.24,-0.00609719,0.104995 +0.821971,0.24,-0.00670245,0.0923693 +0.817307,0.24,-0.00730555,0.0796259 +0.812644,0.24,-0.00790669,0.0664833 +0.807979,0.24,-0.00850216,0.0535111 +0.803313,0.24,-0.00908593,0.0415191 +0.798645,0.24,-0.00965415,0.031311 +0.793975,0.24,-0.0102074,0.0226298 +0.789304,0.24,-0.0107489,0.0148128 +0.784632,0.24,-0.0112821,0.00735407 +0.779959,0.24,-0.011809,3.02816e-07 +0.775285,0.24,-0.0123299,-0.00726967 +0.770611,0.24,-0.0128448,-0.0143543 +0.765936,0.24,-0.0133533,-0.0211717 +0.761261,0.24,-0.0138557,-0.0277327 +0.756584,0.24,-0.014352,-0.0340499 +0.751908,0.24,-0.0148426,-0.0401225 +0.74723,0.24,-0.0153276,-0.0459936 +0.742552,0.24,-0.0158073,-0.0516761 +0.737874,0.24,-0.0162817,-0.0571712 +0.733195,0.24,-0.0167509,-0.062487 +0.728515,0.24,-0.0172152,-0.0676411 +0.723835,0.24,-0.0176748,-0.0726553 +0.719155,0.24,-0.0181298,-0.0775567 +0.714474,0.24,-0.0185805,-0.0823684 +0.709793,0.24,-0.019027,-0.0871118 +0.705111,0.24,-0.0194695,-0.0917996 +0.700429,0.24,-0.019908,-0.0964429 +0.695747,0.24,-0.0203427,-0.101053 +0.691064,0.24,-0.0207737,-0.105642 +0.686381,0.24,-0.0212011,-0.110222 +0.681698,0.24,-0.0216249,-0.114807 +0.677014,0.24,-0.0220451,-0.119407 +0.67233,0.24,-0.0224619,-0.124021 +0.667646,0.24,-0.0228752,-0.128659 +0.662961,0.24,-0.023285,-0.133314 +0.658276,0.24,-0.0236912,-0.138 +0.653591,0.24,-0.0240939,-0.142718 +0.648906,0.24,-0.024493,-0.14747 +0.64422,0.24,-0.0248883,-0.152259 +0.639534,0.24,-0.0252797,-0.157085 +0.634847,0.24,-0.0256673,-0.161951 +0.63016,0.24,-0.0260507,-0.166844 +0.625473,0.24,-0.02643,-0.171767 +0.620786,0.24,-0.0268048,-0.17671 +0.616098,0.24,-0.0271751,-0.181672 +0.61141,0.24,-0.0275407,-0.186645 +0.606721,0.24,-0.0279013,-0.191617 +0.602032,0.24,-0.0282568,-0.196576 +0.597343,0.24,-0.028607,-0.201521 +0.592653,0.24,-0.0289516,-0.206408 +0.587963,0.24,-0.0292904,-0.211242 +0.583272,0.24,-0.0296232,-0.216202 +0.578581,0.24,-0.0299497,-0.220325 +0.573889,0.24,-0.0302698,-0.225689 +0.569197,0.24,-0.0305831,-0.229971 +0.564505,0.24,-0.0308895,-0.234504 +0.559812,0.24,-0.0311888,-0.238619 +0.555118,0.24,-0.0314806,-0.242708 +0.550424,0.24,-0.0317648,-0.246506 +0.54573,0.24,-0.0320411,-0.249955 +0.541035,0.24,-0.0323093,-0.253482 +0.53634,0.24,-0.0325691,-0.256468 +0.531644,0.24,-0.0328205,-0.259404 +0.526948,0.24,-0.0330632,-0.2621 +0.522251,0.24,-0.033297,-0.264654 +0.517554,0.24,-0.0335218,-0.266806 +0.512857,0.24,-0.0337372,-0.268623 +0.508159,0.24,-0.0339432,-0.270226 +0.50346,0.24,-0.0341396,-0.271356 +0.498762,0.24,-0.0343264,-0.272208 +0.494063,0.24,-0.0345035,-0.272664 +0.489363,0.24,-0.0346708,-0.272901 +0.484663,0.24,-0.0348282,-0.273012 +0.479963,0.24,-0.0349754,-0.272604 +0.475263,0.24,-0.035112,-0.271671 +0.470562,0.24,-0.0352379,-0.270239 +0.465861,0.24,-0.0353531,-0.268328 +0.461159,0.24,-0.0354577,-0.266064 +0.456458,0.24,-0.0355523,-0.263633 +0.451756,0.24,-0.0356372,-0.261181 +0.447054,0.24,-0.0357125,-0.258731 +0.442352,0.24,-0.035778,-0.256195 +0.43765,0.24,-0.0358334,-0.253424 +0.432948,0.24,-0.0358782,-0.250287 +0.428246,0.24,-0.0359122,-0.246738 +0.423543,0.24,-0.0359356,-0.24284 +0.418841,0.24,-0.0359485,-0.238709 +0.414138,0.24,-0.0359514,-0.234451 +0.409436,0.24,-0.0359444,-0.230123 +0.404733,0.24,-0.0359276,-0.225819 +0.400031,0.24,-0.0359013,-0.221376 +0.395328,0.24,-0.0358652,-0.216834 +0.390626,0.24,-0.0358194,-0.212187 +0.385924,0.24,-0.035764,-0.207445 +0.381222,0.24,-0.0356991,-0.202631 +0.37652,0.24,-0.0356248,-0.197774 +0.371818,0.24,-0.0355412,-0.192897 +0.367117,0.24,-0.0354485,-0.188013 +0.362416,0.24,-0.0353467,-0.183134 +0.357714,0.24,-0.0352358,-0.178265 +0.353013,0.24,-0.035116,-0.173423 +0.348313,0.24,-0.0349872,-0.16858 +0.343612,0.24,-0.0348494,-0.163754 +0.338912,0.24,-0.0347028,-0.158957 +0.334212,0.24,-0.0345473,-0.154196 +0.329513,0.24,-0.0343828,-0.149473 +0.324813,0.24,-0.0342094,-0.144795 +0.320114,0.24,-0.0340269,-0.140164 +0.315416,0.24,-0.0338353,-0.135575 +0.310718,0.24,-0.0336344,-0.131029 +0.30602,0.24,-0.0334242,-0.126533 +0.301322,0.24,-0.0332044,-0.122095 +0.296626,0.24,-0.0329749,-0.117683 +0.291929,0.24,-0.0327353,-0.113303 +0.287233,0.24,-0.0324854,-0.108935 +0.282538,0.24,-0.0322248,-0.104563 +0.277844,0.24,-0.0319532,-0.100188 +0.27315,0.24,-0.0316702,-0.0957927 +0.268456,0.24,-0.0313752,-0.091356 +0.263764,0.24,-0.0310679,-0.0868836 +0.259072,0.24,-0.0307476,-0.0823416 +0.254382,0.24,-0.0304138,-0.0776931 +0.249692,0.24,-0.0300657,-0.0729086 +0.245004,0.24,-0.0297025,-0.0679596 +0.240317,0.24,-0.0293236,-0.0628106 +0.235631,0.24,-0.0289279,-0.0574471 +0.230955,0.24,-0.0285155,-0.0518948 +0.226307,0.24,-0.0280872,-0.0461249 +0.221686,0.24,-0.0276422,-0.0401231 +0.217092,0.24,-0.0271797,-0.0338437 +0.212523,0.24,-0.0266984,-0.0273036 diff --git a/examples/onera/cp2.csv b/examples/onera/cp2.csv new file mode 100644 index 0000000..78a089f --- /dev/null +++ b/examples/onera/cp2.csv @@ -0,0 +1,359 @@ +Points_0,Points_1,Points_2,Pressure_Coefficient +0.366983,0.53,-0.0231089,-0.0581309 +0.363201,0.53,-0.0226722,-0.0495223 +0.358833,0.53,-0.0221441,-0.0412276 +0.354708,0.53,-0.0216203,-0.0331477 +0.350809,0.53,-0.0211013,-0.0254107 +0.347125,0.53,-0.0205879,-0.018102 +0.343643,0.53,-0.0200817,-0.0130046 +0.34035,0.53,-0.0195843,-0.0109908 +0.337237,0.53,-0.0190956,-0.014999 +0.334294,0.53,-0.0186115,-0.024738 +0.331511,0.53,-0.0181224,-0.03814 +0.328883,0.53,-0.0176144,-0.052758 +0.326406,0.53,-0.0170723,-0.060733 +0.324075,0.53,-0.0164829,-0.0556688 +0.32189,0.53,-0.015836,-0.0348466 +0.31985,0.53,-0.015125,0.0040498 +0.317955,0.53,-0.0143475,0.0628795 +0.316206,0.53,-0.0135045,0.138159 +0.314602,0.53,-0.0126009,0.22514 +0.313142,0.53,-0.0116453,0.319002 +0.311822,0.53,-0.0106451,0.413353 +0.310642,0.53,-0.00960922,0.504326 +0.309595,0.53,-0.00854709,0.589368 +0.308682,0.53,-0.00746569,0.666025 +0.307899,0.53,-0.00637247,0.731649 +0.307245,0.53,-0.00527475,0.783609 +0.306721,0.53,-0.00417946,0.82017 +0.306322,0.53,-0.00309526,0.83842 +0.306045,0.53,-0.00203087,0.835918 +0.305888,0.53,-0.000995739,0.815248 +0.305837,0.53,0,0.778161 +0.305888,0.53,0.000995729,0.722381 +0.306045,0.53,0.00203086,0.648762 +0.306321,0.53,0.00309526,0.55754 +0.306721,0.53,0.00417946,0.453845 +0.307245,0.53,0.00527473,0.339321 +0.307899,0.53,0.00637245,0.217181 +0.308682,0.53,0.00746567,0.0897709 +0.309595,0.53,0.00854706,-0.042416 +0.310642,0.53,0.0096092,-0.176067 +0.311822,0.53,0.0106451,-0.313886 +0.313142,0.53,0.0116452,-0.451168 +0.314602,0.53,0.0126009,-0.583532 +0.316206,0.53,0.0135045,-0.709723 +0.317955,0.53,0.0143475,-0.826368 +0.31985,0.53,0.015125,-0.927875 +0.32189,0.53,0.015836,-1.0118 +0.324075,0.53,0.016483,-1.07686 +0.326406,0.53,0.0170723,-1.12249 +0.328883,0.53,0.0176144,-1.1487 +0.331511,0.53,0.0181224,-1.159 +0.334294,0.53,0.0186115,-1.15422 +0.337237,0.53,0.0190957,-1.1405 +0.340351,0.53,0.0195843,-1.11856 +0.343643,0.53,0.0200817,-1.09637 +0.347125,0.53,0.0205879,-1.07521 +0.350809,0.53,0.0211013,-1.05573 +0.354708,0.53,0.0216203,-1.03954 +0.358833,0.53,0.0221441,-1.02268 +0.363201,0.53,0.0226722,-1.00371 +0.366983,0.53,0.0231089,-0.985561 +0.370813,0.53,0.0235325,-0.957999 +0.374693,0.53,0.0239434,-0.914117 +0.378627,0.53,0.0243421,-0.848405 +0.382615,0.53,0.0247292,-0.765514 +0.386662,0.53,0.0251052,-0.687616 +0.387303,0.53,0.0251623,-0.676182 +0.390768,0.53,0.0254706,-0.614531 +0.394894,0.53,0.0258221,-0.567622 +0.399021,0.53,0.0261588,-0.550692 +0.40315,0.53,0.0264815,-0.542518 +0.407279,0.53,0.0267908,-0.541445 +0.411409,0.53,0.0270874,-0.542773 +0.41554,0.53,0.027372,-0.556234 +0.419672,0.53,0.0276451,-0.559672 +0.423805,0.53,0.0279072,-0.56341 +0.427938,0.53,0.0281588,-0.568983 +0.432072,0.53,0.0284003,-0.573131 +0.436206,0.53,0.0286319,-0.575951 +0.440341,0.53,0.0288542,-0.578891 +0.444476,0.53,0.0290673,-0.581228 +0.448612,0.53,0.0292715,-0.583424 +0.452748,0.53,0.0294672,-0.585192 +0.456885,0.53,0.0296543,-0.586524 +0.461022,0.53,0.0298332,-0.587956 +0.465159,0.53,0.030004,-0.589445 +0.469297,0.53,0.0301667,-0.591156 +0.473435,0.53,0.0303215,-0.593115 +0.477573,0.53,0.0304684,-0.595364 +0.481712,0.53,0.0306074,-0.597855 +0.48585,0.53,0.0307386,-0.600543 +0.489989,0.53,0.030862,-0.603434 +0.494129,0.53,0.0309775,-0.606512 +0.498268,0.53,0.0310852,-0.609797 +0.502408,0.53,0.0311851,-0.613225 +0.506548,0.53,0.0312769,-0.61687 +0.510688,0.53,0.0313609,-0.620673 +0.514828,0.53,0.0314368,-0.624679 +0.518968,0.53,0.0315045,-0.628853 +0.523108,0.53,0.0315641,-0.633216 +0.527249,0.53,0.0316154,-0.637718 +0.53139,0.53,0.0316582,-0.642308 +0.53553,0.53,0.0316925,-0.64693 +0.539671,0.53,0.0317184,-0.651561 +0.543812,0.53,0.0317357,-0.656181 +0.547953,0.53,0.0317445,-0.661053 +0.552094,0.53,0.0317447,-0.666145 +0.556234,0.53,0.0317361,-0.671473 +0.560375,0.53,0.0317184,-0.676959 +0.564516,0.53,0.0316915,-0.682424 +0.568657,0.53,0.0316551,-0.687675 +0.572797,0.53,0.0316093,-0.692586 +0.576938,0.53,0.0315545,-0.697173 +0.581078,0.53,0.031491,-0.701584 +0.585218,0.53,0.0314191,-0.706036 +0.589359,0.53,0.0313387,-0.710734 +0.593498,0.53,0.0312495,-0.715702 +0.597638,0.53,0.0311513,-0.720828 +0.601778,0.53,0.0310437,-0.725926 +0.605917,0.53,0.0309267,-0.730832 +0.610056,0.53,0.0308003,-0.735456 +0.614194,0.53,0.0306648,-0.739862 +0.618333,0.53,0.0305205,-0.744134 +0.622471,0.53,0.0303677,-0.748535 +0.626608,0.53,0.0302063,-0.752933 +0.630746,0.53,0.0300364,-0.757451 +0.634883,0.53,0.0298581,-0.758458 +0.639019,0.53,0.0296714,-0.760093 +0.643156,0.53,0.0294765,-0.751037 +0.647292,0.53,0.0292736,-0.745322 +0.651427,0.53,0.0290628,-0.719808 +0.655562,0.53,0.0288443,-0.691631 +0.659697,0.53,0.0286183,-0.597292 +0.663831,0.53,0.028385,-0.510235 +0.667965,0.53,0.0281444,-0.428744 +0.672098,0.53,0.0278969,-0.362066 +0.676231,0.53,0.0276425,-0.315917 +0.680364,0.53,0.0273816,-0.276892 +0.684496,0.53,0.0271142,-0.244364 +0.688628,0.53,0.0268407,-0.221054 +0.692759,0.53,0.0265613,-0.205103 +0.69689,0.53,0.026276,-0.193432 +0.701021,0.53,0.0259852,-0.183697 +0.705151,0.53,0.025689,-0.175734 +0.709281,0.53,0.0253877,-0.168973 +0.713411,0.53,0.0250814,-0.162912 +0.71754,0.53,0.0247703,-0.157335 +0.721669,0.53,0.0244546,-0.152046 +0.725797,0.53,0.0241345,-0.146966 +0.729925,0.53,0.0238102,-0.141999 +0.734053,0.53,0.0234818,-0.137083 +0.738181,0.53,0.0231496,-0.132185 +0.742308,0.53,0.0228135,-0.127302 +0.746435,0.53,0.0224738,-0.122417 +0.750561,0.53,0.0221306,-0.117526 +0.754688,0.53,0.021784,-0.112641 +0.758814,0.53,0.0214341,-0.107756 +0.762939,0.53,0.021081,-0.102876 +0.767065,0.53,0.0207246,-0.0980015 +0.77119,0.53,0.0203652,-0.0931291 +0.775315,0.53,0.0200027,-0.088254 +0.77944,0.53,0.0196371,-0.0833749 +0.783564,0.53,0.0192685,-0.0784879 +0.787688,0.53,0.0188968,-0.0735837 +0.791812,0.53,0.0185219,-0.0686538 +0.795936,0.53,0.018144,-0.0636923 +0.800059,0.53,0.0177627,-0.05869 +0.804182,0.53,0.0173782,-0.053639 +0.808305,0.53,0.0169903,-0.0485366 +0.812427,0.53,0.0165988,-0.043365 +0.816549,0.53,0.0162038,-0.038115 +0.82067,0.53,0.015805,-0.0327733 +0.824792,0.53,0.0154023,-0.0273201 +0.828913,0.53,0.0149955,-0.0217691 +0.833033,0.53,0.0145845,-0.0161021 +0.837153,0.53,0.0141691,-0.0103056 +0.841272,0.53,0.013749,-0.00437116 +0.845391,0.53,0.0133243,0.00172372 +0.84951,0.53,0.0128948,0.00798037 +0.853628,0.53,0.0124604,0.0144016 +0.857745,0.53,0.0120208,0.0210101 +0.861862,0.53,0.0115758,0.0278378 +0.865979,0.53,0.0111254,0.0348979 +0.870094,0.53,0.0106694,0.0421599 +0.874209,0.53,0.0102082,0.0495798 +0.878324,0.53,0.00974175,0.0571213 +0.882438,0.53,0.00926908,0.0648504 +0.88655,0.53,0.00878788,0.0730049 +0.890662,0.53,0.0082949,0.0819113 +0.894772,0.53,0.00778806,0.0917896 +0.89888,0.53,0.00726865,0.1025 +0.902987,0.53,0.00674139,0.113573 +0.907094,0.53,0.00621109,0.124617 +0.9112,0.53,0.00567931,0.135349 +0.915306,0.53,0.00514515,0.146164 +0.919412,0.53,0.00460866,0.157455 +0.923518,0.53,0.00407147,0.167935 +0.927624,0.53,0.00353441,0.179846 +0.931446,0.53,0.00303449,0.190365 +0.934932,0.53,0.00257828,0.198489 +0.938127,0.53,0.00216026,0.20722 +0.941068,0.53,0.00177549,0.215863 +0.943698,0.53,0.00143146,0.222976 +0.945985,0.53,0.0011323,0.229658 +0.947973,0.53,0.000872167,0.235821 +0.949703,0.53,0.000645951,0.24142 +0.951206,0.53,0.000449238,0.24683 +0.952513,0.53,0.000278193,0.252235 +0.95365,0.53,0.000129431,0.257507 +0.954639,0.53,0,0.266369 +0.95365,0.53,-0.000129431,0.263322 +0.952513,0.53,-0.000278193,0.254758 +0.951206,0.53,-0.000449238,0.246419 +0.949703,0.53,-0.000645953,0.239043 +0.947973,0.53,-0.000872167,0.231669 +0.945985,0.53,-0.0011323,0.223365 +0.943698,0.53,-0.00143146,0.214929 +0.941068,0.53,-0.00177549,0.206248 +0.938127,0.53,-0.00216026,0.194722 +0.934932,0.53,-0.00257828,0.184109 +0.931446,0.53,-0.00303449,0.174811 +0.927624,0.53,-0.00353441,0.162684 +0.923518,0.53,-0.00407147,0.148139 +0.919412,0.53,-0.00460866,0.1359 +0.915306,0.53,-0.00514515,0.123275 +0.9112,0.53,-0.00567931,0.111197 +0.907094,0.53,-0.00621109,0.0992527 +0.902987,0.53,-0.00674139,0.0869434 +0.89888,0.53,-0.00726865,0.0745182 +0.894772,0.53,-0.00778806,0.0626763 +0.890662,0.53,-0.0082949,0.0522202 +0.88655,0.53,-0.00878788,0.0433442 +0.882438,0.53,-0.00926908,0.035646 +0.878324,0.53,-0.00974175,0.0285389 +0.874209,0.53,-0.0102082,0.0216092 +0.870094,0.53,-0.0106694,0.0147475 +0.865979,0.53,-0.0111254,0.00801356 +0.861862,0.53,-0.0115758,0.0015047 +0.857745,0.53,-0.0120208,-0.00474528 +0.853628,0.53,-0.0124604,-0.0107503 +0.84951,0.53,-0.0128948,-0.0165446 +0.845391,0.53,-0.0133243,-0.0221561 +0.841272,0.53,-0.013749,-0.0276006 +0.837153,0.53,-0.0141691,-0.0328812 +0.833033,0.53,-0.0145845,-0.0380011 +0.828913,0.53,-0.0149955,-0.042978 +0.824792,0.53,-0.0154023,-0.0478368 +0.82067,0.53,-0.015805,-0.0525968 +0.816549,0.53,-0.0162038,-0.0572797 +0.812427,0.53,-0.0165988,-0.0619047 +0.808305,0.53,-0.0169903,-0.0664836 +0.804182,0.53,-0.0173782,-0.0710269 +0.800059,0.53,-0.0177627,-0.0755454 +0.795936,0.53,-0.018144,-0.080052 +0.791812,0.53,-0.0185219,-0.0845566 +0.787688,0.53,-0.0188968,-0.089072 +0.783564,0.53,-0.0192685,-0.0936109 +0.77944,0.53,-0.0196371,-0.0981842 +0.775315,0.53,-0.0200027,-0.102799 +0.77119,0.53,-0.0203652,-0.107459 +0.767065,0.53,-0.0207246,-0.112169 +0.762939,0.53,-0.021081,-0.116931 +0.758814,0.53,-0.0214341,-0.121741 +0.754688,0.53,-0.021784,-0.126601 +0.750561,0.53,-0.0221306,-0.131516 +0.746435,0.53,-0.0224738,-0.136497 +0.742308,0.53,-0.0228135,-0.14153 +0.738181,0.53,-0.0231496,-0.146616 +0.734053,0.53,-0.0234819,-0.151748 +0.729925,0.53,-0.0238102,-0.156921 +0.725797,0.53,-0.0241345,-0.162131 +0.721669,0.53,-0.0244546,-0.167368 +0.71754,0.53,-0.0247703,-0.172625 +0.713411,0.53,-0.0250814,-0.177891 +0.709281,0.53,-0.0253877,-0.183164 +0.705151,0.53,-0.025689,-0.188416 +0.701021,0.53,-0.0259852,-0.193666 +0.69689,0.53,-0.026276,-0.198868 +0.692759,0.53,-0.0265613,-0.20405 +0.688628,0.53,-0.0268407,-0.209161 +0.684496,0.53,-0.0271142,-0.214209 +0.680364,0.53,-0.0273816,-0.219154 +0.676231,0.53,-0.0276425,-0.224015 +0.672098,0.53,-0.0278969,-0.228734 +0.667965,0.53,-0.0281444,-0.23334 +0.663831,0.53,-0.028385,-0.237767 +0.659697,0.53,-0.0286183,-0.242051 +0.655562,0.53,-0.0288443,-0.246136 +0.651427,0.53,-0.0290628,-0.250067 +0.647292,0.53,-0.0292736,-0.253782 +0.643156,0.53,-0.0294765,-0.25729 +0.639019,0.53,-0.0296714,-0.260538 +0.634883,0.53,-0.0298581,-0.263527 +0.630746,0.53,-0.0300364,-0.266212 +0.626608,0.53,-0.0302063,-0.268627 +0.622471,0.53,-0.0303677,-0.270767 +0.618333,0.53,-0.0305205,-0.272721 +0.614194,0.53,-0.0306648,-0.274405 +0.610056,0.53,-0.0308003,-0.275898 +0.605917,0.53,-0.0309267,-0.276923 +0.601778,0.53,-0.0310437,-0.277533 +0.597638,0.53,-0.0311513,-0.27759 +0.593498,0.53,-0.0312495,-0.277189 +0.589359,0.53,-0.0313387,-0.276483 +0.585218,0.53,-0.0314191,-0.275645 +0.581078,0.53,-0.031491,-0.274764 +0.576938,0.53,-0.0315545,-0.273835 +0.572797,0.53,-0.0316093,-0.272753 +0.568657,0.53,-0.0316551,-0.271359 +0.564516,0.53,-0.0316915,-0.269524 +0.560375,0.53,-0.0317184,-0.267225 +0.556234,0.53,-0.0317361,-0.264562 +0.552094,0.53,-0.0317447,-0.26164 +0.547953,0.53,-0.0317445,-0.258538 +0.543812,0.53,-0.0317357,-0.255398 +0.539671,0.53,-0.0317184,-0.252175 +0.53553,0.53,-0.0316925,-0.248744 +0.53139,0.53,-0.0316582,-0.24516 +0.527249,0.53,-0.0316154,-0.241417 +0.523108,0.53,-0.0315641,-0.237532 +0.518968,0.53,-0.0315045,-0.233532 +0.514828,0.53,-0.0314368,-0.229449 +0.510688,0.53,-0.0313609,-0.225306 +0.506548,0.53,-0.0312769,-0.221115 +0.502408,0.53,-0.0311851,-0.216885 +0.498268,0.53,-0.0310852,-0.21262 +0.494129,0.53,-0.0309775,-0.208335 +0.489989,0.53,-0.030862,-0.204035 +0.48585,0.53,-0.0307386,-0.19974 +0.481712,0.53,-0.0306074,-0.19544 +0.477573,0.53,-0.0304684,-0.191134 +0.473435,0.53,-0.0303215,-0.186831 +0.469297,0.53,-0.0301667,-0.182535 +0.465159,0.53,-0.030004,-0.178257 +0.461022,0.53,-0.0298332,-0.173998 +0.456885,0.53,-0.0296543,-0.169755 +0.452748,0.53,-0.0294672,-0.165532 +0.448612,0.53,-0.0292715,-0.161328 +0.444476,0.53,-0.0290673,-0.157132 +0.440341,0.53,-0.0288542,-0.152954 +0.436206,0.53,-0.0286319,-0.148743 +0.432072,0.53,-0.0284003,-0.144487 +0.427938,0.53,-0.0281588,-0.140179 +0.423805,0.53,-0.0279072,-0.135817 +0.419672,0.53,-0.0276451,-0.131394 +0.41554,0.53,-0.027372,-0.1269 +0.411409,0.53,-0.0270874,-0.122301 +0.407279,0.53,-0.0267908,-0.117591 +0.40315,0.53,-0.0264815,-0.112658 +0.399021,0.53,-0.0261588,-0.107481 +0.394894,0.53,-0.0258221,-0.102076 +0.390768,0.53,-0.0254706,-0.0964148 +0.387303,0.53,-0.0251623,-0.0914796 +0.386662,0.53,-0.0251052,-0.0905656 +0.382615,0.53,-0.0247292,-0.0845303 +0.378627,0.53,-0.0243421,-0.0782312 +0.374693,0.53,-0.0239434,-0.0716845 +0.370813,0.53,-0.0235325,-0.0649248 diff --git a/examples/onera/cp3.csv b/examples/onera/cp3.csv new file mode 100644 index 0000000..8ea9a92 --- /dev/null +++ b/examples/onera/cp3.csv @@ -0,0 +1,357 @@ +Points_0,Points_1,Points_2,Pressure_Coefficient +0.504056,0.78,-0.0204463,-0.0678705 +0.500912,0.78,-0.0200828,-0.0594432 +0.497305,0.78,-0.0196474,-0.0511577 +0.493877,0.78,-0.0192143,-0.0429819 +0.490617,0.78,-0.0187838,-0.0351079 +0.487517,0.78,-0.0183561,-0.0276398 +0.484567,0.78,-0.0179324,-0.0211497 +0.48176,0.78,-0.017514,-0.0171094 +0.479089,0.78,-0.0171012,-0.0180036 +0.476545,0.78,-0.0166925,-0.0238403 +0.474123,0.78,-0.0162822,-0.0344294 +0.471819,0.78,-0.015861,-0.0463582 +0.46963,0.78,-0.0154169,-0.0581501 +0.467552,0.78,-0.0149377,-0.0598053 +0.465586,0.78,-0.0144128,-0.048519 +0.463733,0.78,-0.0138339,-0.0216497 +0.461992,0.78,-0.0131957,0.0239996 +0.460366,0.78,-0.0124956,0.0881622 +0.458857,0.78,-0.0117341,0.167529 +0.457467,0.78,-0.0109149,0.257141 +0.456194,0.78,-0.0100443,0.354331 +0.455041,0.78,-0.00912779,0.447572 +0.454006,0.78,-0.00817303,0.538793 +0.453089,0.78,-0.00718704,0.622788 +0.452292,0.78,-0.00617573,0.697127 +0.451615,0.78,-0.00514578,0.758301 +0.451061,0.78,-0.00410384,0.802433 +0.450634,0.78,-0.00305782,0.827871 +0.450332,0.78,-0.00201757,0.828246 +0.450156,0.78,-0.000994039,0.805529 +0.450099,0.78,0,0.763452 +0.450156,0.78,0.00099403,0.696632 +0.450332,0.78,0.00201757,0.608937 +0.450634,0.78,0.00305781,0.502186 +0.451061,0.78,0.00410382,0.383231 +0.451615,0.78,0.00514577,0.254777 +0.452292,0.78,0.00617572,0.121013 +0.453089,0.78,0.00718702,-0.016574 +0.454006,0.78,0.008173,-0.155562 +0.455041,0.78,0.00912778,-0.296489 +0.456194,0.78,0.0100443,-0.437333 +0.457467,0.78,0.0109149,-0.57304 +0.458857,0.78,0.0117341,-0.701558 +0.460366,0.78,0.0124956,-0.820864 +0.461992,0.78,0.0131957,-0.925802 +0.463732,0.78,0.0138339,-1.01365 +0.465586,0.78,0.0144128,-1.08311 +0.467552,0.78,0.0149377,-1.13402 +0.46963,0.78,0.0154169,-1.16742 +0.471819,0.78,0.015861,-1.18369 +0.474123,0.78,0.0162822,-1.18726 +0.476545,0.78,0.0166925,-1.18146 +0.479089,0.78,0.0171012,-1.1642 +0.48176,0.78,0.017514,-1.14491 +0.484567,0.78,0.0179324,-1.12696 +0.487517,0.78,0.0183561,-1.10994 +0.490617,0.78,0.0187837,-1.09505 +0.493877,0.78,0.0192143,-1.08197 +0.497305,0.78,0.0196474,-1.06968 +0.500912,0.78,0.0200827,-1.05681 +0.504056,0.78,0.0204463,-1.04901 +0.50727,0.78,0.0208031,-1.04063 +0.510557,0.78,0.0211532,-1.03246 +0.51392,0.78,0.0214966,-1.02493 +0.517364,0.78,0.0218337,-1.01731 +0.520892,0.78,0.0221646,-1.00992 +0.524508,0.78,0.0224895,-1.00353 +0.528151,0.78,0.022803,-0.997183 +0.531795,0.78,0.0231032,-0.990363 +0.535441,0.78,0.023391,-0.983734 +0.539087,0.78,0.0236669,-0.976791 +0.542734,0.78,0.0239314,-0.967046 +0.546382,0.78,0.0241853,-0.951901 +0.55003,0.78,0.0244289,-0.929526 +0.55368,0.78,0.0246627,-0.896544 +0.557329,0.78,0.0248872,-0.848798 +0.56098,0.78,0.0251027,-0.794943 +0.564631,0.78,0.0253095,-0.746119 +0.568282,0.78,0.0255079,-0.700424 +0.571934,0.78,0.0256982,-0.659297 +0.575586,0.78,0.0258806,-0.630172 +0.579238,0.78,0.0260554,-0.615411 +0.582891,0.78,0.0262227,-0.602671 +0.586545,0.78,0.0263827,-0.596186 +0.590198,0.78,0.0265355,-0.592887 +0.593852,0.78,0.0266811,-0.604692 +0.597506,0.78,0.0268198,-0.602462 +0.60116,0.78,0.0269515,-0.611856 +0.604815,0.78,0.0270763,-0.614478 +0.60847,0.78,0.0271942,-0.623571 +0.612125,0.78,0.0273052,-0.627706 +0.61578,0.78,0.0274093,-0.636237 +0.619435,0.78,0.0275065,-0.640718 +0.623091,0.78,0.0275968,-0.646141 +0.626746,0.78,0.0276801,-0.651424 +0.630402,0.78,0.0277564,-0.65643 +0.634058,0.78,0.0278257,-0.661428 +0.637715,0.78,0.0278878,-0.666503 +0.641371,0.78,0.0279428,-0.671533 +0.645027,0.78,0.0279905,-0.676615 +0.648684,0.78,0.0280307,-0.681653 +0.65234,0.78,0.0280635,-0.686755 +0.655997,0.78,0.0280888,-0.691809 +0.659654,0.78,0.0281066,-0.696914 +0.66331,0.78,0.028117,-0.70216 +0.666967,0.78,0.0281198,-0.707763 +0.670624,0.78,0.0281149,-0.713606 +0.67428,0.78,0.0281021,-0.719668 +0.677937,0.78,0.0280812,-0.725867 +0.681594,0.78,0.028052,-0.731982 +0.68525,0.78,0.0280146,-0.737757 +0.688906,0.78,0.027969,-0.742958 +0.692563,0.78,0.0279157,-0.74828 +0.696219,0.78,0.0278549,-0.752316 +0.699875,0.78,0.0277867,-0.754165 +0.703531,0.78,0.0277109,-0.751124 +0.707187,0.78,0.0276272,-0.740853 +0.710842,0.78,0.0275354,-0.723063 +0.714498,0.78,0.0274352,-0.699059 +0.718153,0.78,0.0273268,-0.662846 +0.721807,0.78,0.0272102,-0.593572 +0.725462,0.78,0.0270858,-0.508397 +0.729116,0.78,0.0269538,-0.427672 +0.73277,0.78,0.0268143,-0.361969 +0.736424,0.78,0.0266673,-0.311505 +0.740078,0.78,0.0265128,-0.272151 +0.743731,0.78,0.0263509,-0.242357 +0.747384,0.78,0.0261818,-0.222955 +0.751036,0.78,0.0260055,-0.210991 +0.754688,0.78,0.0258222,-0.203461 +0.75834,0.78,0.0256321,-0.198102 +0.761991,0.78,0.0254353,-0.193726 +0.765642,0.78,0.025232,-0.189961 +0.769293,0.78,0.0250223,-0.186577 +0.772943,0.78,0.0248063,-0.183205 +0.776593,0.78,0.0245843,-0.179844 +0.780243,0.78,0.0243564,-0.176437 +0.783892,0.78,0.0241228,-0.172888 +0.787541,0.78,0.0238837,-0.169219 +0.791189,0.78,0.0236392,-0.165429 +0.794838,0.78,0.0233896,-0.161521 +0.798485,0.78,0.023135,-0.157487 +0.802133,0.78,0.0228756,-0.153346 +0.80578,0.78,0.0226115,-0.149088 +0.809427,0.78,0.022343,-0.14474 +0.813073,0.78,0.0220703,-0.140299 +0.81672,0.78,0.0217934,-0.135784 +0.820365,0.78,0.0215125,-0.131199 +0.824011,0.78,0.0212279,-0.126557 +0.827656,0.78,0.0209396,-0.121863 +0.831301,0.78,0.0206478,-0.117136 +0.834946,0.78,0.0203527,-0.112384 +0.838591,0.78,0.0200542,-0.107616 +0.842235,0.78,0.0197527,-0.10283 +0.845879,0.78,0.0194481,-0.0980396 +0.849523,0.78,0.0191405,-0.0932436 +0.853166,0.78,0.01883,-0.0884519 +0.856809,0.78,0.0185168,-0.0836687 +0.860452,0.78,0.0182008,-0.0788998 +0.864095,0.78,0.017882,-0.0741433 +0.867738,0.78,0.0175606,-0.0693986 +0.87138,0.78,0.0172364,-0.0646617 +0.875022,0.78,0.0169096,-0.0599281 +0.878664,0.78,0.01658,-0.0551913 +0.882305,0.78,0.0162477,-0.0504448 +0.885947,0.78,0.0159125,-0.0456785 +0.889588,0.78,0.0155745,-0.0408838 +0.893229,0.78,0.0152336,-0.0360524 +0.896869,0.78,0.0148895,-0.031174 +0.900509,0.78,0.0145424,-0.026248 +0.904149,0.78,0.014192,-0.0212617 +0.907789,0.78,0.0138383,-0.0162022 +0.911428,0.78,0.0134811,-0.0110508 +0.915067,0.78,0.0131203,-0.0057903 +0.918705,0.78,0.0127556,-0.000403714 +0.922343,0.78,0.0123869,0.00511951 +0.925981,0.78,0.0120142,0.0107868 +0.929618,0.78,0.0116373,0.0166008 +0.933255,0.78,0.0112562,0.0225675 +0.936891,0.78,0.0108706,0.0287006 +0.940527,0.78,0.0104804,0.0350269 +0.944162,0.78,0.0100854,0.0415683 +0.947797,0.78,0.00968551,0.0483268 +0.951431,0.78,0.00928091,0.055263 +0.955065,0.78,0.00887174,0.0623164 +0.958698,0.78,0.00845771,0.0694821 +0.962331,0.78,0.00803755,0.0768994 +0.965962,0.78,0.00760871,0.0848798 +0.969592,0.78,0.00716853,0.0937653 +0.973221,0.78,0.00671616,0.103663 +0.976848,0.78,0.00625414,0.114268 +0.980475,0.78,0.00578709,0.125094 +0.984102,0.78,0.00531829,0.135696 +0.987728,0.78,0.00484798,0.146108 +0.991354,0.78,0.00437537,0.156698 +0.99498,0.78,0.00390121,0.168701 +0.998605,0.78,0.00342685,0.177834 +1.00205,0.78,0.00297583,0.189453 +1.00529,0.78,0.0025521,0.198681 +1.00835,0.78,0.00215212,0.206852 +1.01125,0.78,0.00177296,0.215753 +1.01387,0.78,0.00142944,0.224581 +1.01616,0.78,0.0011307,0.231395 +1.01814,0.78,0.000870924,0.238137 +1.01987,0.78,0.000645039,0.24468 +1.02137,0.78,0.00044859,0.250484 +1.02268,0.78,0.000277788,0.256693 +1.02381,0.78,0.000129238,0.262573 +1.0248,0.78,0,0.271317 +1.02381,0.78,-0.000129238,0.26681 +1.02268,0.78,-0.000277788,0.258125 +1.02137,0.78,-0.00044859,0.249254 +1.01987,0.78,-0.000645039,0.242039 +1.01814,0.78,-0.000870924,0.233166 +1.01616,0.78,-0.0011307,0.224569 +1.01387,0.78,-0.00142944,0.216378 +1.01125,0.78,-0.00177296,0.204767 +1.00835,0.78,-0.00215212,0.193694 +1.00529,0.78,-0.0025521,0.184364 +1.00205,0.78,-0.00297583,0.1731 +0.998605,0.78,-0.00342685,0.15901 +0.99498,0.78,-0.0039012,0.148599 +0.991354,0.78,-0.00437537,0.134517 +0.987728,0.78,-0.00484798,0.122491 +0.984102,0.78,-0.00531829,0.11075 +0.980475,0.78,-0.00578708,0.0988454 +0.976848,0.78,-0.00625414,0.0866031 +0.973221,0.78,-0.00671616,0.0746743 +0.969592,0.78,-0.00716852,0.0638064 +0.965962,0.78,-0.0076087,0.0544659 +0.962331,0.78,-0.00803755,0.0464558 +0.958698,0.78,-0.00845771,0.0392439 +0.955065,0.78,-0.00887174,0.0323382 +0.951431,0.78,-0.00928091,0.0255147 +0.947797,0.78,-0.00968551,0.0187892 +0.944162,0.78,-0.0100854,0.0122463 +0.940527,0.78,-0.0104804,0.00594881 +0.936891,0.78,-0.0108706,-0.000100384 +0.933255,0.78,-0.0112562,-0.00593203 +0.929618,0.78,-0.0116373,-0.0115819 +0.925981,0.78,-0.0120142,-0.0170674 +0.922343,0.78,-0.0123869,-0.0223973 +0.918705,0.78,-0.0127556,-0.0275722 +0.915067,0.78,-0.0131203,-0.0326025 +0.911428,0.78,-0.0134811,-0.0375063 +0.907789,0.78,-0.0138383,-0.0423074 +0.904149,0.78,-0.014192,-0.0470307 +0.900509,0.78,-0.0145424,-0.0516984 +0.896869,0.78,-0.0148895,-0.0563226 +0.893229,0.78,-0.0152336,-0.060914 +0.889588,0.78,-0.0155745,-0.0654824 +0.885947,0.78,-0.0159125,-0.0700391 +0.882306,0.78,-0.0162477,-0.0745967 +0.878664,0.78,-0.01658,-0.0791636 +0.875022,0.78,-0.0169096,-0.0837551 +0.87138,0.78,-0.0172364,-0.0883808 +0.867738,0.78,-0.0175605,-0.0930534 +0.864095,0.78,-0.017882,-0.0977813 +0.860452,0.78,-0.0182007,-0.102568 +0.856809,0.78,-0.0185168,-0.107412 +0.853166,0.78,-0.01883,-0.112321 +0.849523,0.78,-0.0191405,-0.117293 +0.845879,0.78,-0.019448,-0.122334 +0.842235,0.78,-0.0197527,-0.127439 +0.838591,0.78,-0.0200542,-0.132611 +0.834946,0.78,-0.0203526,-0.137851 +0.831301,0.78,-0.0206478,-0.143154 +0.827656,0.78,-0.0209396,-0.148521 +0.824011,0.78,-0.0212279,-0.153947 +0.820365,0.78,-0.0215125,-0.159418 +0.81672,0.78,-0.0217934,-0.164933 +0.813073,0.78,-0.0220703,-0.170472 +0.809427,0.78,-0.022343,-0.17604 +0.80578,0.78,-0.0226115,-0.18162 +0.802133,0.78,-0.0228756,-0.187201 +0.798485,0.78,-0.023135,-0.192777 +0.794838,0.78,-0.0233896,-0.198332 +0.791189,0.78,-0.0236392,-0.20386 +0.787541,0.78,-0.0238836,-0.209342 +0.783892,0.78,-0.0241228,-0.214773 +0.780243,0.78,-0.0243564,-0.220136 +0.776593,0.78,-0.0245843,-0.22541 +0.772943,0.78,-0.0248063,-0.230584 +0.769293,0.78,-0.0250223,-0.235625 +0.765642,0.78,-0.025232,-0.240534 +0.761991,0.78,-0.0254353,-0.245263 +0.75834,0.78,-0.0256321,-0.24985 +0.754688,0.78,-0.0258222,-0.254245 +0.751036,0.78,-0.0260055,-0.258465 +0.747384,0.78,-0.0261818,-0.262432 +0.743731,0.78,-0.0263509,-0.266171 +0.740078,0.78,-0.0265128,-0.269595 +0.736424,0.78,-0.0266673,-0.27274 +0.732771,0.78,-0.0268143,-0.275562 +0.729116,0.78,-0.0269538,-0.278181 +0.725462,0.78,-0.0270858,-0.280553 +0.721808,0.78,-0.0272102,-0.282679 +0.718153,0.78,-0.0273268,-0.284465 +0.714498,0.78,-0.0274352,-0.28582 +0.710842,0.78,-0.0275354,-0.286658 +0.707187,0.78,-0.0276272,-0.286974 +0.703531,0.78,-0.0277109,-0.286864 +0.699875,0.78,-0.0277867,-0.286494 +0.696219,0.78,-0.0278549,-0.286007 +0.692563,0.78,-0.0279157,-0.285475 +0.688907,0.78,-0.027969,-0.284846 +0.68525,0.78,-0.0280146,-0.283976 +0.681594,0.78,-0.028052,-0.282721 +0.677937,0.78,-0.0280812,-0.280993 +0.67428,0.78,-0.0281021,-0.278809 +0.670624,0.78,-0.0281149,-0.276264 +0.666967,0.78,-0.0281198,-0.273468 +0.66331,0.78,-0.028117,-0.27051 +0.659654,0.78,-0.0281066,-0.267561 +0.655997,0.78,-0.0280888,-0.26443 +0.65234,0.78,-0.0280635,-0.261115 +0.648684,0.78,-0.0280307,-0.257635 +0.645027,0.78,-0.0279905,-0.253993 +0.641371,0.78,-0.0279428,-0.250209 +0.637715,0.78,-0.0278878,-0.246317 +0.634059,0.78,-0.0278257,-0.24234 +0.630403,0.78,-0.0277564,-0.238302 +0.626747,0.78,-0.0276801,-0.234222 +0.623091,0.78,-0.0275968,-0.230079 +0.619435,0.78,-0.0275065,-0.22589 +0.61578,0.78,-0.0274093,-0.221669 +0.612125,0.78,-0.0273052,-0.217418 +0.60847,0.78,-0.0271942,-0.213149 +0.604815,0.78,-0.0270763,-0.208873 +0.60116,0.78,-0.0269515,-0.204595 +0.597506,0.78,-0.0268198,-0.200319 +0.593852,0.78,-0.0266811,-0.19605 +0.590198,0.78,-0.0265355,-0.19179 +0.586545,0.78,-0.0263827,-0.187535 +0.582891,0.78,-0.0262227,-0.183296 +0.579238,0.78,-0.0260554,-0.179065 +0.575586,0.78,-0.0258806,-0.174831 +0.571934,0.78,-0.0256982,-0.170577 +0.568282,0.78,-0.0255079,-0.166288 +0.564631,0.78,-0.0253095,-0.161972 +0.56098,0.78,-0.0251027,-0.157612 +0.55733,0.78,-0.0248872,-0.153192 +0.55368,0.78,-0.0246627,-0.148708 +0.550031,0.78,-0.0244289,-0.144139 +0.546382,0.78,-0.0241853,-0.139482 +0.542734,0.78,-0.0239314,-0.134693 +0.539087,0.78,-0.0236669,-0.129717 +0.535441,0.78,-0.023391,-0.124545 +0.531795,0.78,-0.0231033,-0.119121 +0.528151,0.78,-0.022803,-0.113414 +0.524508,0.78,-0.0224895,-0.107434 +0.520892,0.78,-0.0221647,-0.101276 +0.517364,0.78,-0.0218337,-0.0949383 +0.513921,0.78,-0.0214966,-0.0883989 +0.510557,0.78,-0.0211532,-0.0816534 +0.50727,0.78,-0.0208031,-0.0747478 diff --git a/examples/onera/cp4.csv b/examples/onera/cp4.csv new file mode 100644 index 0000000..d1ac893 --- /dev/null +++ b/examples/onera/cp4.csv @@ -0,0 +1,357 @@ +Points_0,Points_1,Points_2,Pressure_Coefficient +0.602749,0.96,-0.0185292,-0.0834817 +0.600063,0.96,-0.0182183,-0.0750841 +0.597005,0.96,-0.0178497,-0.0667207 +0.594079,0.96,-0.0174817,-0.0584975 +0.591279,0.96,-0.0171145,-0.0505196 +0.588599,0.96,-0.0167482,-0.0427608 +0.586033,0.96,-0.0163836,-0.0356686 +0.583576,0.96,-0.0160216,-0.0305853 +0.581222,0.96,-0.0156628,-0.0287153 +0.578967,0.96,-0.0153068,-0.0316876 +0.576806,0.96,-0.0149504,-0.0393497 +0.574736,0.96,-0.0145874,-0.0500864 +0.572756,0.96,-0.0142085,-0.0614294 +0.570863,0.96,-0.0138032,-0.068456 +0.569058,0.96,-0.0133612,-0.0645698 +0.567342,0.96,-0.0128736,-0.0464845 +0.565715,0.96,-0.0123331,-0.0120325 +0.564182,0.96,-0.011735,0.0415319 +0.562744,0.96,-0.0110769,0.112677 +0.561405,0.96,-0.0103588,0.197795 +0.560167,0.96,-0.00958441,0.292469 +0.559033,0.96,-0.00875818,0.390771 +0.558005,0.96,-0.00788489,0.486284 +0.557084,0.96,-0.00697136,0.577307 +0.556273,0.96,-0.00602297,0.659606 +0.555577,0.96,-0.00504523,0.730095 +0.554999,0.96,-0.0040447,0.782615 +0.554546,0.96,-0.00302856,0.815761 +0.554222,0.96,-0.00200722,0.821126 +0.554031,0.96,-0.000992709,0.798701 +0.553968,0.96,0,0.752412 +0.554031,0.96,0.000992705,0.676881 +0.554222,0.96,0.00200721,0.57708 +0.554546,0.96,0.00302856,0.457355 +0.554999,0.96,0.00404469,0.325738 +0.555577,0.96,0.00504522,0.186177 +0.556273,0.96,0.00602296,0.0431492 +0.557084,0.96,0.00697134,-0.102323 +0.558005,0.96,0.00788487,-0.24627 +0.559033,0.96,0.00875817,-0.392266 +0.560167,0.96,0.0095844,-0.533818 +0.561405,0.96,0.0103588,-0.666856 +0.562744,0.96,0.0110769,-0.79086 +0.564182,0.96,0.011735,-0.90148 +0.565715,0.96,0.0123331,-0.994932 +0.567342,0.96,0.0128736,-1.07025 +0.569058,0.96,0.0133613,-1.1278 +0.570863,0.96,0.0138032,-1.1676 +0.572756,0.96,0.0142085,-1.19167 +0.574736,0.96,0.0145874,-1.20132 +0.576806,0.96,0.0149504,-1.20036 +0.578967,0.96,0.0153068,-1.19068 +0.581222,0.96,0.0156628,-1.17326 +0.583576,0.96,0.0160216,-1.15669 +0.586033,0.96,0.0163836,-1.14104 +0.588599,0.96,0.0167482,-1.12665 +0.591279,0.96,0.0171145,-1.11408 +0.594079,0.96,0.0174817,-1.10282 +0.597005,0.96,0.0178497,-1.09267 +0.600063,0.96,0.0182183,-1.08255 +0.602749,0.96,0.0185292,-1.07574 +0.605519,0.96,0.0188378,-1.06874 +0.608379,0.96,0.0191439,-1.06193 +0.611332,0.96,0.0194475,-1.05533 +0.614383,0.96,0.0197485,-1.04889 +0.617538,0.96,0.0200469,-1.04273 +0.6208,0.96,0.0203426,-1.03663 +0.624096,0.96,0.0206287,-1.03069 +0.627392,0.96,0.0209027,-1.02537 +0.63069,0.96,0.0211654,-1.0204 +0.633989,0.96,0.0214172,-1.0153 +0.637288,0.96,0.0216587,-1.01034 +0.640588,0.96,0.0218904,-1.00568 +0.643889,0.96,0.0221128,-1.00103 +0.64719,0.96,0.0223263,-0.996231 +0.650492,0.96,0.0225312,-0.991603 +0.653794,0.96,0.022728,-0.987495 +0.657097,0.96,0.0229168,-0.983777 +0.6604,0.96,0.0230981,-0.979999 +0.663703,0.96,0.0232719,-0.975935 +0.667007,0.96,0.0234387,-0.971647 +0.670311,0.96,0.0235984,-0.967218 +0.673616,0.96,0.0237514,-0.962047 +0.676921,0.96,0.0238978,-0.95527 +0.680226,0.96,0.0240376,-0.945163 +0.683531,0.96,0.0241711,-0.929858 +0.686837,0.96,0.0242981,-0.908473 +0.690143,0.96,0.0244189,-0.881887 +0.693449,0.96,0.0245334,-0.848944 +0.696755,0.96,0.0246417,-0.810581 +0.700062,0.96,0.0247438,-0.770895 +0.703369,0.96,0.0248397,-0.735595 +0.706675,0.96,0.0249294,-0.707971 +0.709983,0.96,0.0250128,-0.68477 +0.71329,0.96,0.0250899,-0.668817 +0.716597,0.96,0.0251607,-0.657514 +0.719905,0.96,0.0252252,-0.659613 +0.723212,0.96,0.0252833,-0.650628 +0.72652,0.96,0.0253349,-0.657265 +0.729828,0.96,0.0253799,-0.652876 +0.733136,0.96,0.0254183,-0.649858 +0.736444,0.96,0.02545,-0.642345 +0.739751,0.96,0.0254749,-0.625133 +0.74306,0.96,0.0254931,-0.598017 +0.746368,0.96,0.0255045,-0.559708 +0.749676,0.96,0.0255091,-0.515696 +0.752984,0.96,0.0255069,-0.468665 +0.756292,0.96,0.0254976,-0.424006 +0.7596,0.96,0.0254811,-0.380212 +0.762908,0.96,0.0254571,-0.337796 +0.766216,0.96,0.0254256,-0.297587 +0.769524,0.96,0.0253867,-0.266078 +0.772832,0.96,0.0253408,-0.244198 +0.776139,0.96,0.025288,-0.228712 +0.779447,0.96,0.0252285,-0.217328 +0.782754,0.96,0.0251622,-0.210843 +0.786062,0.96,0.025089,-0.208233 +0.789369,0.96,0.0250084,-0.207976 +0.792676,0.96,0.0249204,-0.208345 +0.795982,0.96,0.0248249,-0.209722 +0.799289,0.96,0.024722,-0.210645 +0.802595,0.96,0.0246119,-0.211499 +0.805901,0.96,0.0244949,-0.211581 +0.809207,0.96,0.0243711,-0.211125 +0.812513,0.96,0.0242405,-0.210455 +0.815818,0.96,0.0241033,-0.209238 +0.819123,0.96,0.0239593,-0.207672 +0.822427,0.96,0.0238087,-0.205765 +0.825732,0.96,0.0236516,-0.20355 +0.829036,0.96,0.0234881,-0.201093 +0.83234,0.96,0.0233184,-0.198314 +0.835643,0.96,0.0231427,-0.19531 +0.838946,0.96,0.022961,-0.192045 +0.842249,0.96,0.0227735,-0.188557 +0.845551,0.96,0.0225803,-0.184832 +0.848854,0.96,0.0223815,-0.180901 +0.852155,0.96,0.0221774,-0.176777 +0.855457,0.96,0.0219681,-0.172486 +0.858758,0.96,0.0217537,-0.168041 +0.862059,0.96,0.0215345,-0.163476 +0.865359,0.96,0.0213106,-0.158804 +0.86866,0.96,0.021082,-0.154042 +0.871959,0.96,0.0208491,-0.149207 +0.875259,0.96,0.020612,-0.144311 +0.878558,0.96,0.0203707,-0.13937 +0.881857,0.96,0.0201256,-0.134392 +0.885156,0.96,0.0198766,-0.129392 +0.888454,0.96,0.019624,-0.124377 +0.891753,0.96,0.019368,-0.119358 +0.895051,0.96,0.0191086,-0.114345 +0.898348,0.96,0.018846,-0.109346 +0.901646,0.96,0.0185802,-0.104368 +0.904943,0.96,0.0183115,-0.0994164 +0.90824,0.96,0.01804,-0.0944975 +0.911537,0.96,0.0177656,-0.0896159 +0.914833,0.96,0.0174885,-0.0847769 +0.918129,0.96,0.0172088,-0.0799793 +0.921425,0.96,0.0169266,-0.0752295 +0.924721,0.96,0.0166418,-0.0705231 +0.928017,0.96,0.0163546,-0.0658592 +0.931312,0.96,0.0160649,-0.0612351 +0.934607,0.96,0.0157728,-0.0566501 +0.937902,0.96,0.0154782,-0.0520973 +0.941197,0.96,0.0151812,-0.0475704 +0.944492,0.96,0.0148818,-0.0430616 +0.947786,0.96,0.0145798,-0.0385612 +0.95108,0.96,0.0142752,-0.0340585 +0.954374,0.96,0.0139681,-0.0295417 +0.957667,0.96,0.0136582,-0.0250013 +0.960961,0.96,0.0133455,-0.0204265 +0.964254,0.96,0.01303,-0.015806 +0.967546,0.96,0.0127115,-0.0111286 +0.970839,0.96,0.0123899,-0.00637896 +0.974131,0.96,0.0120651,-0.0015384 +0.977423,0.96,0.0117369,0.00340944 +0.980714,0.96,0.0114052,0.00848428 +0.984005,0.96,0.0110699,0.0136917 +0.987296,0.96,0.0107309,0.0190384 +0.990586,0.96,0.010388,0.0245259 +0.993876,0.96,0.0100413,0.0301616 +0.997166,0.96,0.00969043,0.0359689 +1.00045,0.96,0.00933535,0.0419787 +1.00374,0.96,0.00897589,0.0482097 +1.00703,0.96,0.00861206,0.0546413 +1.01032,0.96,0.00824407,0.0612121 +1.01361,0.96,0.00787191,0.0678661 +1.01689,0.96,0.00749496,0.0746635 +1.02018,0.96,0.00711154,0.0818552 +1.02346,0.96,0.00671907,0.089836 +1.02675,0.96,0.00631569,0.098909 +1.03003,0.96,0.00590197,0.108989 +1.03331,0.96,0.00548139,0.119589 +1.03659,0.96,0.00505794,0.130229 +1.03987,0.96,0.00463333,0.140478 +1.04315,0.96,0.00420695,0.150795 +1.04643,0.96,0.00377859,0.161531 +1.04971,0.96,0.00334945,0.172208 +1.05289,0.96,0.00293356,0.18208 +1.05595,0.96,0.00253322,0.193606 +1.05891,0.96,0.0021463,0.201992 +1.06178,0.96,0.00177113,0.211447 +1.0644,0.96,0.00142798,0.22132 +1.06668,0.96,0.00112955,0.229254 +1.06866,0.96,0.000870028,0.236697 +1.07039,0.96,0.000644368,0.243753 +1.07189,0.96,0.000448135,0.2507 +1.07319,0.96,0.0002775,0.257714 +1.07433,0.96,0.000129109,0.264859 +1.07531,0.96,0,0.273757 +1.07433,0.96,-0.000129109,0.267254 +1.07319,0.96,-0.000277497,0.257539 +1.07189,0.96,-0.000448135,0.248947 +1.07039,0.96,-0.000644368,0.24035 +1.06866,0.96,-0.000870028,0.231725 +1.06668,0.96,-0.00112955,0.222676 +1.0644,0.96,-0.00142798,0.213067 +1.06178,0.96,-0.00177113,0.200634 +1.05891,0.96,-0.0021463,0.189507 +1.05595,0.96,-0.00253322,0.179517 +1.05289,0.96,-0.00293356,0.165866 +1.04971,0.96,-0.00334945,0.154741 +1.04643,0.96,-0.00377859,0.142021 +1.04315,0.96,-0.00420695,0.12993 +1.03987,0.96,-0.00463333,0.118338 +1.03659,0.96,-0.00505794,0.106882 +1.03331,0.96,-0.00548139,0.0950379 +1.03003,0.96,-0.00590197,0.0832343 +1.02675,0.96,-0.00631569,0.0721418 +1.02346,0.96,-0.00671907,0.0624249 +1.02018,0.96,-0.00711154,0.0541515 +1.01689,0.96,-0.00749496,0.0469182 +1.01361,0.96,-0.00787191,0.0401847 +1.01032,0.96,-0.00824407,0.0336057 +1.00703,0.96,-0.00861206,0.0271078 +1.00374,0.96,-0.00897589,0.020759 +1.00045,0.96,-0.00933535,0.0146411 +0.997166,0.96,-0.00969043,0.00877733 +0.993876,0.96,-0.0100413,0.00314567 +0.990586,0.96,-0.010388,-0.00229038 +0.987296,0.96,-0.0107309,-0.00756168 +0.984005,0.96,-0.0110699,-0.0126803 +0.980714,0.96,-0.0114052,-0.0176477 +0.977423,0.96,-0.0117369,-0.022467 +0.974131,0.96,-0.0120651,-0.0271559 +0.970839,0.96,-0.0123899,-0.031736 +0.967546,0.96,-0.0127115,-0.0362267 +0.964254,0.96,-0.01303,-0.0406496 +0.960961,0.96,-0.0133455,-0.0450222 +0.957667,0.96,-0.0136582,-0.0493613 +0.954374,0.96,-0.0139681,-0.053675 +0.95108,0.96,-0.0142752,-0.057985 +0.947786,0.96,-0.0145798,-0.0622991 +0.944492,0.96,-0.0148818,-0.0666283 +0.941197,0.96,-0.0151812,-0.0709836 +0.937902,0.96,-0.0154782,-0.0753743 +0.934607,0.96,-0.0157728,-0.0798107 +0.931312,0.96,-0.0160649,-0.0842981 +0.928017,0.96,-0.0163546,-0.0888491 +0.924721,0.96,-0.0166418,-0.0934623 +0.921425,0.96,-0.0169266,-0.098146 +0.918129,0.96,-0.0172088,-0.102902 +0.914833,0.96,-0.0174885,-0.107739 +0.911537,0.96,-0.0177656,-0.112649 +0.90824,0.96,-0.01804,-0.11764 +0.904943,0.96,-0.0183115,-0.122708 +0.901646,0.96,-0.0185802,-0.127847 +0.898348,0.96,-0.018846,-0.133055 +0.895051,0.96,-0.0191086,-0.138332 +0.891753,0.96,-0.019368,-0.143689 +0.888454,0.96,-0.019624,-0.149107 +0.885156,0.96,-0.0198766,-0.154587 +0.881857,0.96,-0.0201256,-0.16012 +0.878558,0.96,-0.0203707,-0.1657 +0.875259,0.96,-0.020612,-0.17132 +0.871959,0.96,-0.0208491,-0.176973 +0.86866,0.96,-0.021082,-0.182652 +0.865359,0.96,-0.0213106,-0.188351 +0.862059,0.96,-0.0215345,-0.194058 +0.858758,0.96,-0.0217537,-0.199772 +0.855457,0.96,-0.0219681,-0.20548 +0.852155,0.96,-0.0221774,-0.211171 +0.848854,0.96,-0.0223815,-0.216848 +0.845551,0.96,-0.0225803,-0.222458 +0.842249,0.96,-0.0227735,-0.228021 +0.838946,0.96,-0.022961,-0.233469 +0.835643,0.96,-0.0231427,-0.238862 +0.83234,0.96,-0.0233184,-0.24412 +0.829036,0.96,-0.0234881,-0.249333 +0.825732,0.96,-0.0236516,-0.254385 +0.822427,0.96,-0.0238087,-0.259339 +0.819123,0.96,-0.0239593,-0.264062 +0.815818,0.96,-0.0241033,-0.268646 +0.812513,0.96,-0.0242405,-0.272982 +0.809207,0.96,-0.0243711,-0.277174 +0.805901,0.96,-0.0244949,-0.281171 +0.802595,0.96,-0.0246119,-0.285024 +0.799289,0.96,-0.024722,-0.288652 +0.795982,0.96,-0.0248249,-0.292 +0.792676,0.96,-0.0249204,-0.294905 +0.789369,0.96,-0.0250084,-0.297398 +0.786062,0.96,-0.025089,-0.299282 +0.782754,0.96,-0.0251622,-0.300926 +0.779447,0.96,-0.0252285,-0.302257 +0.776139,0.96,-0.025288,-0.30352 +0.772832,0.96,-0.0253408,-0.304598 +0.769524,0.96,-0.0253867,-0.305511 +0.766216,0.96,-0.0254256,-0.30634 +0.762908,0.96,-0.0254571,-0.306371 +0.7596,0.96,-0.0254811,-0.305801 +0.756292,0.96,-0.0254976,-0.304778 +0.752984,0.96,-0.0255069,-0.303321 +0.749676,0.96,-0.0255091,-0.301539 +0.746368,0.96,-0.0255045,-0.29955 +0.74306,0.96,-0.0254931,-0.29742 +0.739751,0.96,-0.0254749,-0.294975 +0.736444,0.96,-0.02545,-0.292272 +0.733136,0.96,-0.0254183,-0.289277 +0.729828,0.96,-0.0253799,-0.28599 +0.72652,0.96,-0.0253349,-0.282448 +0.723212,0.96,-0.0252833,-0.2787 +0.719905,0.96,-0.0252252,-0.274784 +0.716597,0.96,-0.0251607,-0.270722 +0.71329,0.96,-0.0250899,-0.266528 +0.709983,0.96,-0.0250128,-0.262218 +0.706675,0.96,-0.0249294,-0.257809 +0.703369,0.96,-0.0248397,-0.253313 +0.700062,0.96,-0.0247438,-0.248745 +0.696755,0.96,-0.0246417,-0.244122 +0.693449,0.96,-0.0245334,-0.239467 +0.690143,0.96,-0.0244189,-0.234785 +0.686837,0.96,-0.0242981,-0.230066 +0.683531,0.96,-0.0241711,-0.225326 +0.680226,0.96,-0.0240376,-0.220565 +0.676921,0.96,-0.0238978,-0.215786 +0.673616,0.96,-0.0237514,-0.210997 +0.670311,0.96,-0.0235984,-0.206195 +0.667007,0.96,-0.0234387,-0.201384 +0.663703,0.96,-0.0232719,-0.196559 +0.6604,0.96,-0.0230981,-0.19171 +0.657096,0.96,-0.0229168,-0.186826 +0.653794,0.96,-0.022728,-0.181906 +0.650492,0.96,-0.0225312,-0.176926 +0.64719,0.96,-0.0223263,-0.17186 +0.643889,0.96,-0.0221128,-0.166685 +0.640588,0.96,-0.0218904,-0.161388 +0.637288,0.96,-0.0216587,-0.15595 +0.633989,0.96,-0.0214172,-0.150351 +0.63069,0.96,-0.0211654,-0.144551 +0.627392,0.96,-0.0209027,-0.138518 +0.624096,0.96,-0.0206287,-0.132211 +0.6208,0.96,-0.0203426,-0.125597 +0.617538,0.96,-0.0200469,-0.118807 +0.614383,0.96,-0.0197485,-0.111889 +0.611332,0.96,-0.0194475,-0.104873 +0.608379,0.96,-0.0191439,-0.0977638 +0.605519,0.96,-0.0188378,-0.0905618 diff --git a/examples/onera/cp5.csv b/examples/onera/cp5.csv new file mode 100644 index 0000000..20268dd --- /dev/null +++ b/examples/onera/cp5.csv @@ -0,0 +1,359 @@ +Points_0,Points_1,Points_2,Pressure_Coefficient +0.668544,1.08,-0.017251,-0.1291 +0.666165,1.08,-0.0169753,-0.119851 +0.663472,1.08,-0.0166511,-0.110603 +0.660881,1.08,-0.0163264,-0.101533 +0.658387,1.08,-0.0160012,-0.0926416 +0.655987,1.08,-0.0156757,-0.0839452 +0.653677,1.08,-0.0153502,-0.0759277 +0.651453,1.08,-0.0150256,-0.0695043 +0.649311,1.08,-0.0147025,-0.0658216 +0.647248,1.08,-0.0143809,-0.0660601 +0.645262,1.08,-0.014059,-0.0712034 +0.643349,1.08,-0.0137326,-0.0805389 +0.641509,1.08,-0.0133944,-0.0916436 +0.63974,1.08,-0.0130352,-0.10019 +0.638044,1.08,-0.0126453,-0.101294 +0.63642,1.08,-0.0122157,-0.0891037 +0.634872,1.08,-0.0117384,-0.061241 +0.633402,1.08,-0.0112072,-0.0156073 +0.632013,1.08,-0.010618,0.0493599 +0.63071,1.08,-0.00996871,0.130833 +0.629496,1.08,-0.00926033,0.224249 +0.628375,1.08,-0.00849648,0.32686 +0.627351,1.08,-0.00768037,0.426033 +0.626426,1.08,-0.00681758,0.523567 +0.625605,1.08,-0.00591359,0.613384 +0.624894,1.08,-0.00497295,0.692403 +0.624298,1.08,-0.00400203,0.753826 +0.623826,1.08,-0.00300744,0.79465 +0.623485,1.08,-0.00199974,0.80639 +0.623281,1.08,-0.000991751,0.786649 +0.623215,1.08,0,0.738353 +0.623281,1.08,0.000991746,0.657573 +0.623484,1.08,0.00199974,0.549165 +0.623826,1.08,0.00300744,0.42041 +0.624298,1.08,0.00400202,0.27992 +0.624894,1.08,0.00497295,0.13278 +0.625605,1.08,0.00591358,-0.016684 +0.626426,1.08,0.00681758,-0.166464 +0.627351,1.08,0.00768037,-0.315708 +0.628375,1.08,0.00849648,-0.463508 +0.629496,1.08,0.00926033,-0.603774 +0.63071,1.08,0.00996871,-0.734288 +0.632013,1.08,0.010618,-0.853187 +0.633402,1.08,0.0112072,-0.955876 +0.634872,1.08,0.0117384,-1.04018 +0.63642,1.08,0.0122157,-1.10596 +0.638044,1.08,0.0126453,-1.15484 +0.63974,1.08,0.0130352,-1.18781 +0.641509,1.08,0.0133944,-1.20523 +0.643349,1.08,0.0137326,-1.21078 +0.645262,1.08,0.014059,-1.20843 +0.647248,1.08,0.0143809,-1.19453 +0.649311,1.08,0.0147025,-1.17885 +0.651453,1.08,0.0150256,-1.16431 +0.653677,1.08,0.0153502,-1.1504 +0.655987,1.08,0.0156757,-1.13811 +0.658387,1.08,0.0160012,-1.12753 +0.660881,1.08,0.0163264,-1.11829 +0.663472,1.08,0.0166511,-1.10963 +0.666165,1.08,0.0169753,-1.10079 +0.668544,1.08,0.017251,-1.09482 +0.671019,1.08,0.0175274,-1.08892 +0.673594,1.08,0.0178042,-1.08332 +0.676273,1.08,0.0180812,-1.07777 +0.679063,1.08,0.018358,-1.07243 +0.681968,1.08,0.0186347,-1.06704 +0.684995,1.08,0.018911,-1.062 +0.688059,1.08,0.0191788,-1.05757 +0.691124,1.08,0.0194354,-1.05326 +0.69419,1.08,0.0196813,-1.04947 +0.697256,1.08,0.0199171,-1.04619 +0.700324,1.08,0.0201432,-1.04289 +0.703392,1.08,0.0203601,-1.03963 +0.706461,1.08,0.0205684,-1.03692 +0.70953,1.08,0.0207683,-1.03479 +0.7126,1.08,0.0209603,-1.03281 +0.71567,1.08,0.0211446,-1.03075 +0.71874,1.08,0.0213215,-1.02885 +0.721811,1.08,0.0214913,-1.02753 +0.724883,1.08,0.0216542,-1.02676 +0.727954,1.08,0.0218105,-1.02634 +0.731027,1.08,0.0219602,-1.02616 +0.734099,1.08,0.0221037,-1.02677 +0.737171,1.08,0.022241,-1.02724 +0.740244,1.08,0.0223722,-1.02378 +0.743318,1.08,0.0224974,-1.02093 +0.746391,1.08,0.0226168,-1.00582 +0.749465,1.08,0.0227303,-0.960879 +0.752539,1.08,0.0228379,-0.845511 +0.755613,1.08,0.0229398,-0.718569 +0.758687,1.08,0.023036,-0.624208 +0.761761,1.08,0.0231263,-0.540785 +0.764836,1.08,0.0232109,-0.467738 +0.76791,1.08,0.0232897,-0.415332 +0.770985,1.08,0.0233627,-0.372695 +0.77406,1.08,0.0234299,-0.336395 +0.777135,1.08,0.0234912,-0.308443 +0.780211,1.08,0.0235465,-0.283657 +0.783286,1.08,0.0235959,-0.261946 +0.786361,1.08,0.0236392,-0.242856 +0.789437,1.08,0.0236763,-0.226052 +0.792512,1.08,0.0237072,-0.212047 +0.795588,1.08,0.0237319,-0.200658 +0.798664,1.08,0.0237503,-0.191814 +0.801739,1.08,0.0237624,-0.185278 +0.804815,1.08,0.0237683,-0.180793 +0.807891,1.08,0.0237678,-0.178165 +0.810966,1.08,0.0237608,-0.177023 +0.814042,1.08,0.0237471,-0.177085 +0.817118,1.08,0.0237266,-0.178219 +0.820193,1.08,0.0236991,-0.179787 +0.823269,1.08,0.0236647,-0.181889 +0.826344,1.08,0.0236236,-0.184256 +0.82942,1.08,0.0235762,-0.186799 +0.832495,1.08,0.0235225,-0.189368 +0.83557,1.08,0.0234626,-0.191924 +0.838645,1.08,0.0233963,-0.194285 +0.84172,1.08,0.0233232,-0.19638 +0.844795,1.08,0.0232433,-0.19809 +0.847869,1.08,0.0231564,-0.199361 +0.850943,1.08,0.0230626,-0.200154 +0.854017,1.08,0.0229621,-0.200456 +0.857091,1.08,0.0228551,-0.200318 +0.860165,1.08,0.0227418,-0.199711 +0.863238,1.08,0.0226222,-0.198803 +0.866311,1.08,0.0224963,-0.19753 +0.869384,1.08,0.0223642,-0.19578 +0.872457,1.08,0.022226,-0.19372 +0.875529,1.08,0.0220817,-0.191274 +0.878601,1.08,0.0219314,-0.188525 +0.881673,1.08,0.0217754,-0.185481 +0.884744,1.08,0.0216137,-0.182176 +0.887815,1.08,0.0214464,-0.178651 +0.890886,1.08,0.0212737,-0.174899 +0.893957,1.08,0.0210957,-0.170956 +0.897027,1.08,0.0209125,-0.16684 +0.900097,1.08,0.0207243,-0.162571 +0.903167,1.08,0.0205311,-0.158174 +0.906236,1.08,0.0203333,-0.153668 +0.909305,1.08,0.0201309,-0.149065 +0.912374,1.08,0.019924,-0.144403 +0.915442,1.08,0.0197129,-0.139689 +0.91851,1.08,0.0194977,-0.134939 +0.921578,1.08,0.0192785,-0.130168 +0.924646,1.08,0.0190554,-0.125383 +0.927713,1.08,0.0188286,-0.120598 +0.93078,1.08,0.0185983,-0.115819 +0.933847,1.08,0.0183646,-0.111053 +0.936914,1.08,0.0181276,-0.106309 +0.93998,1.08,0.0178875,-0.101592 +0.943046,1.08,0.0176443,-0.0969069 +0.946112,1.08,0.0173982,-0.0922625 +0.949178,1.08,0.0171494,-0.087662 +0.952243,1.08,0.0168978,-0.08311 +0.955308,1.08,0.0166436,-0.0786067 +0.958373,1.08,0.0163869,-0.0741577 +0.961438,1.08,0.0161277,-0.0697601 +0.964502,1.08,0.0158661,-0.0654134 +0.967567,1.08,0.0156022,-0.0611139 +0.970631,1.08,0.0153359,-0.0568657 +0.973695,1.08,0.0150674,-0.0526684 +0.976759,1.08,0.0147967,-0.0485179 +0.979822,1.08,0.0145236,-0.0444081 +0.982886,1.08,0.0142484,-0.0403338 +0.985949,1.08,0.0139708,-0.0362892 +0.989012,1.08,0.0136909,-0.032264 +0.992074,1.08,0.0134087,-0.0282509 +0.995137,1.08,0.013124,-0.0242389 +0.998199,1.08,0.0128368,-0.0202147 +1.00126,1.08,0.0125471,-0.0161713 +1.00432,1.08,0.0122548,-0.0120997 +1.00739,1.08,0.0119598,-0.00798672 +1.01045,1.08,0.0116619,-0.00381836 +1.01351,1.08,0.0113611,0.000421747 +1.01657,1.08,0.0110572,0.004745 +1.01963,1.08,0.0107501,0.00916974 +1.02269,1.08,0.0104397,0.0137078 +1.02575,1.08,0.0101259,0.0183655 +1.02881,1.08,0.00980858,0.0231504 +1.03187,1.08,0.00948767,0.0280687 +1.03492,1.08,0.00916305,0.0331368 +1.03798,1.08,0.00883455,0.0383672 +1.04104,1.08,0.00850201,0.0437989 +1.0441,1.08,0.00816542,0.0494342 +1.04715,1.08,0.00782486,0.0552309 +1.05021,1.08,0.00748048,0.0611308 +1.05327,1.08,0.00713202,0.0671341 +1.05632,1.08,0.00677833,0.0733746 +1.05938,1.08,0.00641728,0.0801248 +1.06243,1.08,0.00604668,0.087709 +1.06548,1.08,0.00566587,0.0962654 +1.06853,1.08,0.00527709,0.105549 +1.07158,1.08,0.00488417,0.115099 +1.07463,1.08,0.00448984,0.124421 +1.07711,1.08,0.00416909,0.131838 +1.07768,1.08,0.00409425,0.133567 +1.08073,1.08,0.0036967,0.142967 +1.08378,1.08,0.00329787,0.153921 +1.08678,1.08,0.00290538,0.161721 +1.08973,1.08,0.00252061,0.172301 +1.09262,1.08,0.00214242,0.181401 +1.09546,1.08,0.00176994,0.189781 +1.09808,1.08,0.001427,0.198609 +1.10036,1.08,0.00112878,0.206966 +1.10235,1.08,0.00086943,0.213943 +1.10407,1.08,0.000643931,0.221127 +1.10557,1.08,0.000447818,0.227548 +1.10687,1.08,0.000277301,0.234387 +1.10801,1.08,0.000129017,0.241739 +1.10899,1.08,0,0.25204 +1.10801,1.08,-0.000129017,0.246835 +1.10687,1.08,-0.000277301,0.236229 +1.10557,1.08,-0.000447818,0.226976 +1.10407,1.08,-0.000643931,0.21919 +1.10235,1.08,-0.00086943,0.209426 +1.10036,1.08,-0.00112878,0.201099 +1.09808,1.08,-0.001427,0.190191 +1.09546,1.08,-0.00176994,0.179211 +1.09262,1.08,-0.00214242,0.168968 +1.08973,1.08,-0.00252061,0.157844 +1.08678,1.08,-0.00290538,0.144606 +1.08378,1.08,-0.00329787,0.135456 +1.08073,1.08,-0.0036967,0.122302 +1.07768,1.08,-0.00409425,0.111435 +1.07711,1.08,-0.00416909,0.109446 +1.07463,1.08,-0.00448984,0.100918 +1.07158,1.08,-0.00488417,0.0902369 +1.06853,1.08,-0.00527709,0.0792702 +1.06548,1.08,-0.00566587,0.0686071 +1.06243,1.08,-0.00604668,0.0590001 +1.05938,1.08,-0.00641728,0.050881 +1.05632,1.08,-0.00677833,0.0440669 +1.05327,1.08,-0.00713202,0.0380289 +1.05021,1.08,-0.00748048,0.0322823 +1.04715,1.08,-0.00782486,0.0266095 +1.0441,1.08,-0.00816542,0.0210207 +1.04104,1.08,-0.00850201,0.0156058 +1.03798,1.08,-0.00883455,0.0104189 +1.03492,1.08,-0.00916305,0.00546199 +1.03187,1.08,-0.00948767,0.000704134 +1.02881,1.08,-0.00980858,-0.00388794 +1.02575,1.08,-0.0101259,-0.00833284 +1.02269,1.08,-0.0104397,-0.0126348 +1.01963,1.08,-0.0107501,-0.0168046 +1.01657,1.08,-0.0110572,-0.0208413 +1.01351,1.08,-0.0113611,-0.024768 +1.01045,1.08,-0.0116619,-0.0286027 +1.00739,1.08,-0.0119598,-0.0323694 +1.00432,1.08,-0.0122548,-0.0360906 +1.00126,1.08,-0.0125471,-0.0397766 +0.998199,1.08,-0.0128368,-0.0434496 +0.995137,1.08,-0.013124,-0.0471153 +0.992074,1.08,-0.0134087,-0.0507798 +0.989012,1.08,-0.0136909,-0.0544608 +0.985949,1.08,-0.0139708,-0.0581637 +0.982886,1.08,-0.0142484,-0.0618984 +0.979822,1.08,-0.0145236,-0.0656815 +0.976759,1.08,-0.0147967,-0.0695131 +0.973695,1.08,-0.0150674,-0.0734035 +0.970631,1.08,-0.0153359,-0.0773592 +0.967567,1.08,-0.0156022,-0.0813837 +0.964502,1.08,-0.0158661,-0.0854864 +0.961438,1.08,-0.0161277,-0.0896629 +0.958373,1.08,-0.0163869,-0.0939158 +0.955308,1.08,-0.0166436,-0.0982468 +0.952243,1.08,-0.0168978,-0.102651 +0.949178,1.08,-0.0171494,-0.107126 +0.946112,1.08,-0.0173982,-0.111674 +0.943046,1.08,-0.0176443,-0.116291 +0.93998,1.08,-0.0178875,-0.120986 +0.936914,1.08,-0.0181276,-0.12575 +0.933847,1.08,-0.0183646,-0.130568 +0.93078,1.08,-0.0185983,-0.135448 +0.927713,1.08,-0.0188286,-0.140391 +0.924646,1.08,-0.0190554,-0.145377 +0.921578,1.08,-0.0192785,-0.150397 +0.91851,1.08,-0.0194977,-0.155446 +0.915442,1.08,-0.0197129,-0.160522 +0.912374,1.08,-0.019924,-0.16562 +0.909305,1.08,-0.0201309,-0.170739 +0.906236,1.08,-0.0203333,-0.175866 +0.903167,1.08,-0.0205311,-0.181 +0.900097,1.08,-0.0207243,-0.186131 +0.897027,1.08,-0.0209125,-0.191227 +0.893957,1.08,-0.0210957,-0.196276 +0.890886,1.08,-0.0212737,-0.20127 +0.887815,1.08,-0.0214464,-0.206204 +0.884744,1.08,-0.0216137,-0.211075 +0.881673,1.08,-0.0217754,-0.215884 +0.878601,1.08,-0.0219314,-0.220629 +0.875529,1.08,-0.0220817,-0.225315 +0.872457,1.08,-0.022226,-0.229888 +0.869384,1.08,-0.0223642,-0.234338 +0.866311,1.08,-0.0224963,-0.238664 +0.863238,1.08,-0.0226222,-0.242876 +0.860165,1.08,-0.0227418,-0.247006 +0.857091,1.08,-0.0228551,-0.251072 +0.854017,1.08,-0.0229621,-0.255075 +0.850943,1.08,-0.0230626,-0.258974 +0.847869,1.08,-0.0231564,-0.262683 +0.844795,1.08,-0.0232433,-0.26611 +0.84172,1.08,-0.0233232,-0.269222 +0.838645,1.08,-0.0233963,-0.272066 +0.83557,1.08,-0.0234626,-0.274765 +0.832495,1.08,-0.0235225,-0.277453 +0.82942,1.08,-0.0235762,-0.280213 +0.826344,1.08,-0.0236236,-0.283049 +0.823269,1.08,-0.0236647,-0.285871 +0.820193,1.08,-0.0236991,-0.288546 +0.817118,1.08,-0.0237266,-0.290957 +0.814042,1.08,-0.0237471,-0.293063 +0.810966,1.08,-0.0237608,-0.294903 +0.807891,1.08,-0.0237678,-0.296558 +0.804815,1.08,-0.0237683,-0.298094 +0.801739,1.08,-0.0237624,-0.299564 +0.798664,1.08,-0.0237503,-0.301056 +0.795588,1.08,-0.0237319,-0.302392 +0.792512,1.08,-0.0237072,-0.303553 +0.789437,1.08,-0.0236763,-0.304461 +0.786361,1.08,-0.0236392,-0.305145 +0.783286,1.08,-0.0235959,-0.305656 +0.780211,1.08,-0.0235465,-0.306015 +0.777135,1.08,-0.0234912,-0.306089 +0.77406,1.08,-0.0234299,-0.305804 +0.770985,1.08,-0.0233627,-0.305393 +0.76791,1.08,-0.0232897,-0.30484 +0.764836,1.08,-0.0232109,-0.30392 +0.761761,1.08,-0.0231263,-0.30266 +0.758687,1.08,-0.023036,-0.301165 +0.755613,1.08,-0.0229398,-0.299414 +0.752539,1.08,-0.0228379,-0.297336 +0.749465,1.08,-0.0227303,-0.294977 +0.746391,1.08,-0.0226168,-0.292362 +0.743318,1.08,-0.0224974,-0.289441 +0.740244,1.08,-0.0223722,-0.286188 +0.737171,1.08,-0.022241,-0.282613 +0.734099,1.08,-0.0221037,-0.27873 +0.731027,1.08,-0.0219602,-0.27456 +0.727954,1.08,-0.0218105,-0.270096 +0.724883,1.08,-0.0216542,-0.265366 +0.721811,1.08,-0.0214913,-0.260399 +0.71874,1.08,-0.0213215,-0.255132 +0.71567,1.08,-0.0211446,-0.249571 +0.7126,1.08,-0.0209603,-0.243746 +0.70953,1.08,-0.0207683,-0.237666 +0.706461,1.08,-0.0205684,-0.231342 +0.703392,1.08,-0.0203601,-0.224771 +0.700324,1.08,-0.0201432,-0.217963 +0.697256,1.08,-0.0199171,-0.21091 +0.69419,1.08,-0.0196813,-0.203564 +0.691124,1.08,-0.0194354,-0.195876 +0.688059,1.08,-0.0191788,-0.187827 +0.684995,1.08,-0.018911,-0.179449 +0.681968,1.08,-0.0186347,-0.170977 +0.679063,1.08,-0.018358,-0.162509 +0.676273,1.08,-0.0180812,-0.154093 +0.673594,1.08,-0.0178042,-0.145666 +0.671019,1.08,-0.0175274,-0.137281 diff --git a/examples/onera/cp6.csv b/examples/onera/cp6.csv new file mode 100644 index 0000000..3a53c73 --- /dev/null +++ b/examples/onera/cp6.csv @@ -0,0 +1,357 @@ +Points_0,Points_1,Points_2,Pressure_Coefficient +0.701442,1.14,-0.016612,-0.214062 +0.699215,1.14,-0.0163539,-0.203344 +0.696705,1.14,-0.0160519,-0.192227 +0.694282,1.14,-0.0157487,-0.181091 +0.691941,1.14,-0.0154444,-0.170084 +0.689681,1.14,-0.0151392,-0.15926 +0.687499,1.14,-0.0148332,-0.14903 +0.685391,1.14,-0.0145273,-0.140316 +0.683356,1.14,-0.0142219,-0.134171 +0.681389,1.14,-0.0139173,-0.131839 +0.679489,1.14,-0.0136123,-0.13449 +0.677655,1.14,-0.0133035,-0.14158 +0.675886,1.14,-0.0129845,-0.151657 +0.674179,1.14,-0.0126473,-0.160654 +0.672537,1.14,-0.0122824,-0.161773 +0.670961,1.14,-0.0118807,-0.152065 +0.669452,1.14,-0.0114341,-0.125892 +0.668014,1.14,-0.0109359,-0.082234 +0.66665,1.14,-0.010381,-0.019133 +0.665366,1.14,-0.00976643,0.0618014 +0.664164,1.14,-0.00909173,0.156427 +0.66305,1.14,-0.00835982,0.26194 +0.662027,1.14,-0.00757333,0.365253 +0.661101,1.14,-0.00673686,0.467772 +0.660274,1.14,-0.00585599,0.563512 +0.659555,1.14,-0.0049348,0.648765 +0.65895,1.14,-0.00397941,0.717074 +0.658467,1.14,-0.00299626,0.764211 +0.658117,1.14,-0.0019958,0.78168 +0.657907,1.14,-0.000991243,0.765237 +0.657837,1.14,0,0.717855 +0.657907,1.14,0.000991241,0.635714 +0.658117,1.14,0.0019958,0.523592 +0.658467,1.14,0.00299627,0.390878 +0.65895,1.14,0.00397941,0.24636 +0.659555,1.14,0.0049348,0.0958951 +0.660274,1.14,0.00585599,-0.0565396 +0.661101,1.14,0.00673686,-0.207957 +0.662027,1.14,0.00757333,-0.359471 +0.66305,1.14,0.00835982,-0.507648 +0.664164,1.14,0.00909173,-0.646661 +0.665366,1.14,0.00976643,-0.775197 +0.66665,1.14,0.010381,-0.890272 +0.668014,1.14,0.0109359,-0.987829 +0.669452,1.14,0.0114341,-1.06687 +0.670961,1.14,0.0118807,-1.128 +0.672537,1.14,0.0122824,-1.17272 +0.674179,1.14,0.0126473,-1.20248 +0.675886,1.14,0.0129846,-1.21734 +0.677655,1.14,0.0133035,-1.22124 +0.679489,1.14,0.0136123,-1.21695 +0.681389,1.14,0.0139173,-1.20442 +0.683356,1.14,0.0142219,-1.19115 +0.685391,1.14,0.0145273,-1.17842 +0.687499,1.14,0.0148332,-1.16717 +0.689681,1.14,0.0151392,-1.15831 +0.691941,1.14,0.0154444,-1.15059 +0.694282,1.14,0.0157487,-1.14394 +0.696705,1.14,0.0160519,-1.13796 +0.699215,1.14,0.0163539,-1.13236 +0.701442,1.14,0.016612,-1.12973 +0.703768,1.14,0.0168722,-1.12689 +0.706201,1.14,0.0171343,-1.12451 +0.708744,1.14,0.0173979,-1.123 +0.711403,1.14,0.0176627,-1.12146 +0.714183,1.14,0.0179285,-1.11998 +0.717093,1.14,0.018195,-1.11935 +0.720041,1.14,0.0184537,-1.1187 +0.72299,1.14,0.0187016,-1.11746 +0.72594,1.14,0.0189391,-1.11631 +0.728891,1.14,0.0191669,-1.1156 +0.731842,1.14,0.0193853,-1.11443 +0.734794,1.14,0.0195949,-1.11112 +0.737747,1.14,0.0197961,-1.10606 +0.7407,1.14,0.0199893,-1.10062 +0.743653,1.14,0.0201747,-1.09497 +0.746608,1.14,0.0203528,-1.0875 +0.749563,1.14,0.0205237,-1.07646 +0.752517,1.14,0.0206878,-1.05817 +0.755473,1.14,0.0208452,-1.02513 +0.758428,1.14,0.0209963,-0.944349 +0.761384,1.14,0.021141,-0.805081 +0.76434,1.14,0.0212797,-0.657911 +0.767297,1.14,0.0214125,-0.55438 +0.770254,1.14,0.0215394,-0.483095 +0.773211,1.14,0.0216605,-0.430726 +0.776168,1.14,0.021776,-0.384042 +0.779126,1.14,0.0218858,-0.350239 +0.782083,1.14,0.0219901,-0.319986 +0.785041,1.14,0.0220888,-0.292914 +0.787999,1.14,0.0221819,-0.269024 +0.790957,1.14,0.0222695,-0.246815 +0.793916,1.14,0.0223516,-0.227577 +0.796874,1.14,0.0224281,-0.211138 +0.799833,1.14,0.022499,-0.197901 +0.802792,1.14,0.0225644,-0.187538 +0.805751,1.14,0.022624,-0.180208 +0.80871,1.14,0.022678,-0.175468 +0.811669,1.14,0.0227262,-0.173121 +0.814628,1.14,0.0227687,-0.172553 +0.817587,1.14,0.0228052,-0.173243 +0.820547,1.14,0.0228357,-0.175779 +0.823506,1.14,0.0228603,-0.178987 +0.826465,1.14,0.0228788,-0.182512 +0.829425,1.14,0.0228913,-0.186439 +0.832385,1.14,0.0228977,-0.190347 +0.835344,1.14,0.0228981,-0.194099 +0.838303,1.14,0.0228922,-0.19763 +0.841263,1.14,0.02288,-0.200949 +0.844222,1.14,0.0228611,-0.203953 +0.847182,1.14,0.0228356,-0.206548 +0.850141,1.14,0.0228034,-0.208691 +0.8531,1.14,0.0227649,-0.21042 +0.856059,1.14,0.0227201,-0.211792 +0.859019,1.14,0.0226693,-0.212852 +0.861978,1.14,0.0226126,-0.213608 +0.864937,1.14,0.0225497,-0.214056 +0.867895,1.14,0.0224804,-0.214124 +0.870854,1.14,0.0224045,-0.213753 +0.873812,1.14,0.0223219,-0.212912 +0.87677,1.14,0.0222327,-0.211617 +0.879728,1.14,0.0221369,-0.209932 +0.882686,1.14,0.022035,-0.207917 +0.885643,1.14,0.0219269,-0.205642 +0.888601,1.14,0.0218127,-0.203116 +0.891558,1.14,0.0216926,-0.20035 +0.894515,1.14,0.0215665,-0.197344 +0.897471,1.14,0.0214344,-0.194105 +0.900428,1.14,0.0212965,-0.190653 +0.903384,1.14,0.0211529,-0.187005 +0.906339,1.14,0.0210037,-0.183201 +0.909295,1.14,0.020849,-0.179255 +0.91225,1.14,0.0206889,-0.175185 +0.915205,1.14,0.0205236,-0.171007 +0.91816,1.14,0.0203532,-0.166735 +0.921114,1.14,0.0201778,-0.162375 +0.924068,1.14,0.0199975,-0.157937 +0.927022,1.14,0.0198124,-0.15345 +0.929975,1.14,0.0196229,-0.148922 +0.932928,1.14,0.0194289,-0.144373 +0.935881,1.14,0.0192306,-0.139811 +0.938834,1.14,0.0190282,-0.135248 +0.941786,1.14,0.0188218,-0.130689 +0.944738,1.14,0.0186115,-0.126143 +0.94769,1.14,0.0183976,-0.121615 +0.950641,1.14,0.01818,-0.117114 +0.953592,1.14,0.017959,-0.112645 +0.956543,1.14,0.0177348,-0.108215 +0.959494,1.14,0.0175073,-0.103831 +0.962445,1.14,0.0172768,-0.099503 +0.965395,1.14,0.0170434,-0.0952375 +0.968345,1.14,0.0168071,-0.0910373 +0.971295,1.14,0.0165682,-0.0869042 +0.974245,1.14,0.0163266,-0.0828409 +0.977194,1.14,0.0160825,-0.0788484 +0.980143,1.14,0.0158359,-0.074928 +0.983092,1.14,0.015587,-0.0710759 +0.986041,1.14,0.0153358,-0.0672919 +0.98899,1.14,0.0150822,-0.0635799 +0.991938,1.14,0.0148265,-0.0599406 +0.994887,1.14,0.0145686,-0.0563702 +0.997835,1.14,0.0143085,-0.0528697 +1.00078,1.14,0.0140462,-0.049442 +1.00373,1.14,0.0137818,-0.0460769 +1.00668,1.14,0.0135152,-0.0427595 +1.00962,1.14,0.0132463,-0.0394724 +1.01257,1.14,0.0129752,-0.0362179 +1.01552,1.14,0.0127018,-0.032984 +1.01847,1.14,0.012426,-0.029764 +1.02141,1.14,0.0121478,-0.0265547 +1.02436,1.14,0.0118671,-0.0233426 +1.0273,1.14,0.0115837,-0.0201175 +1.03025,1.14,0.0112977,-0.016873 +1.03319,1.14,0.0110089,-0.0135921 +1.03614,1.14,0.0107172,-0.0102586 +1.03909,1.14,0.0104224,-0.00685796 +1.04203,1.14,0.0101244,-0.00337625 +1.04497,1.14,0.00982318,0.000195641 +1.04792,1.14,0.00951861,0.00386145 +1.05086,1.14,0.00921061,0.00762315 +1.0538,1.14,0.00889909,0.0114899 +1.05675,1.14,0.00858386,0.0154911 +1.05969,1.14,0.00826479,0.0196552 +1.06263,1.14,0.0079418,0.0239912 +1.06557,1.14,0.00761498,0.0284714 +1.06851,1.14,0.00728447,0.0330326 +1.07145,1.14,0.00695015,0.0376299 +1.07439,1.14,0.00661117,0.0423574 +1.07733,1.14,0.00626566,0.047533 +1.08027,1.14,0.00591137,0.0535793 +1.08321,1.14,0.00554721,0.0607755 +1.08614,1.14,0.00517464,0.0689677 +1.08908,1.14,0.0047972,0.0776252 +1.09201,1.14,0.00441801,0.0862211 +1.09495,1.14,0.00403772,0.0945924 +1.09788,1.14,0.00365566,0.103271 +1.10082,1.14,0.00327209,0.113134 +1.10373,1.14,0.0028913,0.122407 +1.10661,1.14,0.0025143,0.132774 +1.10947,1.14,0.00214046,0.142485 +1.11231,1.14,0.00176935,0.151453 +1.11493,1.14,0.0014265,0.161442 +1.1172,1.14,0.00112839,0.171142 +1.11919,1.14,0.000869143,0.180072 +1.12091,1.14,0.00064371,0.188914 +1.12241,1.14,0.000447681,0.19747 +1.12371,1.14,0.00027721,0.206985 +1.12484,1.14,0.000128965,0.216592 +1.12583,1.14,0,0.228865 +1.12484,1.14,-0.000128965,0.223314 +1.12371,1.14,-0.000277209,0.212521 +1.12241,1.14,-0.000447681,0.202544 +1.12091,1.14,-0.00064371,0.194047 +1.11919,1.14,-0.000869143,0.185141 +1.1172,1.14,-0.00112839,0.176089 +1.11493,1.14,-0.0014265,0.16566 +1.11231,1.14,-0.00176935,0.155065 +1.10947,1.14,-0.00214046,0.145429 +1.10661,1.14,-0.0025143,0.134921 +1.10373,1.14,-0.0028913,0.123473 +1.10082,1.14,-0.00327209,0.112498 +1.09788,1.14,-0.00365566,0.10157 +1.09495,1.14,-0.00403772,0.091724 +1.09201,1.14,-0.00441801,0.0821135 +1.08908,1.14,-0.0047972,0.0721932 +1.08614,1.14,-0.00517464,0.0620963 +1.08321,1.14,-0.00554721,0.0524795 +1.08027,1.14,-0.00591137,0.0441113 +1.07733,1.14,-0.00626566,0.0372498 +1.07439,1.14,-0.00661117,0.0315864 +1.07145,1.14,-0.00695015,0.0265372 +1.06851,1.14,-0.00728447,0.0216675 +1.06557,1.14,-0.00761498,0.0168344 +1.06263,1.14,-0.0079418,0.0120817 +1.05969,1.14,-0.00826479,0.00750035 +1.05675,1.14,-0.00858386,0.00312774 +1.0538,1.14,-0.00889909,-0.00104066 +1.05086,1.14,-0.00921061,-0.00503059 +1.04792,1.14,-0.00951861,-0.00888067 +1.04497,1.14,-0.00982318,-0.0126018 +1.04203,1.14,-0.0101244,-0.0162009 +1.03909,1.14,-0.0104224,-0.0196755 +1.03614,1.14,-0.0107172,-0.023038 +1.03319,1.14,-0.0110089,-0.0263052 +1.03025,1.14,-0.0112977,-0.0294982 +1.0273,1.14,-0.0115837,-0.0326371 +1.02436,1.14,-0.0118671,-0.0357475 +1.02141,1.14,-0.0121478,-0.0388281 +1.01847,1.14,-0.012426,-0.0419061 +1.01552,1.14,-0.0127018,-0.0449789 +1.01257,1.14,-0.0129752,-0.0480587 +1.00962,1.14,-0.0132463,-0.0511628 +1.00668,1.14,-0.0135152,-0.0542958 +1.00373,1.14,-0.0137818,-0.0574608 +1.00078,1.14,-0.0140462,-0.060674 +0.997835,1.14,-0.0143085,-0.0639399 +0.994887,1.14,-0.0145686,-0.0672654 +0.991938,1.14,-0.0148265,-0.0706568 +0.98899,1.14,-0.0150822,-0.0741102 +0.986041,1.14,-0.0153358,-0.0776376 +0.983092,1.14,-0.015587,-0.0812424 +0.980143,1.14,-0.0158359,-0.0849199 +0.977194,1.14,-0.0160825,-0.0886732 +0.974245,1.14,-0.0163266,-0.0925056 +0.971295,1.14,-0.0165682,-0.0964062 +0.968345,1.14,-0.0168071,-0.100375 +0.965395,1.14,-0.0170434,-0.104411 +0.962445,1.14,-0.0172768,-0.108508 +0.959494,1.14,-0.0175073,-0.112666 +0.956543,1.14,-0.0177348,-0.116889 +0.953592,1.14,-0.017959,-0.121165 +0.950641,1.14,-0.01818,-0.125491 +0.94769,1.14,-0.0183976,-0.129853 +0.944738,1.14,-0.0186115,-0.134257 +0.941786,1.14,-0.0188218,-0.138693 +0.938834,1.14,-0.0190282,-0.143151 +0.935881,1.14,-0.0192306,-0.147626 +0.932928,1.14,-0.0194289,-0.152118 +0.929975,1.14,-0.0196229,-0.156622 +0.927022,1.14,-0.0198124,-0.161127 +0.924068,1.14,-0.0199975,-0.165624 +0.921114,1.14,-0.0201778,-0.170098 +0.91816,1.14,-0.0203532,-0.174522 +0.915205,1.14,-0.0205236,-0.178894 +0.91225,1.14,-0.0206889,-0.183209 +0.909295,1.14,-0.020849,-0.187469 +0.906339,1.14,-0.0210037,-0.19167 +0.903384,1.14,-0.0211529,-0.195806 +0.900428,1.14,-0.0212965,-0.199872 +0.897471,1.14,-0.0214344,-0.203844 +0.894515,1.14,-0.0215665,-0.207702 +0.891558,1.14,-0.0216926,-0.21144 +0.888601,1.14,-0.0218127,-0.215078 +0.885643,1.14,-0.0219269,-0.218641 +0.882686,1.14,-0.022035,-0.222152 +0.879728,1.14,-0.0221369,-0.225608 +0.87677,1.14,-0.0222327,-0.228964 +0.873812,1.14,-0.0223219,-0.23215 +0.870854,1.14,-0.0224045,-0.23507 +0.867895,1.14,-0.0224804,-0.237708 +0.864937,1.14,-0.0225497,-0.24013 +0.861978,1.14,-0.0226126,-0.242441 +0.859019,1.14,-0.0226693,-0.244763 +0.856059,1.14,-0.0227201,-0.247167 +0.8531,1.14,-0.0227649,-0.24964 +0.850141,1.14,-0.0228034,-0.252099 +0.847182,1.14,-0.0228356,-0.254433 +0.844222,1.14,-0.0228611,-0.256561 +0.841263,1.14,-0.02288,-0.258469 +0.838303,1.14,-0.0228922,-0.260213 +0.835344,1.14,-0.0228981,-0.261877 +0.832385,1.14,-0.0228977,-0.263536 +0.829425,1.14,-0.0228913,-0.265248 +0.826465,1.14,-0.0228788,-0.267111 +0.823506,1.14,-0.0228603,-0.268992 +0.820547,1.14,-0.0228357,-0.270837 +0.817587,1.14,-0.0228052,-0.272673 +0.814628,1.14,-0.0227687,-0.27453 +0.811669,1.14,-0.0227262,-0.276424 +0.80871,1.14,-0.022678,-0.27838 +0.805751,1.14,-0.022624,-0.280415 +0.802792,1.14,-0.0225644,-0.282534 +0.799833,1.14,-0.022499,-0.284731 +0.796874,1.14,-0.0224281,-0.287003 +0.793916,1.14,-0.0223516,-0.28934 +0.790957,1.14,-0.0222695,-0.291721 +0.787999,1.14,-0.0221819,-0.294143 +0.785041,1.14,-0.0220888,-0.296655 +0.782083,1.14,-0.0219901,-0.299186 +0.779126,1.14,-0.0218858,-0.301651 +0.776168,1.14,-0.021776,-0.304218 +0.773211,1.14,-0.0216605,-0.306686 +0.770254,1.14,-0.0215394,-0.308924 +0.767297,1.14,-0.0214125,-0.311064 +0.76434,1.14,-0.0212797,-0.31267 +0.761384,1.14,-0.021141,-0.314398 +0.758428,1.14,-0.0209963,-0.316092 +0.755473,1.14,-0.0208452,-0.317078 +0.752517,1.14,-0.0206878,-0.317554 +0.749563,1.14,-0.0205237,-0.317583 +0.746608,1.14,-0.0203528,-0.317036 +0.743653,1.14,-0.0201747,-0.315902 +0.7407,1.14,-0.0199893,-0.314122 +0.737747,1.14,-0.0197961,-0.311535 +0.734794,1.14,-0.0195949,-0.308127 +0.731842,1.14,-0.0193853,-0.303894 +0.728891,1.14,-0.0191669,-0.29885 +0.72594,1.14,-0.0189391,-0.29299 +0.72299,1.14,-0.0187016,-0.286298 +0.720041,1.14,-0.0184537,-0.278736 +0.717093,1.14,-0.018195,-0.270422 +0.714183,1.14,-0.0179285,-0.261601 +0.711403,1.14,-0.0176627,-0.252449 +0.708744,1.14,-0.0173979,-0.243093 +0.706201,1.14,-0.0171343,-0.23347 +0.703768,1.14,-0.0168722,-0.223713 diff --git a/examples/onera/cp7.csv b/examples/onera/cp7.csv new file mode 100644 index 0000000..5189cdf --- /dev/null +++ b/examples/onera/cp7.csv @@ -0,0 +1,357 @@ +Points_0,Points_1,Points_2,Pressure_Coefficient +0.723373,1.18,-0.0161859,-0.337352 +0.721249,1.18,-0.0159395,-0.329985 +0.71886,1.18,-0.0156523,-0.322614 +0.716548,1.18,-0.0153635,-0.315199 +0.714311,1.18,-0.0150732,-0.307848 +0.712144,1.18,-0.0147814,-0.300497 +0.710047,1.18,-0.0144884,-0.293383 +0.708017,1.18,-0.0141948,-0.287229 +0.706052,1.18,-0.0139013,-0.283017 +0.70415,1.18,-0.013608,-0.282062 +0.702309,1.18,-0.0133141,-0.285358 +0.700527,1.18,-0.0130167,-0.292863 +0.698803,1.18,-0.0127103,-0.303287 +0.697139,1.18,-0.0123871,-0.312564 +0.695534,1.18,-0.0120383,-0.314846 +0.693988,1.18,-0.0116549,-0.303485 +0.692506,1.18,-0.0112284,-0.275435 +0.69109,1.18,-0.0107519,-0.228145 +0.689743,1.18,-0.0102197,-0.161174 +0.688471,1.18,-0.0096284,-0.0761957 +0.687278,1.18,-0.00897646,0.0227071 +0.686168,1.18,-0.00826615,0.133715 +0.685147,1.18,-0.00749986,0.243907 +0.684219,1.18,-0.00668141,0.35304 +0.683389,1.18,-0.00581628,0.456055 +0.682664,1.18,-0.00490847,0.548358 +0.682052,1.18,-0.00396374,0.625198 +0.681562,1.18,-0.00298853,0.679803 +0.681205,1.18,-0.00199305,0.70386 +0.68099,1.18,-0.000990882,0.693596 +0.680919,1.18,0,0.647916 +0.68099,1.18,0.000990882,0.566088 +0.681205,1.18,0.00199305,0.453632 +0.681562,1.18,0.00298853,0.319651 +0.682052,1.18,0.00396374,0.173678 +0.682664,1.18,0.00490848,0.0217085 +0.683389,1.18,0.00581628,-0.132375 +0.684219,1.18,0.00668141,-0.28461 +0.685147,1.18,0.00749986,-0.437211 +0.686168,1.18,0.00826615,-0.58529 +0.687278,1.18,0.00897646,-0.723077 +0.688471,1.18,0.0096284,-0.849588 +0.689743,1.18,0.0102197,-0.961412 +0.69109,1.18,0.0107519,-1.05507 +0.692506,1.18,0.0112284,-1.13067 +0.693988,1.18,0.0116549,-1.19003 +0.695534,1.18,0.0120383,-1.23363 +0.697139,1.18,0.0123871,-1.26218 +0.698803,1.18,0.0127103,-1.27724 +0.700527,1.18,0.0130167,-1.28144 +0.702309,1.18,0.0133141,-1.27846 +0.70415,1.18,0.013608,-1.26512 +0.706052,1.18,0.0139013,-1.25386 +0.708017,1.18,0.0141948,-1.24046 +0.710047,1.18,0.0144884,-1.22949 +0.712144,1.18,0.0147814,-1.21551 +0.714311,1.18,0.0150732,-1.20628 +0.716548,1.18,0.0153635,-1.19283 +0.71886,1.18,0.0156523,-1.17847 +0.721249,1.18,0.0159395,-1.1657 +0.723373,1.18,0.0161859,-1.15529 +0.725602,1.18,0.0164354,-1.14082 +0.727939,1.18,0.0166877,-1.13259 +0.730391,1.18,0.0169423,-1.11262 +0.732962,1.18,0.0171991,-1.09823 +0.73566,1.18,0.0174577,-1.0775 +0.738491,1.18,0.0177177,-1.05502 +0.741362,1.18,0.0179703,-1.03172 +0.744234,1.18,0.0182123,-1.00637 +0.747106,1.18,0.0184443,-0.978695 +0.74998,1.18,0.0186667,-0.950017 +0.752854,1.18,0.01888,-0.919654 +0.755729,1.18,0.0190847,-0.88237 +0.758604,1.18,0.0192812,-0.835106 +0.76148,1.18,0.0194698,-0.773133 +0.764356,1.18,0.0196509,-0.699772 +0.767233,1.18,0.0198249,-0.623999 +0.77011,1.18,0.0199918,-0.556362 +0.772988,1.18,0.0201521,-0.500744 +0.775866,1.18,0.0203059,-0.455957 +0.778744,1.18,0.0204534,-0.418688 +0.781622,1.18,0.0205949,-0.386916 +0.784502,1.18,0.0207304,-0.361491 +0.787381,1.18,0.0208601,-0.338074 +0.79026,1.18,0.0209841,-0.316375 +0.793139,1.18,0.0211025,-0.296515 +0.79602,1.18,0.0212154,-0.278689 +0.7989,1.18,0.0213228,-0.263522 +0.80178,1.18,0.0214248,-0.251049 +0.80466,1.18,0.0215213,-0.240974 +0.807541,1.18,0.0216125,-0.233065 +0.810422,1.18,0.0216983,-0.227164 +0.813302,1.18,0.0217787,-0.222429 +0.816184,1.18,0.0218537,-0.21876 +0.819065,1.18,0.0219232,-0.216355 +0.821946,1.18,0.0219873,-0.214891 +0.824827,1.18,0.0220459,-0.214595 +0.827709,1.18,0.0220989,-0.216018 +0.830591,1.18,0.0221464,-0.217966 +0.833472,1.18,0.0221883,-0.22021 +0.836354,1.18,0.0222243,-0.222338 +0.839236,1.18,0.0222546,-0.224275 +0.842118,1.18,0.0222791,-0.226073 +0.845,1.18,0.0222977,-0.227716 +0.847882,1.18,0.0223104,-0.229193 +0.850764,1.18,0.0223172,-0.230446 +0.853646,1.18,0.0223182,-0.231427 +0.856528,1.18,0.0223131,-0.232302 +0.85941,1.18,0.0223018,-0.233008 +0.862292,1.18,0.0222841,-0.233426 +0.865174,1.18,0.0222599,-0.233518 +0.868056,1.18,0.0222292,-0.233264 +0.870938,1.18,0.0221923,-0.23267 +0.87382,1.18,0.0221493,-0.231731 +0.876702,1.18,0.0221005,-0.230606 +0.879583,1.18,0.0220458,-0.229364 +0.882464,1.18,0.0219852,-0.227979 +0.885345,1.18,0.0219185,-0.226415 +0.888227,1.18,0.0218452,-0.224584 +0.891108,1.18,0.0217655,-0.222463 +0.893988,1.18,0.0216793,-0.220073 +0.896869,1.18,0.0215868,-0.217472 +0.899749,1.18,0.0214881,-0.214691 +0.902629,1.18,0.0213835,-0.211771 +0.905509,1.18,0.0212731,-0.208726 +0.908389,1.18,0.0211567,-0.205553 +0.911269,1.18,0.0210346,-0.202241 +0.914148,1.18,0.0209066,-0.198785 +0.917027,1.18,0.020773,-0.195189 +0.919905,1.18,0.0206338,-0.191465 +0.922784,1.18,0.0204891,-0.187678 +0.925662,1.18,0.0203391,-0.183858 +0.92854,1.18,0.0201838,-0.18001 +0.931417,1.18,0.0200235,-0.176143 +0.934295,1.18,0.0198581,-0.172269 +0.937172,1.18,0.0196878,-0.168388 +0.940049,1.18,0.0195129,-0.164502 +0.942925,1.18,0.0193332,-0.160624 +0.945801,1.18,0.0191492,-0.156759 +0.948677,1.18,0.0189608,-0.152915 +0.951553,1.18,0.0187682,-0.149092 +0.954428,1.18,0.0185716,-0.145292 +0.957303,1.18,0.0183711,-0.141527 +0.960178,1.18,0.0181668,-0.1378 +0.963052,1.18,0.0179589,-0.134118 +0.965926,1.18,0.0177475,-0.13048 +0.968801,1.18,0.0175328,-0.126887 +0.971674,1.18,0.0173148,-0.123348 +0.974548,1.18,0.0170937,-0.119858 +0.977421,1.18,0.0168696,-0.116422 +0.980294,1.18,0.0166427,-0.113042 +0.983167,1.18,0.016413,-0.109723 +0.98604,1.18,0.0161806,-0.106471 +0.988912,1.18,0.0159457,-0.103288 +0.991785,1.18,0.0157083,-0.100174 +0.994657,1.18,0.0154686,-0.0971291 +0.997529,1.18,0.0152265,-0.0941565 +1.0004,1.18,0.0149821,-0.0912549 +1.00327,1.18,0.0147356,-0.0884258 +1.00614,1.18,0.0144868,-0.0856691 +1.00901,1.18,0.014236,-0.0829822 +1.01189,1.18,0.013983,-0.0803643 +1.01476,1.18,0.0137279,-0.0778097 +1.01763,1.18,0.0134707,-0.0753145 +1.0205,1.18,0.0132113,-0.0728723 +1.02337,1.18,0.0129499,-0.07048 +1.02624,1.18,0.0126862,-0.0681297 +1.02911,1.18,0.0124203,-0.0658155 +1.03198,1.18,0.0121521,-0.0635287 +1.03485,1.18,0.0118815,-0.0612622 +1.03771,1.18,0.0116085,-0.0590113 +1.04058,1.18,0.011333,-0.0567662 +1.04345,1.18,0.0110549,-0.0545216 +1.04632,1.18,0.010774,-0.0522743 +1.04919,1.18,0.0104904,-0.0500105 +1.05206,1.18,0.0102038,-0.0476992 +1.05492,1.18,0.00991411,-0.0453572 +1.05779,1.18,0.00962127,-0.0429808 +1.06066,1.18,0.0093252,-0.0405685 +1.06352,1.18,0.00902581,-0.0381146 +1.06639,1.18,0.008723,-0.0356126 +1.06926,1.18,0.00841662,-0.0330502 +1.07212,1.18,0.00810651,-0.0304218 +1.07499,1.18,0.00779261,-0.0276884 +1.07785,1.18,0.00747494,-0.0249082 +1.08071,1.18,0.00715368,-0.0221096 +1.08358,1.18,0.00682876,-0.0193027 +1.08644,1.18,0.0064995,-0.0164627 +1.0893,1.18,0.00616428,-0.0134657 +1.09217,1.18,0.00582084,-0.0101728 +1.09503,1.18,0.00546782,-0.00641803 +1.09789,1.18,0.00510617,-0.00227434 +1.10074,1.18,0.00473917,0.002037 +1.1036,1.18,0.00437008,0.00629753 +1.10646,1.18,0.00399997,0.0102414 +1.10932,1.18,0.00362824,0.0143129 +1.11218,1.18,0.00325488,0.0189874 +1.11503,1.18,0.00288191,0.0242444 +1.11787,1.18,0.00251009,0.0286738 +1.1207,1.18,0.00213917,0.0338798 +1.12353,1.18,0.00176895,0.0388333 +1.12615,1.18,0.00142617,0.0446501 +1.12843,1.18,0.00112814,0.0505273 +1.13041,1.18,0.000868943,0.0563749 +1.13214,1.18,0.000643557,0.0622458 +1.13363,1.18,0.000447571,0.0688128 +1.13494,1.18,0.000277145,0.0755519 +1.13607,1.18,0.00012894,0.0817343 +1.13705,1.18,0,0.10663 +1.13607,1.18,-0.00012894,0.121613 +1.13494,1.18,-0.000277145,0.117984 +1.13363,1.18,-0.000447571,0.116789 +1.13214,1.18,-0.000643557,0.11563 +1.13041,1.18,-0.000868943,0.114722 +1.12843,1.18,-0.00112814,0.112614 +1.12615,1.18,-0.00142617,0.109609 +1.12353,1.18,-0.00176895,0.105304 +1.1207,1.18,-0.00213917,0.0997351 +1.11787,1.18,-0.00251009,0.0943949 +1.11503,1.18,-0.00288191,0.0875428 +1.11218,1.18,-0.00325488,0.0779197 +1.10932,1.18,-0.00362824,0.0702686 +1.10646,1.18,-0.00399997,0.0628034 +1.1036,1.18,-0.00437008,0.0551399 +1.10074,1.18,-0.00473917,0.0467968 +1.09789,1.18,-0.00510617,0.0381331 +1.09503,1.18,-0.00546782,0.0300699 +1.09217,1.18,-0.00582084,0.0234242 +1.0893,1.18,-0.00616428,0.0182477 +1.08644,1.18,-0.0064995,0.0140534 +1.08358,1.18,-0.00682876,0.010227 +1.08071,1.18,-0.00715368,0.0063678 +1.07785,1.18,-0.00747494,0.00241618 +1.07499,1.18,-0.00779261,-0.00151524 +1.07212,1.18,-0.00810651,-0.0052991 +1.06926,1.18,-0.00841662,-0.00889759 +1.06639,1.18,-0.008723,-0.0123293 +1.06352,1.18,-0.00902581,-0.0156247 +1.06066,1.18,-0.0093252,-0.0188071 +1.05779,1.18,-0.00962127,-0.0218864 +1.05492,1.18,-0.00991411,-0.0248573 +1.05206,1.18,-0.0102038,-0.0277238 +1.04919,1.18,-0.0104904,-0.0304934 +1.04632,1.18,-0.010774,-0.0331847 +1.04345,1.18,-0.0110549,-0.0358169 +1.04058,1.18,-0.011333,-0.0384126 +1.03771,1.18,-0.0116085,-0.0409851 +1.03485,1.18,-0.0118815,-0.0435425 +1.03198,1.18,-0.0121521,-0.046091 +1.02911,1.18,-0.0124203,-0.0486336 +1.02624,1.18,-0.0126862,-0.0511818 +1.02337,1.18,-0.0129499,-0.0537473 +1.0205,1.18,-0.0132113,-0.0563389 +1.01763,1.18,-0.0134707,-0.0589689 +1.01476,1.18,-0.0137279,-0.0616424 +1.01189,1.18,-0.013983,-0.0643647 +1.00901,1.18,-0.014236,-0.0671403 +1.00614,1.18,-0.0144868,-0.0699732 +1.00327,1.18,-0.0147356,-0.0728622 +1.0004,1.18,-0.0149821,-0.0758098 +0.997529,1.18,-0.0152265,-0.0788182 +0.994657,1.18,-0.0154686,-0.0818924 +0.991785,1.18,-0.0157083,-0.0850354 +0.988912,1.18,-0.0159457,-0.0882505 +0.98604,1.18,-0.0161806,-0.0915351 +0.983167,1.18,-0.016413,-0.0948876 +0.980294,1.18,-0.0166427,-0.0983059 +0.977421,1.18,-0.0168696,-0.101787 +0.974548,1.18,-0.0170937,-0.105328 +0.971674,1.18,-0.0173148,-0.108926 +0.968801,1.18,-0.0175328,-0.112573 +0.965926,1.18,-0.0177475,-0.116267 +0.963052,1.18,-0.0179589,-0.119997 +0.960178,1.18,-0.0181668,-0.123758 +0.957303,1.18,-0.0183711,-0.127542 +0.954428,1.18,-0.0185716,-0.131347 +0.951553,1.18,-0.0187682,-0.135168 +0.948677,1.18,-0.0189608,-0.138997 +0.945801,1.18,-0.0191492,-0.14283 +0.942925,1.18,-0.0193332,-0.14666 +0.940049,1.18,-0.0195129,-0.150484 +0.937172,1.18,-0.0196878,-0.15429 +0.934295,1.18,-0.0198581,-0.158062 +0.931417,1.18,-0.0200235,-0.161791 +0.92854,1.18,-0.0201838,-0.16547 +0.925662,1.18,-0.0203391,-0.169092 +0.922784,1.18,-0.0204891,-0.172662 +0.919905,1.18,-0.0206338,-0.17618 +0.917027,1.18,-0.020773,-0.179642 +0.914148,1.18,-0.0209066,-0.183019 +0.911269,1.18,-0.0210346,-0.186295 +0.908389,1.18,-0.0211567,-0.189471 +0.905509,1.18,-0.0212731,-0.192565 +0.902629,1.18,-0.0213835,-0.195595 +0.899749,1.18,-0.0214881,-0.198578 +0.896869,1.18,-0.0215868,-0.201504 +0.893988,1.18,-0.0216793,-0.204324 +0.891108,1.18,-0.0217655,-0.206974 +0.888227,1.18,-0.0218452,-0.209399 +0.885345,1.18,-0.0219185,-0.211593 +0.882464,1.18,-0.0219852,-0.213611 +0.879583,1.18,-0.0220458,-0.215558 +0.876702,1.18,-0.0221005,-0.21752 +0.87382,1.18,-0.0221493,-0.219542 +0.870938,1.18,-0.0221923,-0.221601 +0.868056,1.18,-0.0222292,-0.223617 +0.865174,1.18,-0.0222599,-0.225493 +0.862292,1.18,-0.0222841,-0.227163 +0.85941,1.18,-0.0223018,-0.228631 +0.856528,1.18,-0.0223131,-0.229951 +0.853646,1.18,-0.0223182,-0.231198 +0.850764,1.18,-0.0223172,-0.232433 +0.847882,1.18,-0.0223104,-0.233708 +0.845,1.18,-0.0222977,-0.235079 +0.842118,1.18,-0.0222791,-0.23643 +0.839236,1.18,-0.0222546,-0.237763 +0.836354,1.18,-0.0222243,-0.239115 +0.833472,1.18,-0.0221883,-0.240519 +0.830591,1.18,-0.0221464,-0.242003 +0.827709,1.18,-0.0220989,-0.243601 +0.824827,1.18,-0.0220459,-0.245334 +0.821946,1.18,-0.0219873,-0.247232 +0.819065,1.18,-0.0219232,-0.24931 +0.816184,1.18,-0.0218537,-0.251612 +0.813302,1.18,-0.0217787,-0.25418 +0.810422,1.18,-0.0216983,-0.257049 +0.807541,1.18,-0.0216125,-0.260249 +0.80466,1.18,-0.0215213,-0.263806 +0.80178,1.18,-0.0214248,-0.26772 +0.7989,1.18,-0.0213228,-0.271987 +0.79602,1.18,-0.0212154,-0.276565 +0.793139,1.18,-0.0211025,-0.281361 +0.79026,1.18,-0.0209841,-0.286284 +0.787381,1.18,-0.0208601,-0.291251 +0.784502,1.18,-0.0207304,-0.296177 +0.781622,1.18,-0.0205949,-0.301055 +0.778744,1.18,-0.0204534,-0.305864 +0.775866,1.18,-0.0203059,-0.310584 +0.772988,1.18,-0.0201521,-0.315256 +0.77011,1.18,-0.0199918,-0.319918 +0.767233,1.18,-0.0198249,-0.324653 +0.764356,1.18,-0.0196509,-0.329596 +0.76148,1.18,-0.0194698,-0.334947 +0.758604,1.18,-0.0192812,-0.340517 +0.755729,1.18,-0.0190847,-0.346305 +0.752854,1.18,-0.01888,-0.352334 +0.74998,1.18,-0.0186667,-0.357693 +0.747106,1.18,-0.0184443,-0.362626 +0.744234,1.18,-0.0182123,-0.366263 +0.741362,1.18,-0.0179703,-0.368115 +0.738491,1.18,-0.0177177,-0.368113 +0.73566,1.18,-0.0174577,-0.366191 +0.732962,1.18,-0.0171991,-0.362296 +0.730391,1.18,-0.0169423,-0.356903 +0.727939,1.18,-0.0166877,-0.350644 +0.725602,1.18,-0.0164354,-0.343991 diff --git a/examples/plot_onera.m b/examples/plot_onera.m new file mode 100644 index 0000000..51e4d16 --- /dev/null +++ b/examples/plot_onera.m @@ -0,0 +1,33 @@ +% Copyright 2020 Adrien Crovato +% +% Licensed under the Apache License, Version 2.0 (the "License"); +% you may not use this file except in compliance with the License. +% You may obtain a copy of the License at +% +% http://www.apache.org/licenses/LICENSE-2.0 +% +% Unless required by applicable law or agreed to in writing, software +% distributed under the License is distributed on an "AS IS" BASIS, +% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +% See the License for the specific language governing permissions and +% limitations under the License. + +function plot_onera(fpath_) +%% onera M6 wing +% Read pressure data generated from Paraview, compute the loads and display +% results +% Adrien Crovato + +% Inputs +fpath = 'onera/'; % path to data files (relative to this directory) +format = 'csv'; % format of file containing data +ids = [1 2 3 4]; % column ids of the x, y and z coordinates, and of the Cp +stats = [0 0.20 0.44 0.65 0.80 0.90 0.95 0.99]; % y coordinate of the slices (as percentage of semi-span) +nfile = length(stats); + +% Functions +cps = cfdread(nfile, fullfile(fpath_, fpath), format, ids); +[chords, cls, cms] = cfdloads(nfile, cps); +cfdplot(nfile, stats, chords, cps, cls, cms); + +end \ No newline at end of file diff --git a/examples/slice_onera.m b/examples/slice_onera.m new file mode 100644 index 0000000..1d17119 --- /dev/null +++ b/examples/slice_onera.m @@ -0,0 +1,28 @@ +% Copyright 2020 Adrien Crovato +% +% Licensed under the Apache License, Version 2.0 (the "License"); +% you may not use this file except in compliance with the License. +% You may obtain a copy of the License at +% +% http://www.apache.org/licenses/LICENSE-2.0 +% +% Unless required by applicable law or agreed to in writing, software +% distributed under the License is distributed on an "AS IS" BASIS, +% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +% See the License for the specific language governing permissions and +% limitations under the License. + +function slice_onera(fpath_) +%% onera M6 wing +% Create a Tecplot macro to generate slice along the span of the Onera M6 +% Adrien Crovato + +% Inputs +fname = 'slice_onera'; % macro .mcr file name (will be written under workspace/ dir) +stats = [0.01, 0.24, 0.53, 0.78, 0.96, 1.08, 1.14, 1.18]; % y-coordinates of slices +ids = [1 2 3 21];% column ids of variables to extract + +% Functions +cfdtecslicer(fname, stats, ids) + +end \ No newline at end of file diff --git a/func/cfdloads.m b/func/cfdloads.m new file mode 100644 index 0000000..248d09f --- /dev/null +++ b/func/cfdloads.m @@ -0,0 +1,45 @@ +% Copyright 2020 Adrien Crovato +% +% Licensed under the Apache License, Version 2.0 (the "License"); +% you may not use this file except in compliance with the License. +% You may obtain a copy of the License at +% +% http://www.apache.org/licenses/LICENSE-2.0 +% +% Unless required by applicable law or agreed to in writing, software +% distributed under the License is distributed on an "AS IS" BASIS, +% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +% See the License for the specific language governing permissions and +% limitations under the License. + +function [chords, cls, cms] = cfdloads(nfile, cps) +%% cfdloads +% Compute spanwise loads coefficient by integrating the pressure +% Adrien Crovato + +% Loads +% TODO check the integration direction to avoid sign reversal +chords = zeros(nfile,1); +cls = zeros(nfile,1); +cms = zeros(nfile,1); +for j = 1:nfile + % local chord + chords(j) = max(cps{1,j}(:,1)) - min(cps{1,j}(:,1)); + % lift + int = 0; + for i = 1:size(cps{1,j},1)-1 + int = int + 0.5*(cps{1,j}(i+1,1)-cps{1,j}(i,1))/chords(j)*(cps{1,j}(i+1,end)+cps{1,j}(i,end)); + end + cls(j,1) = -int; + % moment + int = 0; + for i = 1:size(cps{1,j},1)-1 + cquart = min(cps{1,j}(:,1)) + 0.25*chords(j); + dx = -(cps{1,j}(i+1,1) - cps{1,j}(i,1)) / chords(j); + dy = -(cps{1,j}(i+1,2) - cps{1,j}(i,2)) / chords(j); + int = int - 0.5*(cps{1,j}(i+1,end)*(cps{1,j}(i+1,1)-cquart) + cps{1,j}(i,end)*(cps{1,j}(i,1)-cquart)) * dx/chords(j) + 0.5*(cps{1,j}(i+1,end)*cps{1,j}(i+1,2) + cps{1,j}(i,end)*cps{1,j}(i,2)) * dy/chords(j); + end + cms(j,1) = int; +end + +end \ No newline at end of file diff --git a/func/cfdplot.m b/func/cfdplot.m new file mode 100644 index 0000000..ee85779 --- /dev/null +++ b/func/cfdplot.m @@ -0,0 +1,56 @@ +% Copyright 2020 Adrien Crovato +% +% Licensed under the Apache License, Version 2.0 (the "License"); +% you may not use this file except in compliance with the License. +% You may obtain a copy of the License at +% +% http://www.apache.org/licenses/LICENSE-2.0 +% +% Unless required by applicable law or agreed to in writing, software +% distributed under the License is distributed on an "AS IS" BASIS, +% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +% See the License for the specific language governing permissions and +% limitations under the License. + +function cfdplot(nfile, stats, chords, cps, cls, cms) +%% cfdplot +% Plot chordwise pressure and spanwise load distributions +% Adrien Crovato + +% Display +disp(['y/b = ', num2str(stats)]); +disp(['Cl = ', num2str(cls')]); +disp(['Cm = ', num2str(cms')]); + +% Chordwise pressure distributions +figure +hold on +set(gca, 'YDir', 'reverse', 'Fontsize', 20, 'Fontname', 'Times', 'LineWidth', 0.5) +for j = 1:nfile + plot((cps{1,j}(:,1) - min(cps{1,j}(:,1))) / chords(j), cps{1,j}(:,4), 'Linewidth', 2) +end +Legend = cell(nfile, 1); + for j = 1:nfile + Legend{j} = strcat(['y/b = ', num2str(stats(j))]); + end +legend(Legend); legend BOXOFF; +xlabel('$x/c$', 'Interpreter', 'Latex'); +ylabel('$C_p$','Interpreter', 'Latex'); +title('Pressure distribution along chord'); + +% Spanwise loads +figure +hold on +set(gca, 'Fontsize', 20, 'Fontname', 'Times', 'LineWidth', 0.5) +yyaxis left +plot(stats, cls, 'Linewidth', 2, 'Marker','o') +yyaxis right +plot(stats, cms, 'Linewidth', 2, 'Marker','o') +yyaxis left +title('Loads distribution along span') +xlabel('$y/b$', 'Interpreter', 'Latex') +ylabel('$C_l$','Interpreter', 'Latex') +yyaxis right +ylabel('$C_m$','Interpreter', 'Latex') + +end \ No newline at end of file diff --git a/func/cfdread.m b/func/cfdread.m new file mode 100644 index 0000000..5a658b6 --- /dev/null +++ b/func/cfdread.m @@ -0,0 +1,39 @@ +% Copyright 2020 Adrien Crovato +% +% Licensed under the Apache License, Version 2.0 (the "License"); +% you may not use this file except in compliance with the License. +% You may obtain a copy of the License at +% +% http://www.apache.org/licenses/LICENSE-2.0 +% +% Unless required by applicable law or agreed to in writing, software +% distributed under the License is distributed on an "AS IS" BASIS, +% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +% See the License for the specific language governing permissions and +% limitations under the License. + +function cps = cfdread(nfile, fpath, format, ids) +%% cfdread +% Read chordwise pressure from slices +% Adrien Crovato + +% File path +fname = cell(1,nfile); +for i = 1:nfile + fname{1,i}(1,:) = [fpath, 'cp', num2str(i-1), '.', format]; +end + +% Read and store +cps = cell(1,nfile); +if strcmp(format, 'csv') + delim = ','; +elseif strcmp(format, 'dat') + delim = ' '; +end +for j = 1:nfile + dataTpm = dlmread(fname{1,j}(1,:), delim, 1, 0); + cps{1,j} = dataTpm(:,ids); + clear dataTpm; +end + +end \ No newline at end of file diff --git a/func/cfdtecslicer.m b/func/cfdtecslicer.m new file mode 100644 index 0000000..c981f2c --- /dev/null +++ b/func/cfdtecslicer.m @@ -0,0 +1,58 @@ +% Copyright 2020 Adrien Crovato +% +% Licensed under the Apache License, Version 2.0 (the "License"); +% you may not use this file except in compliance with the License. +% You may obtain a copy of the License at +% +% http://www.apache.org/licenses/LICENSE-2.0 +% +% Unless required by applicable law or agreed to in writing, software +% distributed under the License is distributed on an "AS IS" BASIS, +% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +% See the License for the specific language governing permissions and +% limitations under the License. + +function cfdtecslicer(fname, stats, ids) +%% cfdtecslicer +% Generate Tecplot macro to create slices along the wingspan +% Adrien Crovato (rewritten from TecSlice.py by Carlos Breviglieri) + +% Fix paths +mkdir workspace +file = fullfile(pwd, 'workspace', [fname, '.mcr']); +folder = fullfile(pwd, 'workspace', fname); + +% Header +fid = fopen(file,'w'); +fprintf(fid,'#!MC 1410\n'); +fprintf(fid,'# Created from TecSlice.m\n'); +fprintf(fid,'# Tecplot version 2017R3\n\n'); +fprintf(fid,'$!PlotType = Cartesian3D\n\n'); + +% Cutplanes +zone = 101; % id number of first (slice) zone +for i = 1:length(stats) + fprintf(fid,'$!SliceAttributes 1 SliceSurface = YPlanes\n'); + fprintf(fid,'$!SliceAttributes 1 PrimaryPosition{Y = %f}\n',stats(i)); + fprintf(fid,'$!SliceAttributes 1 SliceSource = SurfaceZones\n'); + fprintf(fid,'$!ExtractSlices\n'); + fprintf(fid,'Group = 1\n'); + fprintf(fid,'ExtractMode = SingleZone\n'); + fprintf(fid,'$!WriteDataSet \"%scutplane%i.dat\"\n',folder,i); + fprintf(fid,'IncludeText = No\n'); + fprintf(fid,'IncludeGeom = No\n'); + fprintf(fid,'ZoneList = [%i]\n',zone); + fmt = ['VarPositionList = [', repmat('%i, ', 1, numel(ids)-1), '%i]\n']; fprintf(fid, fmt, ids); + fprintf(fid,'Binary = No\n'); + fprintf(fid,'UsePointFormat = Yes\n'); + fprintf(fid,'Precision = 9\n'); + fprintf(fid,'TecplotVersionToWrite = TecplotCurrent\n\n'); + zone = zone + 1; +end + +% Close file +fclose(fid); +fprintf('Tecplot macro "%s" successfully generated!\n', file); +fprintf('Slices will be written under "%s".\n', folder); + +end \ No newline at end of file