-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPost.h
49 lines (37 loc) · 2.01 KB
/
Post.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#pragma once
#include "DataType.h"
#include "Zone.h"
#include "Reader.h"
#include "FRbasis.h"
class Post
{
public:
// Constructor / p.m. Reader(object)
Post(std::shared_ptr<Reader>);
// Destructor
~Post();
public:
// Functions
// Export conserved solution file / p.m. Zone1(object), Zone2(Object), Zone3(Object)
void cons_solution(std::shared_ptr<Zone>, std::shared_ptr<Zone>, std::shared_ptr<Zone>) const;
// Export conserved solution file / p.m. file name, Zone1(object), Zone2(Object), Zone3(Object)
void cons_solution(const std::string&, std::shared_ptr<Zone>, std::shared_ptr<Zone>, std::shared_ptr<Zone>) const;
// Export FR solution file / p.m. file name, Zone1(object), Zone2(Object), Zone3(Object)
void cons_FRsolution(const std::string&, std::shared_ptr<Zone>, std::shared_ptr<Zone>, std::shared_ptr<Zone>) const;
// Export solution file / p.m. Zone1(object), Zone2(Object), Zone3(Object)
void solution(std::shared_ptr<Zone>, std::shared_ptr<Zone>, std::shared_ptr<Zone>) const;
// Export solution file / p.m. file name, Zone1(object), Zone2(Object), Zone3(Object)
void solution(const std::string&, std::shared_ptr<Zone>, std::shared_ptr<Zone>, std::shared_ptr<Zone>) const;
// Export FR solution file / p.m. file name, Zone1(object), Zone2(Object), Zone3(Object)
void FRsolution(const std::string&, std::shared_ptr<Zone>, std::shared_ptr<Zone>, std::shared_ptr<Zone>) const;
// Export error log / p.m. Zone(object)
void error(std::shared_ptr<Zone>) const;
protected:
// Variables
std::shared_ptr<Reader> _reader;
protected:
// Functions
// Write vector to file / p.m. file name, variable name1, variable name2, variable1, variable2
void write(const std::string&, const std::string&, const std::string&, std::vector<real_t>, std::vector<real_t>) const;
void write(const std::string&, const std::string&, const std::string&, const std::string&, const std::string&, std::vector<real_t>, std::vector<real_t>, std::vector<real_t>, std::vector<real_t>) const;
};