-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinput.h
More file actions
54 lines (47 loc) · 1.2 KB
/
Copy pathinput.h
File metadata and controls
54 lines (47 loc) · 1.2 KB
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
#pragma once
#include <iostream>
#include <string>
#include <vector>
namespace ProblemType
{
enum ProblemType
{
fixedsource,
eigenvalue,
};
}
namespace Lboundary
{
enum Lboundary
{
vacuum,
reflective,
};
}
namespace Rboundary
{
enum Rboundary
{
vacuum,
reflective,
};
}
struct Problem
{
ProblemType::ProblemType problemType;
Lboundary::Lboundary lboundary;
Rboundary::Rboundary rboundary;
std::vector<int> materials; // list of materials
std::vector<double> sig_a; // xs corresponding to the above material
std::vector<double> sig_s;
std::vector<double> sig_f;
std::vector<double> nsig_f;
std::vector<double> sigma;
std::vector<int> cellMaterial; // list of materials for each cell in order
std::vector<double> dimensions; // position of each material interface
std::vector<double> source; // source term for each cell
};
struct Problem parseInput(std::string name);
std::ostream& operator<<(std::ostream& out, ProblemType::ProblemType probType);
std::ostream& operator<<(std::ostream& out, Lboundary::Lboundary lbound);
std::ostream& operator<<(std::ostream& out, Rboundary::Rboundary rbound);