-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfile_functions.hpp
64 lines (49 loc) · 2.37 KB
/
file_functions.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
// inclusion guards
#ifndef FILE_FUNCTIONS_IS_INCLUDED
#define FILE_FUNCTIONS_IS_INCLUDED
#include <math.h>
#include <string>
#include <stdio.h>
#include <iostream>
#include <armadillo>
//#include <vector>
#include "multi_filament_header.hpp"
//#include "UnitQuaternion.hpp"
//#include "Bead.hpp"
//#include "Filament.hpp"
using namespace std;
using namespace arma;
void save_parameter_values_to_file(string parameter_file_name,
double LfcmBox_x, double LfcmBox_y,
double LfcmBox_z,
ivec BeadNumbers, vec BendingFactors,
vector<Filament>& filaments);
void save_data_column_names_to_file(string data_file_name,
vector<Filament>& filaments);
void save_data_column_names_to_swimmer_velocity_file(string data_file_name,
vector<Filament>& filaments);
void save_data_column_names_to_swimmer_collision_file(string data_file_name,
vector<Filament>& filaments);
void save_data_column_names_to_forces_file(string data_file_name,
vector<Filament>& filaments);
void save_data_to_file(string data_file_name,
vector<Filament>& filaments,
int nt);
void save_force_data_to_file(string data_file_name,
vector<Filament>& filaments,
double **F, double **T,
int nt);
void save_swimmer_velocity_data_to_file(string data_file_name,
vector<Filament>& filaments,
double **V,double **W,double **F,
int nt);
void save_swimmer_collision_data_to_file(string data_file_name,
vector<Filament>& filaments,
double F[][3],
int nt);
void save_backup_data_to_file(string data_file_name,
vector<Filament>& filaments,
int nt);
tuple<int, int, int> continue_from_checkpoint(string backup_data_file_name,
vector<Filament>& filaments);
#endif