waves
Basic FE playground
wuDirichlet.h
Go to the documentation of this file.
1 /*
2  * Copyright 2022 University of Liège
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef WUDIRICHLET_H
18 #define WUDIRICHLET_H
19 
20 #include "mirrors.h"
21 #include "wGroup.h"
22 #include <vector>
23 #include <string>
24 #include <Eigen/Dense>
25 
26 using namespace tbox;
27 
28 namespace mirrors
29 {
30 
35 class MIRRORS_API uDirichlet : public Group
36 {
37 public:
38  std::string BC_name;
39  std::vector<Node *> nodes;
40  Eigen::Vector3d which_dof;
41  Eigen::Vector3d values;
42 
43  uDirichlet(Problem &pbl, int no, std::string _BC_name, Eigen::Vector3d _which_dof, Eigen::Vector3d _values);
44  uDirichlet(Problem &pbl, std::string const &name, std::string _BC_name, Eigen::Vector3d _which_dof, Eigen::Vector3d _values);
45  //virtual void apply(std::vector<double> &rhs);
46 
47 #ifndef SWIG
48  virtual void write(std::ostream &out) const override;
49 #endif
50 };
51 
52 } // namespace mirrors
53 
54 #endif //WUDIRICHLET_H
mirrors
this namespace avoids conflicts with similar names in 'waves'
Definition: mirrors.h:37
mirrors::Problem
a class containing the problem parameters
Definition: wProblem.h:36
mirrors::uDirichlet::BC_name
std::string BC_name
Definition: wuDirichlet.h:38
mirrors.h
mirrors::uDirichlet::values
Eigen::Vector3d values
Definition: wuDirichlet.h:41
mirrors::uDirichlet::which_dof
Eigen::Vector3d which_dof
Definition: wuDirichlet.h:40
mirrors::uDirichlet
manage mechanical Dirichlet BC
Definition: wuDirichlet.h:35
mirrors::uDirichlet::nodes
std::vector< Node * > nodes
Definition: wuDirichlet.h:39
MIRRORS_API
#define MIRRORS_API
Definition: mirrors.h:29