forked from liebannam/pipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setupandrun.h
31 lines (25 loc) · 1.47 KB
/
setupandrun.h
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
/*\file setupandrun.h
*\brief setupandrun.h file documentation
* Contains various useful functions for setting up networks and outputting data:
* --read in network data from .inp file and .config files
* --get time series from Hermite or Fourier coefficients
* --write output to targa files
* --write output to text files
**/
#ifndef SETUPANDRUN_H
#define SETUPANDRUN_H
#include "network.h"
#include "string.h"
/**\Recover time series from a Hermite or Fourier representation*/
void getTimeSeries(vector<Real> & bvals, vector<Real> &x, const int m, const int M, double T, int Fourier);
/**\brief (Not implemented yet) In an ideal world this is the inverse of getTimeSeries...*/
void getCoeffSeries(vector<Real> & bvals, vector<Real> &x, const int m, const int M, double T, int Fourier);
/** Output targa files (thanks to Chris Rycroft for this function) */
void w3d_targa_output_surface(const char* filename,double *fld,int m,int n,double zmin,double zmax);
/** \brief Set up a pointer to a network class based on input files*/
Network* setupNetwork(char *finp, char *fconfig, int &M, int &Mi, double &T, int channeltype_);
/** \brief Write pressure data to labeled .tga files for use in POVRAY. use smarterputittogether.py to parse the output.**/
void writeOutputTarga(Network *Ntwk, int M, int Mi,double T, int writelogs);
/**\brief Write pressure data to labeled text files for perusal or use in other plotting software.*/
void writeOutputText(Network *Ntwk, int M, int Mi);
#endif