-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparameters.hh
More file actions
70 lines (49 loc) · 1.52 KB
/
parameters.hh
File metadata and controls
70 lines (49 loc) · 1.52 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef PARAMETERS_HH
#define PARAMETERS_HH
#include <deal.II/base/parameter_handler.h>
namespace Composite_elasticity_problem
{
using namespace dealii;
namespace Parameters {
struct Materials {
double Young_modulus_matrix;
double Poisson_ratio_matrix;
double Young_modulus_fiber;
double Poisson_ratio_fiber;
double Fiber_volume_ratio;
unsigned int Reinforcement_material_id;
bool use_1d_fibers;
static void declare_parameters(ParameterHandler &prm);
void parse_parameters(ParameterHandler &prm);
};
struct BoundaryConditions {
std::map<int, std::string > bc;
std::map<int, std::string > traction;
static void declare_parameters(ParameterHandler &prm);
void parse_parameters(ParameterHandler &prm);
};
struct RightHandSide {
std::map<int, std::string> force;
static void declare_parameters(ParameterHandler &prm);
void parse_parameters(ParameterHandler &prm);
};
struct IO {
std::string mesh_file;
std::string mesh1d_file;
std::string output_file_base;
static void declare_parameters(ParameterHandler &prm);
void parse_parameters(ParameterHandler &prm);
};
struct AllParameters :
public Materials,
public BoundaryConditions,
public RightHandSide,
public IO
{
AllParameters(const std::string &input_file);
static void declare_parameters(ParameterHandler &prm);
void parse_parameters(ParameterHandler &prm);
};
}
}
#endif