-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfsi_output.hpp
81 lines (73 loc) · 3.3 KB
/
fsi_output.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#include "pugixml.hpp"
#include <armadillo> // linear algebra library
#include <cassert>
#include <string>
#include <vector>
// indenting for XML
#define INDENT " "
#define INDENT2 INDENT INDENT
void generate_nastran(const arma::cube &in, const bool include_wake_panel, const double ydist,
const double, const double, const double, const double, const double, std::vector <std::string> &);
void structured_grid_out(pugi::xml_node &doc,
const char *name,
const arma::uword iblade,
const arma::cube &bx,
const int t = -1,
const int parmnrows = -1,
bool t_is_name_only = false);
void structured_grid_out(pugi::xml_node &doc,
const char *name,
const arma::mat &bx, const arma::mat &by, const arma::mat &bz,
const int t = -1,
const int parmnrows = -1,
bool t_is_name_only = false);
void array_out(pugi::xml_node &doc,
const char *name,
const arma::vec &bx,
const int t = -1);
void matrix_out(pugi::xml_node &doc,
const char *name,
const arma::mat &bx,
const int t = -1);
void matrix_out(pugi::xml_node &doc,
const char *name,
const arma::cube &bx,
const int t = -1);
void matrix_out_t(pugi::xml_node &doc,
const char *XXfile,
const arma::mat &bx,
const int t);
#ifdef FSI_DEBUG
#define OUTD(B) outd(#B, B)
#define OUTT(B) outd(#B, B, t)
#define OUTDCOLVEC(B) outdcolvec(#B, B, t)
#define OUTDATT(mat) outdatt(#mat, mat, t)
void genpath(std::string &buf, const char *path, const char *XXfile, const int t = -1);
void genpath_at_t(std::string &buf, const char *path, const char *XXfile, const int t);
void outdb(const char *XXfile, const arma::uword xyz, const double *bx, const int m, const int n, const int t = -1);
void outdb(const char *XXfile, const arma::uword xyz, const arma::cube &bx, const int t = -1);
void outdb(const char *XXfile, const arma::uword xyz, const arma::mat &bx, const int t = -1);
void outdb(const char *XXfile, const arma::uword xyz, const arma::vec &bx, const int t = -1);
void outd(const char *XXfile, const arma::mat &bx, const int t = -1);
void outd(const char *XXfile, const arma::cube &bx, const int t = -1);
void outdatt(const char *XXfile, const arma::cube &bx, const int t);
void outdatt(const char *XXfile, const arma::mat &bx, const int t = -1);
void outd(const char *XXfile, const arma::vec &bx, const int t = -1);
void outdcolvec(const char *XXfile, const arma::colvec &bx, const int t = -1);
void outdrowvec(const char *XXfile, const arma::rowvec &bx, const int t = -1);
void out2d(const char *XXfile, const double *pbx, const int nrows, const int ncols);
void dumpar(const char *label, const arma::colvec &a);
void dumpmat(const char *label, const arma::mat &a);
#else // not debugging - do not write debugging files
#define OUTD(...)
#define OUTT(...)
#define outd(...)
#define outdb(...)
#define OUTDATT(...)
#define OUTDCOLVEC(B)
#define outdcolvec(...)
#define outdatt(...)
#define out2d(...)
#define dumpar(...)
#define dumpmat(...)
#endif