waves
Basic FE playground
wDirichlet.h
Go to the documentation of this file.
1 #ifndef KATOPTRON_DIRICHLET_H
2 #define KATOPTRON_DIRICHLET_H
3 
4 #include "katoptron.h"
5 #include "wGroup.h"
6 #include <vector>
7 #include <string>
8 
9 #include <Teuchos_RCP.hpp>
10 
11 namespace katoptron
12 {
13 
18 class KATOPTRON_API Dirichlet : public tbox::Group
19 {
20 public:
21  std::string const &BC_name;
22  std::vector<tbox::Node *> nodes;
23  std::vector<int> which_dof;
24  std::vector<double> values;
25 
26  std::vector<double> x_values;
27  std::vector<double> y_values;
28  std::vector<double> z_values;
29  std::vector<double> T_values;
30 
31  Dirichlet(Problem &pbl,
32  std::string const &name,
33  std::string const &_BC_name,
34  std::vector<int> _which_dof,
35  std::vector<double> _values,
36  size_t ensemble_size = 1);
37 
38  Dirichlet(Problem &pbl,
39  std::string const &name,
40  std::string const &_BC_name,
41  int x,
42  double v_x,
43  int y,
44  double v_y,
45  int z,
46  double v_z,
47  int T = 0,
48  double v_T = 0,
49  size_t ensemble_size = 1);
50 
51  Dirichlet(Problem &pbl,
52  std::string const &name,
53  std::string const &_BC_name,
54  int x,
55  std::vector<double> v_x,
56  int y,
57  std::vector<double> v_y,
58  int z,
59  std::vector<double> v_z,
60  int T = 0,
61  std::vector<double> v_T = {});
62 
63 #ifndef SWIG
64  virtual void write(std::ostream &out) const;
65 #endif
66 };
67 
68 } // namespace katoptron
69 
70 #endif //KATOPTRON_DIRICHLET_H
katoptron::Dirichlet::nodes
std::vector< tbox::Node * > nodes
Definition: wDirichlet.h:22
katoptron::Dirichlet::x_values
std::vector< double > x_values
Definition: wDirichlet.h:26
KATOPTRON_API
#define KATOPTRON_API
Definition: katoptron.h:13
katoptron::Dirichlet::T_values
std::vector< double > T_values
Definition: wDirichlet.h:29
katoptron
katoptron namespace
Definition: Algebraic.h:18
katoptron::Dirichlet
Class used to specify in Python the different Dirichlet boundary conditions (both mechanical and ther...
Definition: wDirichlet.h:18
katoptron::Problem
Class which is used to specify in Python the thermomechanical to solve.
Definition: wProblem.h:19
katoptron.h
katoptron::Dirichlet::z_values
std::vector< double > z_values
Definition: wDirichlet.h:28
katoptron::Dirichlet::values
std::vector< double > values
Definition: wDirichlet.h:24
katoptron::Dirichlet::y_values
std::vector< double > y_values
Definition: wDirichlet.h:27
katoptron::Dirichlet::BC_name
const std::string & BC_name
Definition: wDirichlet.h:21
katoptron::Dirichlet::which_dof
std::vector< int > which_dof
Definition: wDirichlet.h:23