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