MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
c81data.h
Go to the documentation of this file.
1 /* $Header: /var/cvs/mbdyn/mbdyn/mbdyn-1.0/mbdyn/aero/c81data.h,v 1.31 2017/01/12 14:45:58 masarati Exp $ */
2 /*
3  * MBDyn (C) is a multibody analysis code.
4  * http://www.mbdyn.org
5  *
6  * Copyright (C) 1996-2017
7  *
8  * Pierangelo Masarati <masarati@aero.polimi.it>
9  * Paolo Mantegazza <mantegazza@aero.polimi.it>
10  *
11  * Dipartimento di Ingegneria Aerospaziale - Politecnico di Milano
12  * via La Masa, 34 - 20156 Milano, Italy
13  * http://www.aero.polimi.it
14  *
15  * Changing this copyright notice is forbidden.
16  *
17  * This program is free software; you can redistribute it and/or modify
18  * it under the terms of the GNU General Public License as published by
19  * the Free Software Foundation (version 2 of the License).
20  *
21  *
22  * This program is distributed in the hope that it will be useful,
23  * but WITHOUT ANY WARRANTY; without even the implied warranty of
24  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25  * GNU General Public License for more details.
26  *
27  * You should have received a copy of the GNU General Public License
28  * along with this program; if not, write to the Free Software
29  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30  */
31 
32 #ifndef C81DATA_H
33 #define C81DATA_H
34 
35 #ifdef __cplusplus
36 #include <iostream>
37 
38 extern "C" {
39 #endif /* __cplusplus */
40 extern void c81_data_destroy(c81_data* data);
41 extern c81_data* c81_data_get(long int jpro);
42 extern int c81_data_set(long int jpro, c81_data* data);
43 extern int c81_data_merge(unsigned ndata, const c81_data **data, const doublereal *upper_bounds,
44  doublereal dCsi, doublereal dcltol, c81_data *i_data);
45 extern int c81_data_do_stall(c81_data *data, const doublereal dcltol);
46 extern doublereal c81_data_get_coef(int nm, doublereal* m, int na, doublereal* a, doublereal alpha, doublereal mach);
47 extern int c81_data_flip(c81_data *data);
48 
49 #ifdef __cplusplus
50 extern int c81_data_read(std::istream& in, c81_data* data, const doublereal dcptol, int *ff);
51 extern int c81_data_fc511_read(std::istream& in, c81_data* data, const doublereal dcptol);
52 extern int c81_data_nrel_read(std::istream& in, c81_data* data, const doublereal dcptol);
53 extern int c81_data_read_free_format(std::istream& in, c81_data* data, const doublereal dcptol);
54 extern int c81_data_write(std::ostream& out, c81_data* data);
55 extern int c81_data_write_free_format(std::ostream& out, c81_data* data);
56 }
57 #endif /* __cplusplus */
58 
59 #endif /* C81DATA_H */
60 
int c81_data_set(long int jpro, c81_data *data)
Definition: c81data.cc:1137
int c81_data_merge(unsigned ndata, const c81_data **data, const doublereal *upper_bounds, doublereal dCsi, doublereal dcltol, c81_data *i_data)
Definition: c81data.cc:396
c81_data * c81_data_get(long int jpro)
int c81_data_write_free_format(std::ostream &out, c81_data *data)
Definition: c81data.cc:1065
doublereal c81_data_get_coef(int nm, doublereal *m, int na, doublereal *a, doublereal alpha, doublereal mach)
Definition: aerodc81.c:90
void c81_data_destroy(c81_data *data)
Definition: c81data.cc:276
int c81_data_read_free_format(std::istream &in, c81_data *data, const doublereal dcltol)
Definition: c81data.cc:961
int c81_data_read(std::istream &in, c81_data *data, const doublereal dcltol, int *ff)
Definition: c81data.cc:292
int c81_data_do_stall(c81_data *data, const doublereal dcltol)
Definition: c81data.cc:1244
int c81_data_fc511_read(std::istream &in, c81_data *data, const doublereal dcltol)
Definition: c81data.cc:810
int c81_data_nrel_read(std::istream &in, c81_data *data, const doublereal dcltol)
Definition: c81data.cc:874
static const doublereal a
Definition: hfluid_.h:289
double doublereal
Definition: colamd.c:52
int c81_data_write(std::ostream &out, c81_data *data)
Definition: c81data.cc:610
int c81_data_flip(c81_data *data)
Definition: c81data.cc:1286