MBDyn-1.7.3
|
#include "mbconfig.h"
#include <cerrno>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <sstream>
#include <iomanip>
#include <cmath>
#include "ac/f2c.h"
#include "myassert.h"
#include "aerodc81.h"
#include "c81data.h"
Go to the source code of this file.
Functions | |
static int | do_stall (int NM, int NA, doublereal *a, doublereal *stall, const doublereal dcltol) |
static int | get_int (const char *const from, int &i) |
static int | get_double (const char *const from, doublereal &d) |
static int | get_c81_vec (std::istream &in, doublereal *v, int ncols) |
static int | check_vec (doublereal *v, int n) |
static int | get_c81_mat (std::istream &in, doublereal *m, int nrows, int ncols) |
static int | put_c81_row (std::ostream &out, doublereal *v, int dim, int ncols, int first=0) |
static int | put_c81_vec (std::ostream &out, doublereal *v, int nrows) |
static int | put_c81_mat (std::ostream &out, doublereal *m, int nrows, int ncols) |
void | c81_data_destroy (c81_data *data) |
int | c81_data_read (std::istream &in, c81_data *data, const doublereal dcltol, int *ff) |
int | c81_data_merge (unsigned ndata, const c81_data **data, const doublereal *upper_bounds, doublereal dCsi, doublereal dcltol, c81_data *i_data) |
int | c81_data_write (std::ostream &out, c81_data *data) |
int | read_fc511_row (std::istream &in, doublereal *d, int NC) |
int | read_fc511_mat (std::istream &in, doublereal *d, int NR, int NC) |
int | read_fc511_block (std::istream &in, int &NA, int &NM, doublereal *&da, doublereal *&dm) |
int | c81_data_fc511_read (std::istream &in, c81_data *data, const doublereal dcltol) |
int | c81_data_nrel_read (std::istream &in, c81_data *data, const doublereal dcltol) |
int | c81_data_read_free_format (std::istream &in, c81_data *data, const doublereal dcltol) |
int | c81_data_write_free_format (std::ostream &out, c81_data *data) |
c81_data * | get_c81_data (long int jpro) |
int | c81_data_set (long int jpro, c81_data *data) |
int | c81_data_do_stall (c81_data *data, const doublereal dcltol) |
static int | flip_one (int NM, int NA, doublereal *v, int ss) |
int | c81_data_flip (c81_data *data) |
Variables | |
static int | c81_ndata = 0 |
static c81_data ** | __c81_pdata = NULL |
void c81_data_destroy | ( | c81_data * | data | ) |
Definition at line 276 of file c81data.cc.
References c81_data::ad, c81_data::al, c81_data::am, c81_data::md, c81_data::ml, c81_data::mm, c81_data::mstall, and c81_data::stall.
Referenced by main(), C81InterpolatedAeroData::~C81InterpolatedAeroData(), and MBDynParser::~MBDynParser().
int c81_data_do_stall | ( | c81_data * | data, |
const doublereal | dcltol | ||
) |
Definition at line 1244 of file c81data.cc.
References c81_data::al, c81_data::am, do_stall(), c81_data::mstall, c81_data::NAL, c81_data::NAM, c81_data::NML, c81_data::NMM, and c81_data::stall.
Referenced by c81_data_fc511_read(), c81_data_merge(), c81_data_nrel_read(), c81_data_read(), and c81_data_read_free_format().
int c81_data_fc511_read | ( | std::istream & | in, |
c81_data * | data, | ||
const doublereal | dcltol | ||
) |
Definition at line 810 of file c81data.cc.
References c81_data::ad, c81_data::al, c81_data::am, buf, c81_data_do_stall(), c81_data::header, c81_data::md, c81_data::ml, c81_data::mm, c81_data::NAD, c81_data::NAL, c81_data::NAM, c81_data::NMD, c81_data::NML, c81_data::NMM, read_fc511_block(), and STRLENOF.
Referenced by MBDynParser::C81Data_int(), and main().
Definition at line 1286 of file c81data.cc.
References c81_data::ad, c81_data::al, c81_data::am, flip_one(), c81_data::NAD, c81_data::NAL, c81_data::NAM, c81_data::NMD, c81_data::NML, and c81_data::NMM.
Referenced by MBDynParser::C81Data_int(), and main().
int c81_data_merge | ( | unsigned | ndata, |
const c81_data ** | data, | ||
const doublereal * | upper_bounds, | ||
doublereal | dCsi, | ||
doublereal | dcltol, | ||
c81_data * | i_data | ||
) |
Definition at line 396 of file c81data.cc.
References c81_data::ad, c81_data::al, c81_data::am, ASSERT, c81_data_do_stall(), for(), c81_data::header, c81_data::md, c81_data::ml, c81_data::mm, c81_data::NAD, c81_data::NAL, c81_data::NAM, c81_data::NMD, c81_data::NML, and c81_data::NMM.
Referenced by C81InterpolatedAeroData::C81InterpolatedAeroData().
int c81_data_nrel_read | ( | std::istream & | in, |
c81_data * | data, | ||
const doublereal | dcltol | ||
) |
Definition at line 874 of file c81data.cc.
References c81_data::ad, c81_data::al, c81_data::am, buf, c81_data_do_stall(), c81_data::header, c81_data::md, c81_data::ml, c81_data::mm, c81_data::NAD, c81_data::NAL, c81_data::NAM, c81_data::NMD, c81_data::NML, c81_data::NMM, and STRLENOF.
Referenced by MBDynParser::C81Data_int(), and main().
int c81_data_read | ( | std::istream & | in, |
c81_data * | data, | ||
const doublereal | dcltol, | ||
int * | ff | ||
) |
Definition at line 292 of file c81data.cc.
References c81_data::ad, c81_data::al, c81_data::am, buf, c81_data_do_stall(), c81_data_read_free_format(), check_vec(), get_c81_mat(), get_c81_vec(), get_int(), c81_data::header, c81_data::md, c81_data::ml, c81_data::mm, c81_data::NAD, c81_data::NAL, c81_data::NAM, c81_data::NMD, c81_data::NML, c81_data::NMM, and STRLENOF.
Referenced by MBDynParser::C81Data_int(), and main().
int c81_data_read_free_format | ( | std::istream & | in, |
c81_data * | data, | ||
const doublereal | dcltol | ||
) |
Definition at line 961 of file c81data.cc.
References c81_data::ad, c81_data::al, c81_data::am, buf, c, c81_data_do_stall(), check_vec(), for(), c81_data::header, c81_data::md, c81_data::ml, c81_data::mm, c81_data::NAD, c81_data::NAL, c81_data::NAM, c81_data::NMD, c81_data::NML, c81_data::NMM, and STRLENOF.
Referenced by c81_data_read(), MBDynParser::C81Data_int(), and main().
Definition at line 1137 of file c81data.cc.
References __c81_pdata, and c81_ndata.
Definition at line 610 of file c81data.cc.
References c81_data::ad, c81_data::al, c81_data::am, c81_data::header, c81_data::md, c81_data::ml, c81_data::mm, c81_data::NAD, c81_data::NAL, c81_data::NAM, c81_data::NMD, c81_data::NML, c81_data::NMM, put_c81_mat(), and put_c81_vec().
Referenced by MBDynParser::C81Data_int(), and main().
Definition at line 1065 of file c81data.cc.
References c81_data::ad, c81_data::al, c81_data::am, c, c81_data::header, c81_data::md, c81_data::ml, c81_data::mm, c81_data::NAD, c81_data::NAL, c81_data::NAM, c81_data::NMD, c81_data::NML, and c81_data::NMM.
Referenced by MBDynParser::C81Data_int(), and main().
|
static |
Definition at line 171 of file c81data.cc.
Referenced by c81_data_read(), and c81_data_read_free_format().
|
static |
|
static |
Definition at line 1128 of file c81data.cc.
|
static |
Definition at line 183 of file c81data.cc.
References buf, c, and get_double().
Referenced by c81_data_read().
|
static |
Definition at line 142 of file c81data.cc.
References buf, c, and get_double().
Referenced by c81_data_read().
|
static |
Definition at line 119 of file c81data.cc.
References buf.
Referenced by get_c81_mat(), get_c81_vec(), read_fc511_mat(), and read_fc511_row().
Definition at line 71 of file c81data.cc.
References buf.
Referenced by c81_data_read(), and read_fc511_block().
|
static |
Definition at line 262 of file c81data.cc.
References put_c81_row().
Referenced by c81_data_write().
|
static |
|
static |
Definition at line 250 of file c81data.cc.
References put_c81_row().
Referenced by c81_data_write().
int read_fc511_block | ( | std::istream & | in, |
int & | NA, | ||
int & | NM, | ||
doublereal *& | da, | ||
doublereal *& | dm | ||
) |
Definition at line 712 of file c81data.cc.
References buf, c, get_int(), read_fc511_mat(), and read_fc511_row().
Referenced by c81_data_fc511_read().
int read_fc511_mat | ( | std::istream & | in, |
doublereal * | d, | ||
int | NR, | ||
int | NC | ||
) |
Definition at line 676 of file c81data.cc.
References buf, c, and get_double().
Referenced by read_fc511_block().
int read_fc511_row | ( | std::istream & | in, |
doublereal * | d, | ||
int | NC | ||
) |
Definition at line 642 of file c81data.cc.
References buf, c, and get_double().
Referenced by read_fc511_block().
|
static |
Definition at line 1125 of file c81data.cc.
Referenced by c81_data_set().
|
static |
Definition at line 1124 of file c81data.cc.
Referenced by c81_data_set().